#
# Makefile for demo
#
# ** This file was automatically generated by the command:
# opp_nmakemake -f ../dyna ../fddi ../fifo1 ../fifo2 ../hcube ../hist ../nim ../token ../topo
#
# By the Perl version of opp_makemake for MSVC
#
# Name of target to be created (-o option)
TARGET = demo.exe
# 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.obj \
../dyna/dyna_n.obj \
../dyna/server.obj \
../dyna/servproc.obj \
../dyna/switch.obj \
../fddi/fddi_mac.obj \
../fddi/fddi_mac_n.obj \
../fddi/fddi_nets_n.obj \
../fddi/fddi_nodes_n.obj \
../fddi/fddi_rings_n.obj \
../fddi/othermod.obj \
../fddi/othermod_n.obj \
../fddi/ssm_ifs.obj \
../fddi/ssm_ifs_n.obj \
../fifo1/fifo1.obj \
../fifo1/fifo1_n.obj \
../fifo1/fifonet1_n.obj \
../fifo1/gen1.obj \
../fifo1/gen1_n.obj \
../fifo1/sink1.obj \
../fifo1/sink1_n.obj \
../fifo2/fifo2.obj \
../fifo2/fifo2_n.obj \
../fifo2/fifonet2_n.obj \
../fifo2/gen2.obj \
../fifo2/gen2_n.obj \
../fifo2/sink2.obj \
../fifo2/sink2_n.obj \
../hcube/gensink.obj \
../hcube/gensink_n.obj \
../hcube/hc_net_n.obj \
../hcube/hc_rte.obj \
../hcube/hc_rte_n.obj \
../hcube/hcpacket_m.obj \
../hcube/hcube_n.obj \
../hist/hist.obj \
../hist/hist_n.obj \
../nim/game.obj \
../nim/nim_n.obj \
../nim/players.obj \
../token/token.obj \
../token/token_m.obj \
../token/token_n.obj \
../topo/binarytree_n.obj \
../topo/chain_n.obj \
../topo/fullgraph_n.obj \
../topo/hexgrid_n.obj \
../topo/mesh_n.obj \
../topo/node.obj \
../topo/randomgraph_n.obj \
../topo/star_n.obj
# Additional libraries (-L option -l option)
LIBS=
#------------------------------------------------------------------------------
!include "../../configuser.vc"
# User interface libs
CMDENV_LIBS=envir.lib cmdenv.lib
TKENV_LIBS=envir.lib tkenv.lib $(TK_LIBS)
# Simulation kernel
STD_KERNEL_LIBS=sim_std.lib
MPI_KERNEL_LIBS=sim_mpi.lib $(MPI_LIBS)
PVM_KERNEL_LIBS=sim_pvm.lib $(PVM_LIBS)
# Simulation kernel and user interface libraries
OMNETPP_LIBS=/libpath:$(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=
# inserted from file 'makefrag.vc':
default: $(TARGET)
echo @$(WISH:/=\) -f $(OMNETPP_SAMPLES_DIR)/demo/rundemo.tcl %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 > rundemo.bat
$(TARGET): $(OBJS) $(EXRA_OBJS) Makefile.vc
$(LINK) $(LDFLAGS) $(OBJS) $(EXRA_OBJS) $(SUBDIR_OBJS) $(LIBS) $(OMNETPP_LIBS) /out:$(TARGET)
# purify: $(OBJS) $(EXRA_OBJS) Makefile.vc
# purify $(CXX) $(LDFLAGS) $(OBJS) $(EXRA_OBJS) $(SUBDIR_OBJS) $(LIBS) -L$(OMNETPP_LIB_DIR) $(KERNEL_LIBS) $(USERIF_LIBS) $(SYS_LIBS_PURE) -o $(TARGET).pure
doc: neddoc.html htmldocs
neddoc.html:
@opp_neddoc > neddoc.html
@echo File neddoc.html generated.
htmldocs:
@doxygen -g- | sed "s/^PROJECT_NAME.*/PROJECT_NAME = demo/;\
s|^INPUT *=.*|INPUT = . |;\
s/^EXTRACT_ALL *=.*/EXTRACT_ALL = yes/;\
s/^EXTRACT_PRIVATE *=.*/EXTRACT_PRIVATE = yes/;\
s/^EXCLUDE_PATTERNS *=.*/EXCLUDE_PATTERNS = *_n.cpp *_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 = $(OMNETPP_ROOT)/doc/api/opptags.xml=$(OMNETPP_ROOT)/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:
-del *.obj *_n.cpp *_n.h *_m.cpp *_m.h $(TARGET)$(EXE_SUFFIX) 2>NUL
-del *.vec *.sca 2>NUL
-del /S neddoc.html htmldoc 2>NUL
depend:
$(MAKEDEPEND) $(INCLUDE_PATH) -f Makefile.vc -- *.cpp
re-makemake:
opp_nmakemake_vc -f #recreate Makefile
# DO NOT DELETE THIS LINE -- make depend depends on it.
syntax highlighted by Code2HTML, v. 0.9.1