1 # Paradyn overall build configuration (Windows/NT)
3 # $Id: nmake.config,v 1.17 1999/03/03 23:32:06 pcroth Exp $
10 # Apart from actual "full" releases, don't modify these build Id components.
11 # For personal/experimental builds, feel free to use your core/make.config.local
12 # file to (re-)define BUILD_MARK as you desire.
14 # ***** IMPORTANT INSTALLATION/CONFIGURATION INSTRUCTIONS *****
15 # Unless your site is set-up identically to that of the Paradyn/DynInstAPI
16 # developers, you should carefully examine the (GNU)make configuration
17 # parameters defined in this file, particularly utilities such as the C/C++
18 # compilers, perl, flex and bison, and the installed locations and names
19 # for FLEX and RPCPKG.
21 # uncomment/comment the following line to build with/without PVM support
22 #INCLUDE_PVM_SUPPORT=true
24 # most "main" modules are only two levels deep, but we need to be able to
25 # change this for those that are deeper in the tree
30 # Destinations for library and executable installation (relative to core!)
31 # Warning: modification of the build/install structure is not recommended!
32 LIBRARY_DEST = ..\lib\$(PLATFORM)
33 PROGRAM_DEST = ..\bin\$(PLATFORM)
35 # Usually, we look for files, binaries, libs in $(TO_CORE)/....<something>.
36 # But if the file doesn't exist there (i.e. if the user hasn't checked them out
37 # with cvs), then we should look in a backup location. That's what this vrble
38 # is about. It's used several times below in this file.
39 BACKUP_CORE = p:\paradyn\core
45 LEX = p:\paradyn\packages\winnt\bin\flex
46 FLEX_LIB = p:\paradyn\packages\winnt\lib\libfl.lib
47 TCLTK_DIR = p:\paradyn\packages\tcl8.0p4
49 RPCPKG = p:\paradyn\packages\winnt\oncrpc
55 PERL = perl # NB: perl v5 or higher required!
57 !ifdef SHELL # use richer Unix shell utilities when they're available!
62 BUILDSTAMP = sh $(TO_CORE)/../scripts/buildstamp # generate build vouchers
63 !else # try and work as much as possible with "vanilla" WinNT!
68 BUILDSTAMP = cmd /c $(TO_CORE)/../scripts/buildstamp.bat
71 # COLLECTOR is only used by purify & quantify
74 ARCH_DEF = -Di386_unknown_nt4_0
76 # Default module compiler; modules which want $(CC) should redefine
80 MODCFLAGS = $(CXXFLAGS)
84 VPATH = ..\src:$(TO_CORE)\$(LIBRARY_DEST):$(TO_CORE)\..\lib\$(PLATFORM):$(BACKUP_CORE)\..\lib\$(PLATFORM)
86 IFLAGS = -I. -I$(TO_CORE) -I$(RPCPKG)
88 #ASFLAGS = -P $(ARCH_DEF)
90 #don't inline -- for the files that won't emit template code
93 #inline the private members of the class -- templates.o can use this
94 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
96 # inline everything -- the way things should be
97 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
99 # if we don't want OPT_FLAG defined for a particular part of the code
100 # (e.g. rtinst for aix), we just need to define NO_OPT_FLAG before doing
101 # the include of make.config - naim
106 DEFCFLAGS = -Z7 -W3 -DNOMINMAX
108 CFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
109 $(ARCH_DEF) -D_WIN32_WINNT=0x0400
111 CXXFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
112 $(ARCH_DEF) -TP -DWIN32 -D_WIN32_WINNT=0x0400
114 # flags for kludge files, won't have warnings generated
115 KFLAGS = $(IFLAGS) $(ARCH_DEF)
117 # flags for template files, don't define external template flags
118 # -g is optional in this case -- should be defined at module level
119 TFLAGS = $(IFLAGS) $(OPT_FLAG) $(TEMP_INLINE_DEFINES) $(ARCH_DEF)
122 CXXFLAGS = $(CXXFLAGS) -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
125 # Start off LIBDIR to point to the user's devel area's paradyn lib directory.
126 # As a backup, in case the user hasn't checked out & compiled some paradyn lib,
127 # we stick in /p/paradyn/lib _second_.
128 LIBDIR = -LIBPATH:$(TO_CORE)\$(LIBRARY_DEST) \
129 -LIBPATH:$(TO_CORE)\..\lib\$(PLATFORM) \
130 -LIBPATH:$(BACKUP_CORE)\..\lib\$(PLATFORM) \
131 -LIBPATH:$(RPCPKG)\lib
133 # Set IGEN to point to $(TO_CORE)/../bin/$(PLATFORM)/igen, if it exists,
134 # else set it to $(BACKUP_CORE)/../bin/$(PLATFORM)/igen, if it exists,
135 # else set it to just "igen" (i.e. assume it's in the user's path)
136 IGEN = $(TO_CORE)\igen\$(PLATFORM)
138 !ifdef NO_IMPLICIT_TEMPLATES
139 #CFLAGS += -fno-implicit-templates
140 #CXXFLAGS += -fno-implicit-templates
141 #KFLAGS += -fno-implicit-templates
142 #TFLAGS += -fno-implicit-templates
145 !ifndef INSTANTIATE_TEMPLATES
146 !ifndef NO_IMPLICIT_TEMPLATES
147 # -fexternal-templates and -Dexternal_templates should both be used or
148 # neither should be used; add them to CFLAGS, CXXFLAGS, and KFLAGS
149 # (but not to TFLAGS).
151 #CFLAGS = $(CFLAGS) -fexternal-templates -Dexternal_templates
152 #CXXFLAGS = $(CXXFLAGS) -fexternal-templates -Dexternal_templates
153 #KFLAGS = $(KFLAGS) -fexternal-templates -Dexternal_templates
157 # ***** EXTERNAL SOFTWARE CONFIGURATION *****
159 !ifdef INCLUDE_PVM_SUPPORT
162 BUILDERROR: PVM_ROOT must be defined in environment to build (and run) Paradyn
165 BUILDERROR: PVM_ROOT must be defined in environment to build (and run) Paradyn
167 PVM_INCDIR = $(PVM_ROOT)/include
168 PVM_LIBDIR = $(PVM_ROOT)/lib/$(PVM_ARCH)
169 IFLAGS = $(IFLAGS) -I$(PVM_INCDIR)
170 #LIBDIR += $(patsubst %,-L%,$(PVM_LIBDIR))
171 #VPATH += $(PVM_LIBDIR)
176 # Comment in the location of the tcl2c that you wish to use
177 TCL2C = $(TO_CORE)/tclStuff/tcl2c
178 #TCL2C = $(BACKUP_CORE)/tclStuff/tcl2c
181 TCL2C_GEN_SRCS = tcl2c.C
183 # Comment in the location of the Tcl/Tk files you wish to use
184 TCLTK_INCLUDES = -I$(TCLTK_DIR)\common\include
185 #TCLTK_INCLUDES = -I$(TO_CORE)/tclStuff/include
186 #TCLTK_INCLUDES = -I$(BACKUP_CORE)/tclStuff/include
188 TCLTK_LIBS = tcl80.lib tk80.lib
189 TCLTK_LIBPATH = -LIBPATH:$(TCLTK_DIR)\lib
191 IFLAGS = $(IFLAGS) $(TCLTK_INCLUDES)
192 LIBDIR = $(LIBDIR) $(TCLTK_LIBPATH)
193 !endif /* USES_TCLTK */
196 # Include any per-user configuration changes; this "local" config file
197 # should *not* be under CVS control, so that it never gets committed.
199 !if exist ($(TO_CORE)\nmake.config.local)
200 !include $(TO_CORE)\nmake.config.local
201 !else # try the common one
202 !if exist ($(TO_CORE)\make.config.local)
203 !include $(TO_CORE)\make.config.local