1 # Paradyn overall build configuration (Windows/NT)
3 # $Id: nmake.config,v 1.58 2004/02/29 22:51:19 schendel 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 = ..\lib\$(PLATFORM)
36 PROGRAM_DEST = ..\bin\$(PLATFORM)
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
84 ARCH_DEF = -Di386_unknown_nt4_0
86 # Default module compiler; modules which want $(CC) should redefine
90 MODCFLAGS = $(CXXFLAGS)
94 VPATH = ..\src:$(TO_CORE)\$(LIBRARY_DEST):$(TO_CORE)\..\lib\$(PLATFORM):$(BACKUP_CORE)\..\lib\$(PLATFORM)
96 IFLAGS = -I. -I$(TO_CORE) -I$(RPCPKG) -I$(TO_CORE)\..\$(PLATFORM)\include
98 #ASFLAGS = -P $(ARCH_DEF)
100 #don't inline -- for the files that won't emit template code
103 #inline the private members of the class -- templates.o can use this
104 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
106 # inline everything -- the way things should be
107 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
110 # if we don't want OPT_FLAG defined for a particular part of the code
111 # (e.g. rtinst for aix), we just need to define NO_OPT_FLAG before doing
112 # the include of make.config - naim
117 DEFCFLAGS = -Zi -W3 -GR -GX -DNOMINMAX /wd4995
119 CFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
120 $(ARCH_DEF) -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400
122 CXXFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
123 $(ARCH_DEF) /Zm1234 -TP -DWIN32 -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400 #JAW-0303 /Zm1234 increases compilation memory
125 # flags for kludge files, won't have warnings generated
126 KFLAGS = $(IFLAGS) $(ARCH_DEF)
128 # flags for template files, don't define external template flags
129 # -g is optional in this case -- should be defined at module level
130 TFLAGS = $(IFLAGS) $(OPT_FLAG) $(TEMP_INLINE_DEFINES) $(ARCH_DEF)
133 CXXFLAGS = $(CXXFLAGS) -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
136 # Start off LIBDIR to point to the user's devel area's paradyn lib directory.
137 # As a backup, in case the user hasn't checked out & compiled some paradyn lib,
138 # we stick in /p/paradyn/lib _second_.
139 LIBDIR = -LIBPATH:$(TO_CORE)\$(LIBRARY_DEST) \
140 -LIBPATH:$(TO_CORE)\..\$(PLATFORM)\lib \
141 -LIBPATH:$(TO_CORE)\..\lib\$(PLATFORM) \
142 -LIBPATH:$(BACKUP_CORE)\..\$(PLATFORM)\lib \
143 -LIBPATH:$(BACKUP_CORE)\..\lib\$(PLATFORM) \
144 -LIBPATH:$(RPCPKG)\lib
146 #USE OLD LINE INFORMATION FOR THE TIME BEING
147 CFLAGS = $(CFLAGS) -DOLD_LINE_INFO
148 CXXFLAGS = $(CXXFLAGS) -DOLD_LINE_INFO
149 TFLAGS = $(TFLAGS) -DOLD_LINE_INFO
151 # Set IGEN to point to $(TO_CORE)/../bin/$(PLATFORM)/igen, if it exists,
152 # else set it to $(BACKUP_CORE)/../bin/$(PLATFORM)/igen, if it exists,
153 # else set it to just "igen" (i.e. assume it's in the user's path)
154 IGEN = $(TO_CORE)\igen\$(PLATFORM)
156 !ifdef NO_IMPLICIT_TEMPLATES
157 #CFLAGS += -fno-implicit-templates
158 #CXXFLAGS += -fno-implicit-templates
159 #KFLAGS += -fno-implicit-templates
160 #TFLAGS += -fno-implicit-templates
163 !ifndef INSTANTIATE_TEMPLATES
164 !ifndef NO_IMPLICIT_TEMPLATES
165 # -fexternal-templates and -Dexternal_templates should both be used or
166 # neither should be used; add them to CFLAGS, CXXFLAGS, and KFLAGS
167 # (but not to TFLAGS).
169 #CFLAGS = $(CFLAGS) -fexternal-templates -Dexternal_templates
170 #CXXFLAGS = $(CXXFLAGS) -fexternal-templates -Dexternal_templates
171 #KFLAGS = $(KFLAGS) -fexternal-templates -Dexternal_templates
175 # ***** EXTERNAL SOFTWARE CONFIGURATION *****
178 # TCL2C is used to generate compilable sources from tcl files
179 TCL2C = $(TO_CORE)/../scripts/tcl2c
180 TCL2C_GEN_SRCS = tcl2c.C
182 # Specify the Tcl/Tk files to be used
185 TCLTK_DIR = p:\paradyn\packages\tcl8.4.5
186 TCLTK_LIBVER_ID = 84t
187 CFLAGS = $(CFLAGS) -DTCLCONST="const"
188 CXXFLAGS = $(CXXFLAGS) -DTCLCONST="const"
189 TFLAGS = $(TFLAGS) -DTCLCONST="const"
190 KFLAGS = $(KFLAGS) -DTCLCONST="const"
194 TCLTK_DIR = p:\paradyn\packages\tcl8.3.4
196 CFLAGS = $(CFLAGS) -DTCLCONST=""
197 CXXFLAGS = $(CXXFLAGS) -DTCLCONST=""
198 TFLAGS = $(TFLAGS) -DTCLCONST=""
199 KFLAGS = $(KFLAGS) -DTCLCONST=""
203 TCLTK_INCLUDES = -I$(TCLTK_DIR)\include
204 TCLTK_LIBPATH = -LIBPATH:$(TCLTK_DIR)\lib
205 TCL_LIB = tcl$(TCLTK_LIBVER_ID).lib
206 TK_LIB = tk$(TCLTK_LIBVER_ID).lib
207 TCLTK_LIBS = $(TCL_LIB) $(TK_LIB)
209 IFLAGS = $(IFLAGS) $(TCLTK_INCLUDES)
210 LIBDIR = $(LIBDIR) $(TCLTK_LIBPATH)
211 !endif /* USES_TCLTK */
214 # Include any per-user configuration changes; this "local" config file
215 # should *not* be under CVS control, so that it never gets committed.
217 !if exist ($(TO_CORE)\nmake.config.local)
218 !include $(TO_CORE)\nmake.config.local