blob: c2498db5573a30cabdffc1a0fc02ba7be5318c6d [file] [log] [blame]
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -07001diff --git Makefile Makefile
2index bf720d4..e8a9b86 100644
3--- Makefile
4+++ Makefile
5@@ -1,22 +1,21 @@
6-CC = cc
7-CFLAGS = -g -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes
8-LIBS = -lccn -lcrypto
9+EXTRA_CFLAGS = -g -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes
10+EXTRA_LIBS = -lccn -lcrypto
11
12 PROGRAMS = ccnping ccnpingserver
13
14 all: $(PROGRAMS)
15
16 ccnping: ccnping.o
17- $(CC) $(CFLAGS) -o $@ ccnping.o $(LIBS)
18+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ ccnping.o $(LIBS) $(EXTRA_LIBS)
19
20 ccnpingserver: ccnpingserver.o
21- $(CC) $(CFLAGS) -o $@ ccnpingserver.o $(LIBS)
22+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ ccnpingserver.o $(LIBS) $(EXTRA_LIBS)
23
24 clean:
25 rm -f *.o
26 rm -f $(PROGRAMS)
27
28 .c.o:
29- $(CC) $(CFLAGS) -c $<
30+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $<
31
32 .PHONY: all clean