summaryrefslogtreecommitdiff
blob: 7e8c6b7eb6a2e7338020b233d2ce27b4461280cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- contest-0.61/Makefile
+++ contest-0.61/Makefile
@@ -1,8 +1,8 @@
 INSTPATH=/usr
 BIN=$(INSTPATH)/bin
 MAN=$(INSTPATH)/man
-CC=gcc
-CFLAGS= -W -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations \
+CC?=gcc
+CFLAGS?= -W -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations \
 	-g -O2
 
 ifeq ($(shell uname),FreeBSD)
@@ -14,7 +14,7 @@
      list_load.o
 
 contest: $(objs)
-	$(CC) $(CFLAGS) -o $@ $(objs) $(KVM)
+	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(objs) $(KVM)
 contest.1.gz: contest.1
 	gzip -c contest.1 > contest.1.gz
 install: contest contest.1.gz