akmhoque | 8adb43b | 2012-08-09 12:37:33 -0500 | [diff] [blame] | 1 | CC = cc |
akmhoque | 03004e6 | 2012-09-06 01:12:28 -0500 | [diff] [blame] | 2 | CFLAGS = -g -Wall |
| 3 | #-Wpointer-arith -Wreturn-type -Wstrict-prototypes |
akmhoque | 8adb43b | 2012-08-09 12:37:33 -0500 | [diff] [blame] | 4 | LIBS = -lccn -lcrypto |
| 5 | |
akmhoque | 1489155 | 2012-08-09 13:33:06 -0500 | [diff] [blame] | 6 | PROGRAMS = nlsr |
akmhoque | 8adb43b | 2012-08-09 12:37:33 -0500 | [diff] [blame] | 7 | |
| 8 | all: $(PROGRAMS) |
| 9 | |
akmhoque | 0315f98 | 2012-09-09 11:28:05 -0500 | [diff] [blame] | 10 | nlsr: nlsr.c nlsr_ndn.c nlsr_npl.c nlsr_adl.c nlsr_lsdb.c nlsr_route.c nlsr_npt.c nlsr_fib.c utility.c |
| 11 | $(CC) $(CFLAGS) nlsr.c nlsr_ndn.c nlsr_npl.c nlsr_adl.c nlsr_lsdb.c nlsr_route.c nlsr_npt.c nlsr_fib.c utility.c -o nlsr $(LIBS) |
akmhoque | 8adb43b | 2012-08-09 12:37:33 -0500 | [diff] [blame] | 12 | |
| 13 | clean: |
| 14 | rm -f *.o |
| 15 | rm -f $(PROGRAMS) |
| 16 | rm -rf $(PROGRAMS).dSYM |
| 17 | |
| 18 | .c.o: |
| 19 | $(CC) $(CFLAGS) -c $< |
| 20 | |
| 21 | .PHONY: all clean |