forked from inet-framework/inet
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
46 lines (39 loc) · 1.49 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
36
37
38
39
40
41
42
43
44
45
46
#
# Check operating system
#
UNAME := $(shell uname -o)
ifeq ($(UNAME),Msys)
OPP_LIBS =
else
OPP_LIBS = -loppcommon
endif
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
makefiles:
### To create a shared library
# cd src && opp_makemake -f --deep --make-so -o inet -O out $$NSC_VERSION_DEF
## for support of SQLite interfacing and custom result recorders
cd src && opp_makemake -f --deep --make-so -o inet -O out $$NSC_VERSION_DEF -I$(OMNETPP_ROOT)/src/common -I$(OMNETPP_ROOT)/src/envir -I$(OMNETPP_ROOT)/include/platdep -I/usr/local/include -L/usr/local/lib $(OPP_LIBS) -lsqlite3
### To create a single executable
# cd src && opp_makemake -f --deep -o inet -O out $$NSC_VERSION_DEF
## for support of SQLite interfacing and custom result recorders
# cd src && opp_makemake -f --deep -o inet -O out $$NSC_VERSION_DEF -I$(OMNETPP_ROOT)/src/common -I$(OMNETPP_ROOT)/src/envir -I$(OMNETPP_ROOT)/include/platdep -I/usr/local/include -L/usr/local/lib $(OPP_LIBS) -lsqlite3
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
doxy:
doxygen doxy.cfg
tcptut:
cd doc/src/tcp && $(MAKE)