# # Makefile for demo # # ** This file was automatically generated by the command: # opp_makemake -f -m ../dyna ../fddi ../fifo1 ../fifo2 ../hcube ../hist ../nim ../token ../topo # # Name of target to be created (-o option) TARGET = demo # User interface (uncomment one) (-u option) # USERIF_LIBS=$(CMDENV_LIBS) USERIF_LIBS=$(TKENV_LIBS) # uncomment 1 of the 3 lines to support either serial or parallel operation KERNEL_LIBS=$(STD_KERNEL_LIBS) # KERNEL_LIBS=$(PVM_KERNEL_LIBS) # KERNEL_LIBS=$(MPI_KERNEL_LIBS) # .ned or .h include paths with -I INCLUDE_PATH= # misc additional object and library files to link EXRA_OBJS= # object files in subdirectories SUBDIR_OBJS= ../dyna/client.o ../dyna/dyna_n.o ../dyna/server.o ../dyna/servproc.o ../dyna/switch.o ../fddi/fddi_mac.o ../fddi/fddi_mac_n.o ../fddi/fddi_nets_n.o ../fddi/fddi_nodes_n.o ../fddi/fddi_rings_n.o ../fddi/othermod.o ../fddi/othermod_n.o ../fddi/ssm_ifs.o ../fddi/ssm_ifs_n.o ../fifo1/fifo1.o ../fifo1/fifo1_n.o ../fifo1/fifonet1_n.o ../fifo1/gen1.o ../fifo1/gen1_n.o ../fifo1/sink1.o ../fifo1/sink1_n.o ../fifo2/fifo2.o ../fifo2/fifo2_n.o ../fifo2/fifonet2_n.o ../fifo2/gen2.o ../fifo2/gen2_n.o ../fifo2/sink2.o ../fifo2/sink2_n.o ../hcube/gensink.o ../hcube/gensink_n.o ../hcube/hc_net_n.o ../hcube/hc_rte.o ../hcube/hc_rte_n.o ../hcube/hcpacket_m.o ../hcube/hcube_n.o ../hist/hist.o ../hist/hist_n.o ../nim/game.o ../nim/nim_n.o ../nim/players.o ../token/token.o ../token/token_m.o ../token/token_n.o ../topo/binarytree_n.o ../topo/chain_n.o ../topo/fullgraph_n.o ../topo/hexgrid_n.o ../topo/mesh_n.o ../topo/node.o ../topo/randomgraph_n.o ../topo/star_n.o # Additional libraries (-L option -l option) LIBS= #------------------------------------------------------------------------------ NEDC=@NEDC@ MSGC=@MSGC@ CXX=@CXX@ CC=@CC@ AR=@AR@ SHLIB_LD=@SHLIB_LD@ MAKEDEPEND=@MAKEDEPEND@ CFLAGS=@CFLAGS@ NEDCFLAGS=@NEDCFLAGS@ LDFLAGS=@LDFLAGS@ EXE_SUFFIX=@EXE_SUFFIX@ OMNETPP_INCL_DIR=@OMNETPP_INCL_DIR@ OMNETPP_LIB_DIR=@OMNETPP_LIB_DIR@ TK_LIBS=@TK_LIBS@ MPI_LIBS=@MPI_LIBS@ PVM_LIBS=@PVM_LIBS@ SYS_LIBS=@SYS_LIBS@ SYS_LIBS_PURE=-lm $(shell $(CXX) -print-file-name=libstdc++.a) # User interface libs CMDENV_LIBS=-lenvir -lcmdenv TKENV_LIBS=-lenvir -ltkenv $(TK_LIBS) # Simulation kernel STD_KERNEL_LIBS=-lsim_std MPI_KERNEL_LIBS=-lsim_mpi $(MPI_LIBS) PVM_KERNEL_LIBS=-lsim_pvm $(PVM_LIBS) # Simulation kernel and user interface libraries OMNETPP_LIBS=-L$(OMNETPP_LIB_DIR) $(USERIF_LIBS) $(KERNEL_LIBS) $(SYS_LIBS) COPTS=$(CFLAGS) $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR) NEDCOPTS=$(CFLAGS) $(NEDCFLAGS) $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR) #------------------------------------------------------------------------------ # Object files from this directory to link OBJS= WISH=@WISH@ OMNETPP_SAMPLES_DIR=@OMNETPP_SAMPLES_DIR@ default: $(TARGET) echo "$(WISH) -f $(OMNETPP_SAMPLES_DIR)/demo/rundemo.tcl $$*" > rundemo chmod +x rundemo $(TARGET): $(OBJS) $(EXRA_OBJS) Makefile subdirs-phony $(CXX) $(LDFLAGS) $(OBJS) $(EXRA_OBJS) $(SUBDIR_OBJS) $(LIBS) $(OMNETPP_LIBS) -o $(TARGET) purify: $(OBJS) $(EXRA_OBJS) subdirs-phony Makefile purify $(CXX) $(LDFLAGS) $(OBJS) $(EXRA_OBJS) $(SUBDIR_OBJS) $(LIBS) -L$(OMNETPP_LIB_DIR) $(KERNEL_LIBS) $(USERIF_LIBS) $(SYS_LIBS_PURE) -o $(TARGET).pure subdirs-phony: (cd ../dyna && make) (cd ../fddi && make) (cd ../fifo1 && make) (cd ../fifo2 && make) (cd ../hcube && make) (cd ../hist && make) (cd ../nim && make) (cd ../token && make) (cd ../topo && make) doc: neddoc.html htmldocs neddoc.html: ../dyna/dyna.ned ../fddi/fddi_mac.ned ../fddi/fddi_nets.ned ../fddi/fddi_nodes.ned ../fddi/fddi_rings.ned ../fddi/othermod.ned ../fddi/ssm_ifs.ned ../fifo1/fifo1.ned ../fifo1/fifonet1.ned ../fifo1/gen1.ned ../fifo1/sink1.ned ../fifo2/fifo2.ned ../fifo2/fifonet2.ned ../fifo2/gen2.ned ../fifo2/sink2.ned ../hcube/gensink.ned ../hcube/hc_net.ned ../hcube/hc_rte.ned ../hcube/hcube.ned ../hist/hist.ned ../nim/nim.ned ../token/token.ned ../topo/binarytree.ned ../topo/chain.ned ../topo/fullgraph.ned ../topo/hexgrid.ned ../topo/mesh.ned ../topo/randomgraph.ned ../topo/star.ned @opp_neddoc ../dyna/dyna.ned ../fddi/fddi_mac.ned ../fddi/fddi_nets.ned ../fddi/fddi_nodes.ned ../fddi/fddi_rings.ned ../fddi/othermod.ned ../fddi/ssm_ifs.ned ../fifo1/fifo1.ned ../fifo1/fifonet1.ned ../fifo1/gen1.ned ../fifo1/sink1.ned ../fifo2/fifo2.ned ../fifo2/fifonet2.ned ../fifo2/gen2.ned ../fifo2/sink2.ned ../hcube/gensink.ned ../hcube/hc_net.ned ../hcube/hc_rte.ned ../hcube/hcube.ned ../hist/hist.ned ../nim/nim.ned ../token/token.ned ../topo/binarytree.ned ../topo/chain.ned ../topo/fullgraph.ned ../topo/hexgrid.ned ../topo/mesh.ned ../topo/randomgraph.ned ../topo/star.ned > neddoc.html @echo File neddoc.html generated. htmldocs: @doxygen -g- | sed "s/^PROJECT_NAME.*/PROJECT_NAME = demo/;\ s|^INPUT *=.*|INPUT = . ../dyna ../fddi ../fifo1 ../fifo2 ../hcube ../hist ../nim ../token ../topo|;\ s/^EXTRACT_ALL *=.*/EXTRACT_ALL = yes/;\ s/^EXTRACT_PRIVATE *=.*/EXTRACT_PRIVATE = yes/;\ s/^EXCLUDE_PATTERNS *=.*/EXCLUDE_PATTERNS = *_n.cc *_n.h/;\ s/^ALPHABETICAL_INDEX *=.*/ALPHABETICAL_INDEX = yes/;\ s/^HTML_OUTPUT *=.*/HTML_OUTPUT = htmldoc/;\ s/^GENERATE_LATEX *=.*/GENERATE_LATEX = no/;\ s/^GENERATE_TREEVIEW *=.*/GENERATE_TREEVIEW = yes/;\ s/^HIDE_UNDOC_RELATIONS *=.*/HIDE_UNDOC_RELATIONS = no/;\ s|^TAGFILES *=.*|TAGFILES = d:/home/omnetpp/doc/api/opptags.xml=d:/home/omnetpp/doc/api|;\ s|^GENERATE_TAGFILE *=.*|GENERATE_TAGFILE = htmldoc/tags.xml|;\ s/^QUIET *=.*/QUIET = yes/" > doxy.cfg @doxygen doxy.cfg @echo Code documentation generated. Now, point your web browser to ./htmldoc/index.html. clean: rm -f *.o *_n.cc *_n.h *_m.cc *_m.h $(TARGET)$(EXE_SUFFIX) rm -f *.vec *.sca rm -rf neddoc.html htmldoc depend: $(MAKEDEPEND) $(INCLUDE_PATH) -- *.cc # $(MAKEDEPEND) $(INCLUDE_PATH) -fMakefile.in -- *.cc re-makemake: opp_makemake -f ../dyna ../fddi ../fifo1 ../fifo2 ../hcube ../hist ../nim ../token ../topo #recreate Makefile re-makemake-m: opp_makemake -f -m ../dyna ../fddi ../fifo1 ../fifo2 ../hcube ../hist ../nim ../token ../topo #recreate Makefile.in # DO NOT DELETE THIS LINE -- make depend depends on it.