1 # Paradyn overall build configuration Windows/NT
3 # $Id: nmake.config,v 1.74 2006/04/13 23:05:08 legendre Exp $
12 # Apart from actual "full" releases, don't modify these build Id components.
13 # For personal/experimental builds, feel free to use your core/make.config.local
14 # file to (re-)define BUILD_MARK as you desire.
16 # ***** IMPORTANT INSTALLATION/CONFIGURATION INSTRUCTIONS *****
17 # Unless your site is set-up identically to that of the Paradyn/DyninstAPI
18 # developers, you should carefully examine the (GNU)make configuration
19 # parameters defined in this file, particularly utilities such as the C/C++
20 # compilers, perl, flex and bison, and the installed locations and names
21 # for FLEX and RPCPKG.
23 # most "main" modules are only two levels deep, but we need to be able to
24 # change this for those that are deeper in the tree
34 PLATFORM = i386-unknown-nt4.0
37 # Destinations for library and executable installation (relative to core!)
38 # Warning: modification of the build/install structure is not recommended!
39 LIBRARY_DEST = ..\$(PLATFORM)\lib
40 PROGRAM_DEST = ..\$(PLATFORM)\bin
42 # Usually, we look for files, binaries, libs in $(TO_CORE)/....<something>.
43 # But if the file doesn't exist there (i.e. if the user hasn't checked them out
44 # with cvs), then we should look in a backup location. That's what this vrble
45 # is about. It's used several times below in this file.
46 BACKUP_CORE = p:\paradyn\core
61 PERL = perl # NB: perl v5 or higher required!
63 !ifdef SHELL # use richer Unix shell utilities when they're available!
68 BUILDSTAMP = sh $(TO_CORE)/../scripts/buildstamp -win
69 !else # try and work as much as possible with "vanilla" WinNT!
74 BUILDSTAMP = cmd /c $(TO_CORE)\..\scripts\buildstamp.bat
77 # COLLECTOR is only used by purify and quantify
80 # Default module compiler; modules which want $(CC) should redefine
84 MODCFLAGS = $(CXXFLAGS)
88 VPATH = ..\src:$(TO_CORE)\$(LIBRARY_DEST):$(TO_CORE)\..\lib\$(PLATFORM):$(BACKUP_CORE)\..\lib\$(PLATFORM)
90 IFLAGS = -I. -I$(TO_CORE) -I$(TO_CORE)\..\include
93 #don't inline -- for the files that won't emit template code
96 #inline the private members of the class -- templates.o can use this
97 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
99 # inline everything -- the way things should be
100 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
103 # if we don't want OPT_FLAG defined for a particular part of the code
104 # (e.g. rtinst for aix), we just need to define NO_OPT_FLAG before doing
105 # the include of make.config - naim
112 DEFCFLAGS = -Zi -W3 -GR -EHsc -DNOMINMAX
113 #DEFCFLAGS used to have /wd4995, which vc6-sdk no longer likes
115 CFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
116 -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400
118 CXXFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
119 $(UNIFIED_DEF) /Zm1234 -TP -DWIN32 -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400 #JAW-0303 /Zm1234 increases compilation memory
121 # flags for kludge files, won't have warnings generated
122 KFLAGS = $(IFLAGS) $(UNIFIED_DEF)
124 # flags for template files, don't define external template flags
125 # -g is optional in this case -- should be defined at module level
126 TFLAGS = $(IFLAGS) $(OPT_FLAG) $(TEMP_INLINE_DEFINES) $(UNIFIED_DEF)
129 CXXFLAGS = $(CXXFLAGS) -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
132 # Start off LIBDIR to point to the user's devel area's paradyn lib directory.
133 # As a backup, in case the user hasn't checked out and compiled some paradyn lib,
134 # we stick in /p/paradyn/lib _second_.
135 LIBDIR = -LIBPATH:$(TO_CORE)\$(LIBRARY_DEST) \
136 -LIBPATH:$(TO_CORE)\..\$(PLATFORM)\lib \
137 -LIBPATH:$(TO_CORE)\..\lib\$(PLATFORM) \
138 -LIBPATH:$(BACKUP_CORE)\..\$(PLATFORM)\lib \
139 -LIBPATH:$(BACKUP_CORE)\..\lib\$(PLATFORM) \
140 -LIBPATH:$(RPCPKG_LIB)
142 # Set IGEN to point to $(TO_CORE)/../bin/$(PLATFORM)/igen, if it exists,
143 # else set it to $(BACKUP_CORE)/../bin/$(PLATFORM)/igen, if it exists,
144 # else set it to just "igen" (i.e. assume it's in the user's path)
145 IGEN = $(TO_CORE)\igen\$(PLATFORM)
147 !ifdef NO_IMPLICIT_TEMPLATES
148 #CFLAGS += -fno-implicit-templates
149 #CXXFLAGS += -fno-implicit-templates
150 #KFLAGS += -fno-implicit-templates
151 #TFLAGS += -fno-implicit-templates
154 !ifndef INSTANTIATE_TEMPLATES
155 !ifndef NO_IMPLICIT_TEMPLATES
156 # -fexternal-templates and -Dexternal_templates should both be used or
157 # neither should be used; add them to CFLAGS, CXXFLAGS, and KFLAGS
158 # (but not to TFLAGS).
160 #CFLAGS = $(CFLAGS) -fexternal-templates -Dexternal_templates
161 #CXXFLAGS = $(CXXFLAGS) -fexternal-templates -Dexternal_templates
162 #KFLAGS = $(KFLAGS) -fexternal-templates -Dexternal_templates
166 # Include any per-user configuration changes; this "local" config file
167 # should *not* be under CVS control, so that it never gets committed.
169 !if exist ($(TO_CORE)\nmake.config.local)
170 !include $(TO_CORE)\nmake.config.local
173 # Set variables to default values if they weren't set in
180 TCLTK_DIR = p:\paradyn\packages\tcl8.3.4
182 TCLTK_DIR = p:\paradyn\packages\tcl8.4.5
186 !ifndef TCLTK_LIB_DIR
187 TCLTK_LIB_DIR = $(TCLTK_DIR)\lib
190 !ifndef TCLTK_INC_DIR
191 TCLTK_INC_DIR = $(TCLTK_DIR)\include
197 FLEX_DIR = c:\cygwin\lib
202 RPCPKG = p:\paradyn\packages\winnt\oncrpc
205 RPCPKG_INC = $(RPCPKG)
208 RPCPKG_LIB = $(RPCPKG)\lib
212 NASM = P:\paradyn\packages\nasm\bin\nasmw
215 # ***** EXTERNAL SOFTWARE CONFIGURATION *****
218 # TCL2C is used to generate compilable sources from tcl files
219 # Note this needs to be back slashes
222 TCL2C = $(TO_CORE)/../scripts/tcl2c
224 TCL2C = $(TO_CORE)\..\scripts\tcl2c
226 TCL2C_GEN_SRCS = tcl2c.C
228 # Specify the Tcl/Tk files to be used
231 TCLTK_LIBVER_ID = 84t
232 CFLAGS = $(CFLAGS) -DTCLCONST="const"
233 CXXFLAGS = $(CXXFLAGS) -DTCLCONST="const"
234 TFLAGS = $(TFLAGS) -DTCLCONST="const"
235 KFLAGS = $(KFLAGS) -DTCLCONST="const"
240 CFLAGS = $(CFLAGS) -DTCLCONST=""
241 CXXFLAGS = $(CXXFLAGS) -DTCLCONST=""
242 TFLAGS = $(TFLAGS) -DTCLCONST=""
243 KFLAGS = $(KFLAGS) -DTCLCONST=""
247 TCLTK_INCLUDES = -I$(TCLTK_INC_DIR)
248 TCLTK_LIBPATH = -LIBPATH:$(TCLTK_LIB_DIR)
249 TCL_LIB = tcl$(TCLTK_LIBVER_ID).lib
250 TK_LIB = tk$(TCLTK_LIBVER_ID).lib
251 TCLTK_LIBS = $(TCL_LIB) $(TK_LIB)
253 IFLAGS = $(IFLAGS) $(TCLTK_INCLUDES)
254 LIBDIR = $(LIBDIR) $(TCLTK_LIBPATH)
255 !endif /* USES_TCLTK */
260 LDFLAGS = $(LDFLAGS) -LIBPATH:$(FLEX_DIR)
263 IFLAGS = $(IFLAGS) -I$(RPCPKG_INC)
264 LIBDIR = $(LIBDIR) -LIBPATH:$(RPCPKG_LIB)