1 # Paradyn overall build configuration (Windows/NT)
3 # $Id: nmake.config,v 1.60 2004/03/05 16:50:44 bernat 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
87 UNIFIED_DEF = $(ARCH_DEF) $(OS_DEF) $(OLD_DEF)
89 # Default module compiler; modules which want $(CC) should redefine
93 MODCFLAGS = $(CXXFLAGS)
97 VPATH = ..\src:$(TO_CORE)\$(LIBRARY_DEST):$(TO_CORE)\..\lib\$(PLATFORM):$(BACKUP_CORE)\..\lib\$(PLATFORM)
99 IFLAGS = -I. -I$(TO_CORE) -I$(RPCPKG) -I$(TO_CORE)\..\$(PLATFORM)\include
101 #ASFLAGS = -P $(UNIFIED_DEF)
103 #don't inline -- for the files that won't emit template code
106 #inline the private members of the class -- templates.o can use this
107 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
109 # inline everything -- the way things should be
110 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
113 # if we don't want OPT_FLAG defined for a particular part of the code
114 # (e.g. rtinst for aix), we just need to define NO_OPT_FLAG before doing
115 # the include of make.config - naim
120 DEFCFLAGS = -Zi -W3 -GR -GX -DNOMINMAX /wd4995
122 CFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
123 $(UNIFIED_DEF) -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400
125 CXXFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) \
126 $(UNIFIED_DEF) /Zm1234 -TP -DWIN32 -D_WIN32_WINNT=0x0500 # ccw 20 june 2001 was 0x0400 #JAW-0303 /Zm1234 increases compilation memory
128 # flags for kludge files, won't have warnings generated
129 KFLAGS = $(IFLAGS) $(UNIFIED_DEF)
131 # flags for template files, don't define external template flags
132 # -g is optional in this case -- should be defined at module level
133 TFLAGS = $(IFLAGS) $(OPT_FLAG) $(TEMP_INLINE_DEFINES) $(UNIFIED_DEF)
136 CXXFLAGS = $(CXXFLAGS) -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
139 # Start off LIBDIR to point to the user's devel area's paradyn lib directory.
140 # As a backup, in case the user hasn't checked out & compiled some paradyn lib,
141 # we stick in /p/paradyn/lib _second_.
142 LIBDIR = -LIBPATH:$(TO_CORE)\$(LIBRARY_DEST) \
143 -LIBPATH:$(TO_CORE)\..\$(PLATFORM)\lib \
144 -LIBPATH:$(TO_CORE)\..\lib\$(PLATFORM) \
145 -LIBPATH:$(BACKUP_CORE)\..\$(PLATFORM)\lib \
146 -LIBPATH:$(BACKUP_CORE)\..\lib\$(PLATFORM) \
147 -LIBPATH:$(RPCPKG)\lib
149 #USE OLD LINE INFORMATION FOR THE TIME BEING
150 CFLAGS = $(CFLAGS) -DOLD_LINE_INFO
151 CXXFLAGS = $(CXXFLAGS) -DOLD_LINE_INFO
152 TFLAGS = $(TFLAGS) -DOLD_LINE_INFO
154 # Set IGEN to point to $(TO_CORE)/../bin/$(PLATFORM)/igen, if it exists,
155 # else set it to $(BACKUP_CORE)/../bin/$(PLATFORM)/igen, if it exists,
156 # else set it to just "igen" (i.e. assume it's in the user's path)
157 IGEN = $(TO_CORE)\igen\$(PLATFORM)
159 !ifdef NO_IMPLICIT_TEMPLATES
160 #CFLAGS += -fno-implicit-templates
161 #CXXFLAGS += -fno-implicit-templates
162 #KFLAGS += -fno-implicit-templates
163 #TFLAGS += -fno-implicit-templates
166 !ifndef INSTANTIATE_TEMPLATES
167 !ifndef NO_IMPLICIT_TEMPLATES
168 # -fexternal-templates and -Dexternal_templates should both be used or
169 # neither should be used; add them to CFLAGS, CXXFLAGS, and KFLAGS
170 # (but not to TFLAGS).
172 #CFLAGS = $(CFLAGS) -fexternal-templates -Dexternal_templates
173 #CXXFLAGS = $(CXXFLAGS) -fexternal-templates -Dexternal_templates
174 #KFLAGS = $(KFLAGS) -fexternal-templates -Dexternal_templates
178 # ***** EXTERNAL SOFTWARE CONFIGURATION *****
181 # TCL2C is used to generate compilable sources from tcl files
182 # Note this needs to be back slashes
185 TCL2C = $(TO_CORE)/../scripts/tcl2c
187 TCL2C = $(TO_CORE)\..\scripts\tcl2c
189 TCL2C_GEN_SRCS = tcl2c.C
191 # Specify the Tcl/Tk files to be used
194 TCLTK_DIR = p:\paradyn\packages\tcl8.4.5
195 TCLTK_LIBVER_ID = 84t
196 CFLAGS = $(CFLAGS) -DTCLCONST="const"
197 CXXFLAGS = $(CXXFLAGS) -DTCLCONST="const"
198 TFLAGS = $(TFLAGS) -DTCLCONST="const"
199 KFLAGS = $(KFLAGS) -DTCLCONST="const"
203 TCLTK_DIR = p:\paradyn\packages\tcl8.3.4
205 CFLAGS = $(CFLAGS) -DTCLCONST=""
206 CXXFLAGS = $(CXXFLAGS) -DTCLCONST=""
207 TFLAGS = $(TFLAGS) -DTCLCONST=""
208 KFLAGS = $(KFLAGS) -DTCLCONST=""
212 TCLTK_INCLUDES = -I$(TCLTK_DIR)\include
213 TCLTK_LIBPATH = -LIBPATH:$(TCLTK_DIR)\lib
214 TCL_LIB = tcl$(TCLTK_LIBVER_ID).lib
215 TK_LIB = tk$(TCLTK_LIBVER_ID).lib
216 TCLTK_LIBS = $(TCL_LIB) $(TK_LIB)
218 IFLAGS = $(IFLAGS) $(TCLTK_INCLUDES)
219 LIBDIR = $(LIBDIR) $(TCLTK_LIBPATH)
220 !endif /* USES_TCLTK */
223 # Include any per-user configuration changes; this "local" config file
224 # should *not* be under CVS control, so that it never gets committed.
226 !if exist ($(TO_CORE)\nmake.config.local)
227 !include $(TO_CORE)\nmake.config.local