summaryrefslogtreecommitdiff
blob: 58df825a16dd6b18533b61b8efce077a950a9c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- Makefile
+++ Makefile
@@ -12,9 +12,8 @@
 
 FC = f2c
 FFLAGS = -A -C -Nn802 -NL400 #-c
-CFLAGS = -O
 
-.f.c:
+%.c: %.f
 	$(FC) $(FFLAGS) $<
 
 all:	dungeon textcnv bin2txt
@@ -24,13 +23,13 @@
 	random.C dungeon.o gdt.o objects.o rooms.o timefnc.o \
 	game.o machdep.o parser.o subr.o verbs.o gettim.o \
 	random.o libdungeon.a
-	$(CC) -s -o dungeon dungeon.o -L. -ldungeon -lf2c -lm
+	$(CC) -o dungeon $(LDFLAGS) dungeon.o -L. -ldungeon -lf2c -lm
 
 textcnv: textcnv.c
-	$(CC) -s -o textcnv textcnv.c -lf2c -lm
+	$(CC) -o textcnv $(LDFLAGS) textcnv.c -lf2c -lm
 
 bin2txt: bin2txt.c
-	$(CC) -s -o bin2txt bin2txt.c -lf2c -lm
+	$(CC) -o bin2txt $(LDFLAGS) bin2txt.c -lf2c -lm
 
 # The gettim.C and random.C functions enable Dungeon to keep track of the elapsed
 # time in the game and to access random number functions.  The uppercase suffix