⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 OMNET++仿真器中仿真实例 在OMNET++仿真器中仿真两个源节点和两个分发节点交替工作的简单例子
💻
字号:
## OMNeT++/OMNEST Makefile for fly## This file was generated with the command:#  opp_makemake -f --deep## Name of target to be created (-o option)TARGET = fly$(EXE_SUFFIX)# User interface (uncomment one) (-u option)USERIF_LIBS = $(ALL_ENV_LIBS) # that is, $(TKENV_LIBS) $(CMDENV_LIBS)#USERIF_LIBS = $(CMDENV_LIBS)#USERIF_LIBS = $(TKENV_LIBS)# C++ include paths (with -I)INCLUDE_PATH = -I. -Iresults# Additional object and library files to link withEXTRA_OBJS =# Additional libraries (-L, -l options)LIBS =# Output directoryPROJECT_OUTPUT_DIR = outPROJECTRELATIVE_PATH =O = $(PROJECT_OUTPUT_DIR)/$(CONFIGNAME)/$(PROJECTRELATIVE_PATH)# Object files for local .cc and .msg filesOBJS = $O/Source.o $O/Sink.o $O/Sink2.o $O/Source2.o# Message filesMSGFILES =#------------------------------------------------------------------------------# Pull in OMNeT++ configuration (Makefile.inc or configuser.vc)ifneq ("$(OMNETPP_CONFIGFILE)","")CONFIGFILE = $(OMNETPP_CONFIGFILE)elseifneq ("$(OMNETPP_ROOT)","")CONFIGFILE = $(OMNETPP_ROOT)/Makefile.incelseCONFIGFILE = $(shell opp_configfilepath)endifendififeq ("$(wildcard $(CONFIGFILE))","")$(error Config file '$(CONFIGFILE)' does not exist -- add the OMNeT++ bin directory to the path so that opp_configfilepath can be found, or set the OMNETPP_CONFIGFILE variable to point to Makefile.inc)endifinclude $(CONFIGFILE)# Simulation kernel and user interface librariesOMNETPP_LIB_SUBDIR = $(OMNETPP_LIB_DIR)/$(TOOLCHAIN_NAME)OMNETPP_LIBS = -L"$(OMNETPP_LIB_SUBDIR)" -L"$(OMNETPP_LIB_DIR)" $(USERIF_LIBS) $(KERNEL_LIBS) $(SYS_LIBS)COPTS = $(CFLAGS)  $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR)MSGCOPTS = $(INCLUDE_PATH)#------------------------------------------------------------------------------# User-supplied makefile fragment(s)# >>># <<<#------------------------------------------------------------------------------# Main targetall: $(TARGET)$(TARGET) : $O/$(TARGET)	ln -s -f $O/$(TARGET) .$O/$(TARGET): $(OBJS)  $(wildcard $(EXTRA_OBJS)) Makefile	@mkdir -p $O	$(CXX) $(LDFLAGS) -o $O/$(TARGET)  $(OBJS) $(EXTRA_OBJS) $(WHOLE_ARCHIVE_ON) $(LIBS) $(WHOLE_ARCHIVE_OFF) $(OMNETPP_LIBS).PHONY:.SUFFIXES: .cc$O/%.o: %.cc	@mkdir -p $(dir $@)	$(CXX) -c $(COPTS) -o $@ $<%_m.cc %_m.h: %.msg	$(MSGC) -s _m.cc $(MSGCOPTS) $?msgheaders: $(MSGFILES:.msg=_m.h)clean:	-rm -rf $O	-rm -f fly fly.exe libfly.so libfly.a libfly.dll libfly.dylib	-rm -f ./*_m.cc ./*_m.h	-rm -f results/*_m.cc results/*_m.hdepend:	$(MAKEDEPEND) $(INCLUDE_PATH) -f Makefile -P\$$O/ -- $(MSG_CC_FILES)  ./*.cc results/*.cc# DO NOT DELETE THIS LINE -- make depend depends on it.$O/Sink2.o: Sink2.cc \	Sink2.h$O/Sink.o: Sink.cc \	Sink.h$O/Source2.o: Source2.cc \	Source2.h$O/Source.o: Source.cc \	Source.h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -