reduce overhead
[corutils.git] / Makefile
blobf4e2550ce60540d8b178a85d674ef9b5245cc47c
1 #CFLAGS=-g -O99
2 CFLAGS=-Os
4 #todo headerfiles
6 all: benchmark bin/cor_routed
8 clean:
9 rm bin/*
11 demo: bin/demo_connect bin/demo_connect2 bin/demo_invalidconnect bin/demo_listen bin/demo_neigh \
12 bin/demo_route bin/demo_routed bin/demo_routed2 bin/demo_echo bin/demo_perf
14 benchmark: bin/cor_perfs bin/cor_perfc
17 #src/demo/libcor.o: src/demo/libcor.c src/demo/libcor.h
18 # $(CC) $(CFLAGS) -c -o src/demo/libcor.o src/demo/libcor.c
21 bin/demo_connect: src/demo/connect.c src/demo/libcor.c src/demo/libcor.h \
22 src/cor.h src/list.h src/utils.h
23 $(CC) $(CFLAGS) -o bin/demo_connect src/demo/connect.c src/demo/libcor.c
25 bin/demo_connect2: src/demo/connect2.c src/cor.h \
26 src/list.h src/utils.h
27 $(CC) $(CFLAGS) -o bin/demo_connect2 src/demo/connect2.c
29 bin/demo_invalidconnect: src/demo/invalidconnect.c \
30 src/cor.h src/list.h src/utils.h
31 $(CC) $(CFLAGS) -o bin/demo_invalidconnect src/demo/invalidconnect.c src/demo/libcor.c
33 bin/demo_listen: src/demo/listen.c \
34 src/cor.h src/list.h src/utils.h
35 $(CC) $(CFLAGS) -o bin/demo_listen src/demo/listen.c
37 bin/demo_neigh: src/demo/neigh.c src/demo/libcor.c src/demo/libcor.h \
38 src/cor.h src/list.h src/utils.h
39 $(CC) $(CFLAGS) -o bin/demo_neigh src/demo/neigh.c src/demo/libcor.c
41 bin/demo_route: src/demo/route.c src/demo/libcor.c src/demo/libcor.h \
42 src/cor.h src/list.h src/utils.h
43 $(CC) $(CFLAGS) -o bin/demo_route src/demo/route.c src/demo/libcor.c
45 bin/demo_routed: src/demo/routed.c src/demo/libcor.c src/demo/libcor.h \
46 src/cor.h src/list.h src/utils.h src/utils.c
47 $(CC) $(CFLAGS) -o bin/demo_routed src/demo/routed.c src/demo/libcor.c src/utils.c
49 bin/demo_routed2: src/demo/routed2.c \
50 src/cor.h src/list.h src/utils.h src/utils.c
51 $(CC) $(CFLAGS) -o bin/demo_routed2 src/demo/routed2.c src/demo/libcor.c src/utils.c
53 bin/demo_echo: src/demo/echo.c \
54 src/cor.h src/list.h src/utils.h
55 $(CC) $(CFLAGS) -o bin/demo_echo src/demo/echo.c
57 bin/demo_perf: src/demo/perf.c \
58 src/cor.h src/list.h src/utils.h src/utils.c
59 $(CC) $(CFLAGS) -o bin/demo_perf src/demo/perf.c src/utils.c
62 bin/cor_perfs: src/benchmark/server.c \
63 src/cor.h src/list.h src/utils.h
64 $(CC) $(CFLAGS) -o bin/cor_perfs src/benchmark/server.c
66 bin/cor_perfc: src/benchmark/client.c \
67 src/cor.h src/list.h src/utils.h
68 $(CC) $(CFLAGS) -o bin/cor_perfc src/benchmark/client.c src/utils.c
70 bin/cor_routed: src/routed/routed.h src/routed/main.c \
71 src/routed/util.c src/routed/conf.c src/routed/nodedb.c \
72 src/routed/forward.c src/routed/libcor.c src/routed/libcor.h \
73 src/cor.h src/list.h src/utils.h src/utils.c
74 $(CC) $(CFLAGS) -o bin/cor_routed src/routed/main.c \
75 src/routed/util.c src/routed/conf.c src/routed/nodedb.c \
76 src/routed/forward.c src/routed/libcor.c src/utils.c