blob: 2498b17978554bb94b4d1d2f62fd0128aeb16c02 [file] [log] [blame]
akmhoque8adb43b2012-08-09 12:37:33 -05001CC = cc
akmhoque3cced642012-09-24 16:20:20 -05002CFLAGS = -g -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes
3LIBS = -lcrypto -lccn
akmhoque8adb43b2012-08-09 12:37:33 -05004
akmhoque14891552012-08-09 13:33:06 -05005PROGRAMS = nlsr
akmhoque8adb43b2012-08-09 12:37:33 -05006
7all: $(PROGRAMS)
8
akmhoque0315f982012-09-09 11:28:05 -05009nlsr: 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
10 $(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)
akmhoque8adb43b2012-08-09 12:37:33 -050011
12clean:
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