forked from rhornig/Castalia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 1.01 KB
/
Makefile
File metadata and controls
36 lines (26 loc) · 1.01 KB
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
.PHONY: all clean cleanall makefiles makefiles-so makefiles-lib makefiles-exe checkmakefiles
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
MAKEMAKE_OPTIONS := -f --deep -o CastaliaBin -O out -I. -DAUTOIMPORT_OMNETPP_NAMESPACE -larmadillo -lyaml-cpp -I${YAML_CPP_INCLUDE} -L${YAML_CPP_LIBS} $(EXCEPT)
makefiles: makefiles-exe
makefiles-so:
@cd src && opp_makemake --make-so $(MAKEMAKE_OPTIONS)
makefiles-lib:
@cd src && opp_makemake --make-lib $(MAKEMAKE_OPTIONS)
makefiles-exe:
@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