diff --git Makefile Makefile
index bf720d4..e8a9b86 100644
|
|
|
1 | | CC = cc |
2 | | CFLAGS = -g -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes |
3 | | LIBS = -lccn -lcrypto |
| 1 | EXTRA_CFLAGS = -g -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes |
| 2 | EXTRA_LIBS = -lccn -lcrypto |
4 | 3 | |
5 | 4 | PROGRAMS = ccnping ccnpingserver |
6 | 5 | |
7 | 6 | all: $(PROGRAMS) |
8 | 7 | |
9 | 8 | ccnping: ccnping.o |
10 | | $(CC) $(CFLAGS) -o $@ ccnping.o $(LIBS) |
| 9 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ ccnping.o $(LIBS) $(EXTRA_LIBS) |
11 | 10 | |
12 | 11 | ccnpingserver: ccnpingserver.o |
13 | | $(CC) $(CFLAGS) -o $@ ccnpingserver.o $(LIBS) |
| 12 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ ccnpingserver.o $(LIBS) $(EXTRA_LIBS) |
14 | 13 | |
15 | 14 | clean: |
16 | 15 | rm -f *.o |
17 | 16 | rm -f $(PROGRAMS) |
18 | 17 | |
19 | 18 | .c.o: |
20 | | $(CC) $(CFLAGS) -c $< |
| 19 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< |
21 | 20 | |
22 | 21 | .PHONY: all clean |