1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/misc/bbjd/files/patch-aa
Kris Kennaway 10f077000f Respect CC
2000-02-07 00:58:53 +00:00

35 lines
934 B
Plaintext

--- Makefile.orig Mon Oct 26 02:47:44 1998
+++ Makefile Sun Feb 6 16:58:34 2000
@@ -6,18 +6,18 @@
OBJECTS = $(SOURCES:.c=.o)
######## compiler options ########
-CC = gcc
+CC ?= gcc
LANG_OPTIONS =
WARN_OPTIONS = -Wall -Wtraditional -Wpointer-arith \
-Wconversion -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wreturn-type \
-Wnested-externs -Wwrite-strings -Wcast-qual
INCDIR = -I. -I/usr/include
-CFLAGS = $(DEFINES) $(LANG_OPTIONS) $(WARN_OPTIONS) $(INCDIR)
-COPTS = -O2
+CFLAGS?= -O2
+CFLAGS+= $(DEFINES) $(LANG_OPTIONS) $(WARN_OPTIONS) $(INCDIR)
######## link options ########
-LD = gcc
+LD = $(CC)
LIBDIR =
LIBRARIES = #-lm
LDFLAGS = $(LIBDIR)
@@ -36,7 +36,7 @@
%o: %c
@echo --- compiling: $< ---
- $(CC) $(CFLAGS) $(COPTS) -c $< -o $@
+ $(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f probability.o interactive.o display.o simulate.o core