-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
26 lines (21 loc) · 935 Bytes
/
Makefile
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
INET_PROJECT_DIR=../../inet
all: checkmakefiles
cd src && $(MAKE)
clean: checkmakefiles
cd src && $(MAKE) clean
cleanall: checkmakefiles
cd src && $(MAKE) MODE=release clean
cd src && $(MAKE) MODE=debug clean
rm -f src/Makefile
rm -rf out/
makefiles:
cd src && opp_makemake -f --deep --make-so -o cni-os3 -O out -I$$\(INET_PROJ\)/src/world/radio -I$$\(INET_PROJ\)/src/mobility/models -I$$\(INET_PROJ\)/src/mobility -I$$\(INET_PROJ\)/src/util -I$$\(INET_PROJ\)/src/base -L/usr/local/lib -L$$\(INET_PROJ\)/out/$$\(CONFIGNAME\)/src -linet -lcurl -DINET_IMPORT -KINET_PROJ=$(INET_PROJECT_DIR)
checkmakefiles:
@if [ ! -f src/Makefile ]; then \
echo; \
echo '======================================================================='; \
echo 'src/Makefile does not exist. Please use "make makefiles" to generate it!'; \
echo '======================================================================='; \
echo; \
exit 1; \
fi