forked from cn-uofbasel/ccn-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BSDmakefile
49 lines (37 loc) · 1.22 KB
/
BSDmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# BSDMakefile
CC=gcc
#MYCFLAGS=-Wall -pedantic -std=c99 -g
MYCFLAGS=-Wall -g -O0
EXTLIBS= -lcrypto
INST_PROGS= ccn-lite-relay \
ccn-lite-minimalrelay
PROGS= ${INST_PROGS}
# ----------------------------------------------------------------------
all: ${PROGS}
make -C util
ccn-lite-minimalrelay: ccn-lite-minimalrelay.c \
BSDmakefile ccnl-core.c ccnx.h ccnl.h ccnl-core.h
${CC} -o $@ ${MYCFLAGS} $<
ccn-lite-relay: ccn-lite-relay.c \
BSDmakefile ccnl-includes.h ccnx.h ccnl.h ccnl-core.h \
ccnl-ext-debug.c ccnl-ext.h ccnl-platform.c ccnl-core.c \
ccnl-ext-http.c \
ccnl-ext-sched.c ccnl-pdu.c ccnl-ext-frag.c ccnl-ext-mgmt.c
${CC} -o $@ ${MYCFLAGS} $< ${EXTLIBS}
datastruct.pdf: datastruct.dot
dot -Tps -o datastruct.ps datastruct.dot
epstopdf datastruct.ps
rm -f datastruct.ps
install: all
install ${INST_PROGS} ${INSTALL_PATH}/bin \
&& cd util && make install && cd ..
uninstall:
cd ${INSTALL_PATH}/bin && rm -f ${PROGS} && cd - > /dev/null \
&& cd util && make uninstall && cd ..
clean:
${EXTMAKECLEAN}
rm -rf *~ *.o ${PROGS} node-*.log .ccn-lite-lnxkernel* *.ko *.mod.c *.mod.o .tmp_versions modules.order Module.symvers
rm -rf omnet/src/ccn-lite/*
rm -rf ccn-lite-omnet.tgz
make -C util clean
# eof