1 # Paradyn overall build configuration (Windows/NT)
3 # $Id: nmake.config,v 1.56 2003/11/14 22:42:12 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 # most "main" modules are only two levels deep, but we need to be able to
22 # change this for those that are deeper in the tree
27 # Destinations for library and executable installation (relative to core!)
28 # Warning: modification of the build/install structure is not recommended!
29 LIBRARY_DEST = ..\lib\$(PLATFORM)
30 PROGRAM_DEST = ..\bin\$(PLATFORM)
32 # Usually, we look for files, binaries, libs in $(TO_CORE)/....<something>.
33 # But if the file doesn't exist there (i.e. if the user hasn't checked them out
34 # with cvs), then we should look in a backup location. That's what this vrble
35 # is about. It's used several times below in this file.
36 BACKUP_CORE = p:\paradyn\core
45 RPCPKG = p:\paradyn\packages\winnt\oncrpc
53 PERL = perl # NB: perl v5 or higher required!
58 LDFLAGS = $(LDFLAGS) -LIBPATH:c:\cygwin\lib
61 !ifdef SHELL # use richer Unix shell utilities when they're available!
66 BUILDSTAMP = sh $(TO_CORE)/../scripts/buildstamp # generate build vouchers
67 !else # try and work as much as possible with "vanilla" WinNT!
72 BUILDSTAMP = cmd /c $(TO_CORE)\..\scripts\buildstamp.bat
75 # COLLECTOR is only used by purify & quantify
78 ARCH_DEF = -Di386_unknown_nt4_0
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$(RPCPKG) -I$(TO_CORE)\..\$(PLATFORM)\include
92 #ASFLAGS = -P $(ARCH_DEF)
94 #don't inline -- for the files that won't emit template code
97 #inline the private members of the class -- templates.o can use this
98 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
100 # inline everything -- the way things should be
101 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
104 # if we don't want OPT_FLAG defined for a particular part of the code
105 # (e.g. rtinst for aix), we just need to define NO_OPT_FLAG before doing
106 # the include of make.config - naim
111 DEFCFLAGS = -Zi -W3 -GR -GX -DNOMINMAX /wd4995
113 CFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
114 $(ARCH_DEF) -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400
116 CXXFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
117 $(ARCH_DEF) /Zm1234 -TP -DWIN32 -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400 #JAW-0303 /Zm1234 increases compilation memory
119 # flags for kludge files, won't have warnings generated
120 KFLAGS = $(IFLAGS) $(ARCH_DEF)
122 # flags for template files, don't define external template flags
123 # -g is optional in this case -- should be defined at module level
124 TFLAGS = $(IFLAGS) $(OPT_FLAG) $(TEMP_INLINE_DEFINES) $(ARCH_DEF)
127 CXXFLAGS = $(CXXFLAGS) -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
130 # Start off LIBDIR to point to the user's devel area's paradyn lib directory.
131 # As a backup, in case the user hasn't checked out & compiled some paradyn lib,
132 # we stick in /p/paradyn/lib _second_.
133 LIBDIR = -LIBPATH:$(TO_CORE)\$(LIBRARY_DEST) \
134 -LIBPATH:$(TO_CORE)\..\$(PLATFORM)\lib \
135 -LIBPATH:$(TO_CORE)\..\lib\$(PLATFORM) \
136 -LIBPATH:$(BACKUP_CORE)\..\$(PLATFORM)\lib \
137 -LIBPATH:$(BACKUP_CORE)\..\lib\$(PLATFORM) \
138 -LIBPATH:$(RPCPKG)\lib
140 #USE OLD LINE INFORMATION FOR THE TIME BEING
141 CFLAGS = $(CFLAGS) -DOLD_LINE_INFO
142 CXXFLAGS = $(CXXFLAGS) -DOLD_LINE_INFO
143 TFLAGS = $(TFLAGS) -DOLD_LINE_INFO
145 # Set IGEN to point to $(TO_CORE)/../bin/$(PLATFORM)/igen, if it exists,
146 # else set it to $(BACKUP_CORE)/../bin/$(PLATFORM)/igen, if it exists,
147 # else set it to just "igen" (i.e. assume it's in the user's path)
148 IGEN = $(TO_CORE)\igen\$(PLATFORM)
150 !ifdef NO_IMPLICIT_TEMPLATES
151 #CFLAGS += -fno-implicit-templates
152 #CXXFLAGS += -fno-implicit-templates
153 #KFLAGS += -fno-implicit-templates
154 #TFLAGS += -fno-implicit-templates
157 !ifndef INSTANTIATE_TEMPLATES
158 !ifndef NO_IMPLICIT_TEMPLATES
159 # -fexternal-templates and -Dexternal_templates should both be used or
160 # neither should be used; add them to CFLAGS, CXXFLAGS, and KFLAGS
161 # (but not to TFLAGS).
163 #CFLAGS = $(CFLAGS) -fexternal-templates -Dexternal_templates
164 #CXXFLAGS = $(CXXFLAGS) -fexternal-templates -Dexternal_templates
165 #KFLAGS = $(KFLAGS) -fexternal-templates -Dexternal_templates
169 # ***** EXTERNAL SOFTWARE CONFIGURATION *****
172 # TCL2C is used to generate compilable sources from tcl files
173 TCL2C = $(TO_CORE)/../scripts/tcl2c
174 TCL2C_GEN_SRCS = tcl2c.C
176 # Specify the Tcl/Tk files to be used
179 TCLTK_DIR = p:\paradyn\packages\tcl8.4.3
180 TCLTK_LIBVER_ID = 84t
181 CFLAGS = $(CFLAGS) -DTCLCONST="const"
182 CXXFLAGS = $(CXXFLAGS) -DTCLCONST="const"
183 TFLAGS = $(TFLAGS) -DTCLCONST="const"
184 KFLAGS = $(KFLAGS) -DTCLCONST="const"
188 TCLTK_DIR = p:\paradyn\packages\tcl8.3.4
190 CFLAGS = $(CFLAGS) -DTCLCONST=""
191 CXXFLAGS = $(CXXFLAGS) -DTCLCONST=""
192 TFLAGS = $(TFLAGS) -DTCLCONST=""
193 KFLAGS = $(KFLAGS) -DTCLCONST=""
197 TCLTK_INCLUDES = -I$(TCLTK_DIR)\include
198 TCLTK_LIBPATH = -LIBPATH:$(TCLTK_DIR)\lib
199 TCL_LIB = tcl$(TCLTK_LIBVER_ID).lib
200 TK_LIB = tk$(TCLTK_LIBVER_ID).lib
201 TCLTK_LIBS = $(TCL_LIB) $(TK_LIB)
203 IFLAGS = $(IFLAGS) $(TCLTK_INCLUDES)
204 LIBDIR = $(LIBDIR) $(TCLTK_LIBPATH)
205 !endif /* USES_TCLTK */
208 # Include any per-user configuration changes; this "local" config file
209 # should *not* be under CVS control, so that it never gets committed.
211 !if exist ($(TO_CORE)\nmake.config.local)
212 !include $(TO_CORE)\nmake.config.local