1 # Paradyn overall build configuration (Windows/NT)
3 # $Id: nmake.config,v 1.62 2004/03/18 15:28:50 pcroth 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
33 # Destinations for library and executable installation (relative to core!)
34 # Warning: modification of the build/install structure is not recommended!
35 LIBRARY_DEST = ..\$(PLATFORM)\lib
36 PROGRAM_DEST = ..\$(PLATFORM)\bin
38 # Usually, we look for files, binaries, libs in $(TO_CORE)/....<something>.
39 # But if the file doesn't exist there (i.e. if the user hasn't checked them out
40 # with cvs), then we should look in a backup location. That's what this vrble
41 # is about. It's used several times below in this file.
42 BACKUP_CORE = p:\paradyn\core
51 RPCPKG = p:\paradyn\packages\winnt\oncrpc
59 PERL = perl # NB: perl v5 or higher required!
64 LDFLAGS = $(LDFLAGS) -LIBPATH:c:\cygwin\lib
67 !ifdef SHELL # use richer Unix shell utilities when they're available!
72 BUILDSTAMP = sh $(TO_CORE)/../scripts/buildstamp # generate build vouchers
73 !else # try and work as much as possible with "vanilla" WinNT!
78 BUILDSTAMP = cmd /c $(TO_CORE)\..\scripts\buildstamp.bat
81 # COLLECTOR is only used by purify & quantify
86 OLD_DEF = -Di386_unknown_nt4_0
88 UNIFIED_DEF = $(ARCH_DEF) $(OS_DEF) $(OLD_DEF) $(BUG_DEF)
90 # Default module compiler; modules which want $(CC) should redefine
94 MODCFLAGS = $(CXXFLAGS)
98 VPATH = ..\src:$(TO_CORE)\$(LIBRARY_DEST):$(TO_CORE)\..\lib\$(PLATFORM):$(BACKUP_CORE)\..\lib\$(PLATFORM)
100 IFLAGS = -I. -I$(TO_CORE) -I$(RPCPKG) -I$(TO_CORE)\..\$(PLATFORM)\include
102 #ASFLAGS = -P $(UNIFIED_DEF)
104 #don't inline -- for the files that won't emit template code
107 #inline the private members of the class -- templates.o can use this
108 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
110 # inline everything -- the way things should be
111 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
114 # if we don't want OPT_FLAG defined for a particular part of the code
115 # (e.g. rtinst for aix), we just need to define NO_OPT_FLAG before doing
116 # the include of make.config - naim
121 DEFCFLAGS = -Zi -W3 -GR -GX -DNOMINMAX /wd4995
123 CFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
124 $(UNIFIED_DEF) -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400
126 CXXFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
127 $(UNIFIED_DEF) /Zm1234 -TP -DWIN32 -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400 #JAW-0303 /Zm1234 increases compilation memory
129 # flags for kludge files, won't have warnings generated
130 KFLAGS = $(IFLAGS) $(UNIFIED_DEF)
132 # flags for template files, don't define external template flags
133 # -g is optional in this case -- should be defined at module level
134 TFLAGS = $(IFLAGS) $(OPT_FLAG) $(TEMP_INLINE_DEFINES) $(UNIFIED_DEF)
137 CXXFLAGS = $(CXXFLAGS) -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
140 # Start off LIBDIR to point to the user's devel area's paradyn lib directory.
141 # As a backup, in case the user hasn't checked out & compiled some paradyn lib,
142 # we stick in /p/paradyn/lib _second_.
143 LIBDIR = -LIBPATH:$(TO_CORE)\$(LIBRARY_DEST) \
144 -LIBPATH:$(TO_CORE)\..\$(PLATFORM)\lib \
145 -LIBPATH:$(TO_CORE)\..\lib\$(PLATFORM) \
146 -LIBPATH:$(BACKUP_CORE)\..\$(PLATFORM)\lib \
147 -LIBPATH:$(BACKUP_CORE)\..\lib\$(PLATFORM) \
148 -LIBPATH:$(RPCPKG)\lib
150 #USE OLD LINE INFORMATION FOR THE TIME BEING
151 CFLAGS = $(CFLAGS) -DOLD_LINE_INFO
152 CXXFLAGS = $(CXXFLAGS) -DOLD_LINE_INFO
153 TFLAGS = $(TFLAGS) -DOLD_LINE_INFO
155 # Set IGEN to point to $(TO_CORE)/../bin/$(PLATFORM)/igen, if it exists,
156 # else set it to $(BACKUP_CORE)/../bin/$(PLATFORM)/igen, if it exists,
157 # else set it to just "igen" (i.e. assume it's in the user's path)
158 IGEN = $(TO_CORE)\igen\$(PLATFORM)
160 !ifdef NO_IMPLICIT_TEMPLATES
161 #CFLAGS += -fno-implicit-templates
162 #CXXFLAGS += -fno-implicit-templates
163 #KFLAGS += -fno-implicit-templates
164 #TFLAGS += -fno-implicit-templates
167 !ifndef INSTANTIATE_TEMPLATES
168 !ifndef NO_IMPLICIT_TEMPLATES
169 # -fexternal-templates and -Dexternal_templates should both be used or
170 # neither should be used; add them to CFLAGS, CXXFLAGS, and KFLAGS
171 # (but not to TFLAGS).
173 #CFLAGS = $(CFLAGS) -fexternal-templates -Dexternal_templates
174 #CXXFLAGS = $(CXXFLAGS) -fexternal-templates -Dexternal_templates
175 #KFLAGS = $(KFLAGS) -fexternal-templates -Dexternal_templates
179 # ***** EXTERNAL SOFTWARE CONFIGURATION *****
182 # TCL2C is used to generate compilable sources from tcl files
183 # Note this needs to be back slashes
186 TCL2C = $(TO_CORE)/../scripts/tcl2c
188 TCL2C = $(TO_CORE)\..\scripts\tcl2c
190 TCL2C_GEN_SRCS = tcl2c.C
192 # Specify the Tcl/Tk files to be used
195 TCLTK_DIR = p:\paradyn\packages\tcl8.4.5
196 TCLTK_LIBVER_ID = 84t
197 CFLAGS = $(CFLAGS) -DTCLCONST="const"
198 CXXFLAGS = $(CXXFLAGS) -DTCLCONST="const"
199 TFLAGS = $(TFLAGS) -DTCLCONST="const"
200 KFLAGS = $(KFLAGS) -DTCLCONST="const"
204 TCLTK_DIR = p:\paradyn\packages\tcl8.3.4
206 CFLAGS = $(CFLAGS) -DTCLCONST=""
207 CXXFLAGS = $(CXXFLAGS) -DTCLCONST=""
208 TFLAGS = $(TFLAGS) -DTCLCONST=""
209 KFLAGS = $(KFLAGS) -DTCLCONST=""
213 TCLTK_INCLUDES = -I$(TCLTK_DIR)\include
214 TCLTK_LIBPATH = -LIBPATH:$(TCLTK_DIR)\lib
215 TCL_LIB = tcl$(TCLTK_LIBVER_ID).lib
216 TK_LIB = tk$(TCLTK_LIBVER_ID).lib
217 TCLTK_LIBS = $(TCL_LIB) $(TK_LIB)
219 IFLAGS = $(IFLAGS) $(TCLTK_INCLUDES)
220 LIBDIR = $(LIBDIR) $(TCLTK_LIBPATH)
221 !endif /* USES_TCLTK */
224 # Include any per-user configuration changes; this "local" config file
225 # should *not* be under CVS control, so that it never gets committed.
227 !if exist ($(TO_CORE)\nmake.config.local)
228 !include $(TO_CORE)\nmake.config.local