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