# # OMNeT++/OMNEST Makefile for MiXiM # # This file was generated with the command: # opp_makemake -f --nolink -O out -d src
-d tests -d examples -Xdoc -Xexamples/ baseNetwork -Ximages -Xtemplates -L./out/$(CONFIGNAME)/src/base -L./out/$(CONFIG NAME)/tests/testUtils -L./out/$(CONFIGNAME)/tests/power/utils -L./out/$(CONFIGNA ME)/src/modules # # C++ include paths (with -I) INCLUDE_PATH = -I. # Output directory PROJECT_OUTPUT_DIR = out PROJECTRELATIVE_PATH = O = $(PROJECT_OUTPUT_DIR)/$(CONFIGNAME)/$(PROJECTRELATIVE_PATH) # Object files for local .cc and .msg files OBJS = # Message files MSGFILES = #-----------------------------------------------------------------------------# Pull in OMNeT++ configuration ([Link] or [Link]) ifneq ("$(OMNETPP_CONFIGFILE)","") CONFIGFILE = $(OMNETPP_CONFIGFILE) else ifneq ("$(OMNETPP_ROOT)","") CONFIGFILE = $(OMNETPP_ROOT)/[Link] else CONFIGFILE = $(shell opp_configfilepath) endif endif ifeq ("$(wildcard $(CONFIGFILE))","") $(error Config file '$(CONFIGFILE)' does not exist -- add the OMNeT++ bin direct ory to the path so that opp_configfilepath can be found, or set the OMNETPP_CONF IGFILE variable to point to [Link]) endif include $(CONFIGFILE) COPTS = $(CFLAGS) $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR) MSGCOPTS = $(INCLUDE_PATH) # we want to recompile everything if COPTS changes, # so we store COPTS into $COPTS_FILE and have object # files depend on it (except when "make depend" was called) COPTS_FILE = $O/.last-copts ifneq ($(MAKECMDGOALS),depend) ifneq ("$(COPTS)","$(shell cat $(COPTS_FILE) 2>/dev/null || echo '')") $(shell $(MKPATH) "$O" && echo "$(COPTS)" >$(COPTS_FILE)) endif endif #------------------------------------------------------------------------------
# User-supplied makefile fragment(s) # >>> # inserted from file 'makefrag': tests_dir: src_dir examples_dir: src_dir # <<< #-----------------------------------------------------------------------------# Main target all: $(OBJS) submakedirs Makefile @# Do nothing submakedirs: src_dir tests_dir examples_dir .PHONY: all clean cleanall depend msgheaders src tests examples src: src_dir tests: tests_dir examples: examples_dir src_dir: cd src && $(MAKE) all tests_dir: cd tests && $(MAKE) all examples_dir: cd examples && $(MAKE) all .SUFFIXES: .cc $O/%.o: %.cc $(COPTS_FILE) @$(MKPATH) $(dir $@) $(CXX) -c $(COPTS) -o $@ $< %_m.cc %_m.h: %.msg $(MSGC) -s _m.cc $(MSGCOPTS) $? msgheaders: $(MSGFILES:.msg=_m.h) cd src && $(MAKE) msgheaders cd tests && $(MAKE) msgheaders cd examples && $(MAKE) msgheaders clean: -rm -rf $O -rm -f MiXiM [Link] [Link] libMiXiM.a [Link] [Link] b -rm -f ./*_m.cc ./*_m.h -cd src && $(MAKE) clean -cd tests && $(MAKE) clean -cd examples && $(MAKE) clean cleanall: clean -rm -rf $(PROJECT_OUTPUT_DIR) depend: $(MAKEDEPEND) $(INCLUDE_PATH) -f Makefile -P\$$O/ -- $(MSG_CC_FILES) ./ *.cc
-cd src && if [ -f Makefile ]; then $(MAKE) depend; fi -cd tests && if [ -f Makefile ]; then $(MAKE) depend; fi -cd examples && if [ -f Makefile ]; then $(MAKE) depend; fi # DO NOT DELETE THIS LINE -- make depend depends on it.