summaryrefslogtreecommitdiff
blob: 487bb1fc0e6a38f80b273587cd47b4c152d083f7 (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
31
32
33
34
35
36
37
38
39
40
41
--- fslurp-2.1.2/Makefile
+++ fslurp-2.1.2/Makefile
@@ -46,31 +46,31 @@
 SIMINCLUDES	= simulator.h
 
 #DEBUGFLAGS	= -g
-CFLAGS		= -c -Wall $(DEBUGFLAGS)
+CFLAGS		+= -c -Wall $(DEBUGFLAGS)
 
-LDFLAGS		= -lm
+LIBS		= -lm
 
 VERSION		:= fslurp-$(shell tail -1 version)
 
 all:		$(TARGETS)
 
 fslurp:		$(FSLURP_OBJS)
-		$(CC) $(LDFLAGS) $^ -o $@
+		$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
 
 simSolarNet2i1s: \
 		$(SIMSOLARNET2I1S_OBJS)
-		$(CC) $(LDFLAGS) $^ -o $@
+		$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
 
 simSolarNet1i0s: \
 		$(SIMSOLARNET1I0S_OBJS)
-		$(CC) $(LDFLAGS) $^ -o $@
+		$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
 
 simSolarNet0i0s: \
 		$(SIMSOLARNET0I0S_OBJS)
-		$(CC) $(LDFLAGS) $^ -o $@
+		$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
 
 simIFCEasy:	$(SIMIFCEASY_OBJS)
-		$(CC) $(LDFLAGS) $^ -o $@
+		$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
 
 test:		$(TARGETS) clean
 		./testcase.sh