# # This file is included by all Makefile.vc's. It contains flags and settings # for compiling with MSVC. You are free to edit the settings in here. # # # base directories # # Edit these variables! # # Use forward slashes ('/') in the dir names, not backslashes ('\')! # Don't use relative directories! # Directory names with spaces may also cause problems, it's better to use # short file names (e.g. 'C:/PROGRA~1' instead of 'C:/Program files'). # OMNETPP_ROOT=d:/home/omnetpp-2.3p1 # Version. Should ideally come from the 'Version' file... OMNETPP_VERSION=omnetpp-2.3p1 # # Location of Tcl/Tk, PVM, MPI, Expat # TK_DIR=d:/home/tools/Tcl-8.4.2 TK_VER=8.4 PVM_DIR=d:/home/tools/pvm3 MPI_DIR=d:/home/tools/mpi EXPAT_DIR=d:/home/tools/expat-1.95.6 DOXYGEN_DIR=d:/home/tools/doxygen # # Choice of XML parser. Possible choices: expat or none (perhaps libxml in the # future?). If set to 'none', nedxml will compile but not support XML input. # XMLPARSER=expat #XMLPARSER=none # # other directories & files based on the base dirs # OMNETPP_SRC_DIR=$(OMNETPP_ROOT)/src OMNETPP_SAMPLES_DIR=$(OMNETPP_ROOT)/samples OMNETPP_TUTORIAL_DIR=$(OMNETPP_ROOT)/tutorial OMNETPP_TEST_DIR=$(OMNETPP_ROOT)/test OMNETPP_DOC_DIR=$(OMNETPP_ROOT)/doc OMNETPP_BIN_DIR=$(OMNETPP_ROOT)/bin OMNETPP_INCL_DIR=$(OMNETPP_ROOT)/include OMNETPP_LIB_DIR=$(OMNETPP_ROOT)/lib TK_INCL_DIR=$(TK_DIR)/include TK_LIB_DIR=$(TK_DIR)/lib TCL_LIB=tcl$(TK_VER:.=).lib TK_LIB=tk$(TK_VER:.=).lib _TCL_LIBRARY=$(TK_DIR)/lib/tcl$(TK_VER) PVM_INCL_DIR=$(PVM_DIR)/include MPI_INCL_DIR=$(MPI_DIR)/include EXPAT_INCL_DIR=$(EXPAT_DIR)/source/lib EXPAT_LIB_DIR=$(EXPAT_DIR)/libs EXPAT_LIB=libexpat.lib # # tools # # MSVC programs CXX=cl.exe LINK=link.exe AS=cl.exe AR=link.exe /lib SHLIB_LD=link.exe /dll RC=rc.exe # Perl: needed for makedep, experimental msg subclassing compiler (msgc), test tool (opp_test) PERL=perl.exe # dependency generator (needs Perl!) MAKEDEPEND=$(PERL) $(OMNETPP_ROOT)/src/utils/opp_makedep -Y --objsuffix .obj --objdirtree # OMNeT++ tools NEDC=$(OMNETPP_BIN_DIR)/nedc #NEDC=$(OMNETPP_BIN_DIR)/nedtool MSGC=$(OMNETPP_BIN_DIR)/opp_msgc REPLACE=$(OMNETPP_SRC_DIR)/utils/opp_replace # the Tcl/Tk interpreter, used by Plove WISH=$(TK_DIR)/bin/wish$(TK_VER:.=).exe # flex/bison: only needed it you want to modify NEDC or GNED YACC=d:/home/tools/UnxUtils/usr/local/wbin/bison.exe LEX=d:/home/tools/UnxUtils/usr/local/wbin/flex.exe # for documentation generation DOXYGEN=$(DOXYGEN_DIR)/bin/doxygen # # configuration # # Compiler switches CFLAGS_DEBUG=/nologo /GX /GR /FD /Zm180 /MLd /Od /Gm /GZ /ZI LDFLAGS_DEBUG=/nologo /subsystem:console /debug /machine:I386 /incremental:no CFLAGS_RELEASE=/nologo /GX /GR /FD /Zm180 /ML /O2 /D "NDEBUG" LDFLAGS_RELEASE=/nologo /subsystem:console /machine:I386 /incremental:no #CFLAGS=$(CFLAGS_DEBUG) #LDFLAGS=$(LDFLAGS_DEBUG) CFLAGS=$(CFLAGS_RELEASE) LDFLAGS=$(LDFLAGS_RELEASE) # LIB_SUFFIX is either .lib or .dll LIB_SUFFIX=.lib HAVE_DLOPEN=0 OMNETPP_TKENV_DIR=$(OMNETPP_ROOT)/src/tkenv OMNETPP_GNED_DIR=$(OMNETPP_ROOT)/src/gned OMNETPP_BITMAP_PATH=.;./bitmaps;$(OMNETPP_ROOT)/bitmaps # # Compile switches (e.g. -Ixxx) and linker switches # necessary to build an app with PVM or Tcl/Tk. # TK_CFLAGS=/I "$(TK_INCL_DIR)" TK_LIBS=$(TCL_LIB) $(TK_LIB) /libpath:"$(TK_LIB_DIR)" PVM_CFLAGS=/I "$(PVM_INCL_DIR)" PVM_LIBS= MPI_CFLAGS=/I "$(MPI_INCL_DIR)" MPI_LIBS= XML_CFLAGS=/I "$(EXPAT_INCL_DIR)" XML_LIBS=$(EXPAT_LIB) /libpath:"$(EXPAT_LIB_DIR)" SYS_LIBS= # # If you don't want to build some of the components below, substitute # missing-library (or missing-pvm-library, missing-mpi-library) below # TKENV_IF_POSSIBLE=tkenv SIM_PVM_IF_POSSIBLE=missing-pvm-library SIM_MPI_IF_POSSIBLE=missing-mpi-library GNED_IF_POSSIBLE=gned # # It is possible to have the Tcl files embedded into the compiled OMNeT++ # libraries and executables. This can be useful if you want to ship # self-contained standalone executables which do not rely on external # Tcl scripts. # # This option is available at present for Tkenv, GNED and Plove. # Set the following variables to "yes" to enable embedding Tcl files. # TKENV_EMBED_TCL=yes GNED_EMBED_TCL=yes PLOVE_EMBED_TCL=yes # # It is possible to compile GNED and Plove as Windows GUI apps (ie. not # console apps). Set the following variable to "yes" to enable compiling # GUI apps. # USE_WINMAIN=yes