📄 makefile
字号:
## Makefile for RIP## ** This file was automatically generated by the command:# opp_makemake -f## Name of target to be created (-o option)TARGET = RIP# User interface (uncomment one) (-u option)# USERIF_LIBS=$(CMDENV_LIBS)USERIF_LIBS=$(TKENV_LIBS)# .ned or .h include paths with -IINCLUDE_PATH=# misc additional object and library files to linkEXTRA_OBJS=# object files from other directories to link with (wildcard needed to prevent "no such file *.o" errors)EXT_DIR_OBJS=# time stamps of other directories (used as dependency)EXT_DIR_TSTAMPS=# Additional libraries (-L option -l option)LIBS=#------------------------------------------------------------------------------# Generic definitions. To avoid redundancies across Makefiles, you can# import them from a common file -- see opp_makemake -c flag.NEDC=/home/ubuntu/omnetpp-3.3/bin/nedtoolMSGC=opp_msgcCXX=g++CC=gccAR=ar crSHLIB_LD=g++ -shared MAKEDEPEND=opp_makedep -Y --objdirtreeCFLAGS=-gstabs+3 -Wall -DWITH_PARSIM -DWITH_NETBUILDERNEDCFLAGS=-Wno-unusedLDFLAGS= -Wl,--export-dynamicEXE_SUFFIX=WITH_PARSIM=yesWITH_NETBUILDER=yesOMNETPP_INCL_DIR=/home/ubuntu/omnetpp-3.3/includeOMNETPP_LIB_DIR=/home/ubuntu/omnetpp-3.3/libTK_LIBS= -ltk8.4 -ltcl8.4MPI_LIBS=XML_LIBS=-lxml2SYS_LIBS=-ldl -lstdc++ SYS_LIBS_PURE=-ldl -lsocket -lnsl -lm $(shell $(CXX) -print-file-name=libstdc++.a)# User interface libsCMDENV_LIBS=-lenvir -lcmdenvTKENV_LIBS=-lenvir -ltkenv $(TK_LIBS)# Simulation kernelKERNEL_LIBS=-lsim_stdifeq ($(WITH_NETBUILDER),yes)KERNEL_LIBS += -lnedxml $(XML_LIBS)endififeq ($(WITH_PARSIM),yes)KERNEL_LIBS += $(MPI_LIBS)endif# Simulation kernel and user interface librariesOMNETPP_LIBS=-L$(OMNETPP_LIB_DIR) $(USERIF_LIBS) $(KERNEL_LIBS) $(SYS_LIBS)COPTS=$(CFLAGS) $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR)NEDCOPTS=$(COPTS) $(NEDCFLAGS)MSGCOPTS= $(INCLUDE_PATH)#------------------------------------------------------------------------------# subdirectories to recurse intoSUBDIRS= # object files in this directoryOBJS= RIP_n.o rip_m.o rip.o # header files generated (from msg files)GENERATEDHEADERS= rip_m.h#------------------------------------------------------------------------------$(TARGET): $(OBJS) $(EXTRA_OBJS) $(EXT_DIR_TSTAMPS) Makefile $(CXX) $(LDFLAGS) $(OBJS) $(EXTRA_OBJS) $(EXT_DIR_OBJS) $(LIBS) $(OMNETPP_LIBS) -o $(TARGET) echo>.tstamp$(OBJS) : $(GENERATEDHEADERS)purify: $(OBJS) $(EXTRA_OBJS) $(EXT_DIR_TSTAMPS) Makefile purify $(CXX) $(LDFLAGS) $(OBJS) $(EXTRA_OBJS) $(EXT_DIR_OBJS) $(LIBS) -L$(OMNETPP_LIB_DIR) $(KERNEL_LIBS) $(USERIF_LIBS) $(SYS_LIBS_PURE) -o $(TARGET).pure.PHONY: subdirs $(SUBDIRS)subdirs: $(SUBDIRS)RIP_n.o: RIP_n.cc $(CXX) -c $(NEDCOPTS) RIP_n.ccRIP_n.cc: RIP.ned $(NEDC) $(INCLUDE_PATH) RIP.nedrip_m.o: rip_m.cc $(CXX) -c $(NEDCOPTS) rip_m.ccrip_m.cc rip_m.h: rip.msg $(MSGC) $(MSGCOPTS) rip.msgrip.o: rip.cc $(CXX) -c $(COPTS) rip.cc#doc: neddoc doxy#neddoc:# opp_neddoc -a#doxy: doxy.cfg# doxygen doxy.cfggenerateheaders: $(GENERATEDHEADERS) for i in $(SUBDIRS); do (cd $$i && $(MAKE) generateheaders) || exit 1; doneclean: rm -f $(TARGET)$(EXE_SUFFIX) rm -f *.o *_n.cc *_n.h *_m.cc *_m.h .tstamp rm -f *.vec *.sca for i in $(SUBDIRS); do (cd $$i && $(MAKE) clean); donedepend: $(MAKEDEPEND) $(INCLUDE_PATH) -- *.cc # $(MAKEDEPEND) $(INCLUDE_PATH) -fMakefile.in -- *.cc for i in $(SUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; donemakefiles: # recreate Makefile opp_makemake -f for i in $(SUBDIRS); do (cd $$i && $(MAKE) makefiles) || exit 1; donemakefile-ins: # recreate Makefile.in opp_makemake -f -m for i in $(SUBDIRS); do (cd $$i && $(MAKE) makefile-ins) || exit 1; done# "re-makemake" and "re-makemake-m" are deprecated, historic names of the above two targetsre-makemake: makefilesre-makemake-m: makefile-ins# DO NOT DELETE THIS LINE -- make depend depends on it.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -