-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (27 loc) · 1.04 KB
/
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
27
28
29
30
31
32
33
34
35
.PHONY: all clean cleanall makefiles makefiles-lib checkmakefiles
all: checkmakefiles clean
+$(MAKE) -C src all
clean: checkmakefiles
+$(MAKE) -C src clean
cleanall: checkmakefiles
@+$(MAKE) -C src MODE=release clean
@+$(MAKE) -C src MODE=debug clean
MAKEMAKE_OPTIONS := -f --deep -o ncs-testbench -O out -I. \
-L$$MCR_ROOT/runtime/glnxa64 -lmwmclmcrrt \
-L$$MCR_ROOT/bin/glnxa64 \
'-L../../matlab-scheduler/out/$$(CONFIGNAME)/src' '-lmatlab-scheduler$$(D)' \
-L../../libncs_matlab/out -lncs_matlab \
'-L../../libncs_omnet/out/$$(CONFIGNAME)/src' '-llibncs_omnet$$(D)' \
'-L../../inet/out/$$(CONFIGNAME)/src' '-lINET$$(D)'
makefiles: makefiles-lib
makefiles-lib:
cd src && opp_makemake $(MAKEMAKE_OPTIONS)
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