-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (25 loc) · 843 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
27
28
29
30
31
32
33
.PHONY: all clean cleanall makefiles makefiles-lib checkmakefiles
all: checkmakefiles
+$(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 matlab-scheduler -O out \
-I. \
-I$$MCR_ROOT/extern/include \
-L$$MCR_ROOT/runtime/glnxa64 \
-L$$MCR_ROOT/bin/glnxa64
makefiles: makefiles-lib
makefiles-lib:
cd src && opp_makemake --make-lib $(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