1 # Paradyn overall build configuration (Windows/NT)
3 # $Id: nmake.config,v 1.14 1999/01/21 20:18:11 paradyn 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.
20 # (perl, TCL/TK, X11 and PVM are currently not required for WindowsNT).
22 # uncomment/comment the following line to build with/without PVM support
23 #INCLUDE_PVM_SUPPORT=true
25 # most "main" modules are only two levels deep, but we need to be able to
26 # change this for those that are deeper in the tree
31 # Destinations for library and executable installation (relative to core!)
32 # Warning: modification of the build/install structure is not recommended!
33 LIBRARY_DEST = ..\lib\$(PLATFORM)
34 PROGRAM_DEST = ..\bin\$(PLATFORM)
36 # Usually, we look for files, binaries, libs in $(TO_CORE)/....<something>.
37 # But if the file doesn't exist there (i.e. if the user hasn't checked them out
38 # with cvs), then we should look in a backup location. That's what this vrble
39 # is about. It's used several times below in this file.
40 BACKUP_CORE = p:\paradyn\core
46 LEX = p:\paradyn\packages\winnt\bin\flex
47 FLEX_LIB = p:\paradyn\packages\winnt\lib\libfl.lib
48 #TCLTK_DIR = p:\paradyn\packages\winnt\tcl8.0
50 RPCPKG = p:\paradyn\packages\winnt\oncrpc
52 YACC = p:\paradyn\packages\winnt\bin\bison
56 !ifdef SHELL # use richer Unix shell utilities when they're available!
61 BUILDSTAMP = sh $(TO_CORE)/../scripts/buildstamp # generate build vouchers
62 !else # try and work as much as possible with "vanilla" WinNT!
67 BUILDSTAMP = cmd /c $(TO_CORE)/../scripts/buildstamp.bat
70 # COLLECTOR is only used by purify & quantify
73 ARCH_DEF = -Di386_unknown_nt4_0
75 # Default module compiler; modules which want $(CC) should redefine
79 MODCFLAGS = $(CXXFLAGS)
83 VPATH = ..\src:$(TO_CORE)\$(LIBRARY_DEST):$(TO_CORE)\..\lib\$(PLATFORM):$(BACKUP_CORE)\..\lib\$(PLATFORM)
85 IFLAGS = -I. -I$(TO_CORE) -I$(RPCPKG)
87 #ASFLAGS = -P $(ARCH_DEF)
89 #don't inline -- for the files that won't emit template code
92 #inline the private members of the class -- templates.o can use this
93 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
95 # inline everything -- the way things should be
96 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
98 # if we don't want OPT_FLAG defined for a particular part of the code
99 # (e.g. rtinst for aix), we just need to define NO_OPT_FLAG before doing
100 # the include of make.config - naim
107 CFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) $(ARCH_DEF)
109 CXXFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) $(ARCH_DEF) -TP -DWIN32
111 # flags for kludge files, won't have warnings generated
112 KFLAGS = $(IFLAGS) $(ARCH_DEF)
114 # flags for template files, don't define external template flags
115 # -g is optional in this case -- should be defined at module level
116 TFLAGS = $(IFLAGS) $(OPT_FLAG) $(TEMP_INLINE_DEFINES) $(ARCH_DEF)
119 CXXFLAGS = $(CXXFLAGS) -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
122 # Start off LIBDIR to point to the user's devel area's paradyn lib directory.
123 # As a backup, in case the user hasn't checked out & compiled some paradyn lib,
124 # we stick in /p/paradyn/lib _second_.
125 LIBDIR = -LIBPATH:$(TO_CORE)\$(LIBRARY_DEST) \
126 -LIBPATH:$(TO_CORE)\..\lib\$(PLATFORM) \
127 -LIBPATH:$(BACKUP_CORE)\..\lib\$(PLATFORM) \
128 -LIBPATH:$(RPCPKG)\lib
130 # Set IGEN to point to $(TO_CORE)/../bin/$(PLATFORM)/igen, if it exists,
131 # else set it to $(BACKUP_CORE)/../bin/$(PLATFORM)/igen, if it exists,
132 # else set it to just "igen" (i.e. assume it's in the user's path)
133 IGEN = $(TO_CORE)\igen\$(PLATFORM)
135 !ifdef NO_IMPLICIT_TEMPLATES
136 #CFLAGS += -fno-implicit-templates
137 #CXXFLAGS += -fno-implicit-templates
138 #KFLAGS += -fno-implicit-templates
139 #TFLAGS += -fno-implicit-templates
142 !ifndef INSTANTIATE_TEMPLATES
143 !ifndef NO_IMPLICIT_TEMPLATES
144 # -fexternal-templates and -Dexternal_templates should both be used or
145 # neither should be used; add them to CFLAGS, CXXFLAGS, and KFLAGS
146 # (but not to TFLAGS).
148 #CFLAGS = $(CFLAGS) -fexternal-templates -Dexternal_templates
149 #CXXFLAGS = $(CXXFLAGS) -fexternal-templates -Dexternal_templates
150 #KFLAGS = $(KFLAGS) -fexternal-templates -Dexternal_templates
154 # ***** EXTERNAL SOFTWARE CONFIGURATION *****
156 !ifdef INCLUDE_PVM_SUPPORT
159 BUILDERROR: PVM_ROOT must be defined in environment to build (and run) Paradyn
162 BUILDERROR: PVM_ROOT must be defined in environment to build (and run) Paradyn
164 PVM_INCDIR = $(PVM_ROOT)/include
165 PVM_LIBDIR = $(PVM_ROOT)/lib/$(PVM_ARCH)
166 IFLAGS = $(IFLAGS) -I$(PVM_INCDIR)
167 #LIBDIR += $(patsubst %,-L%,$(PVM_LIBDIR))
168 #VPATH += $(PVM_LIBDIR)
173 # Set TCL2C to $(TO_CORE)/tclStuff/tcl2c, if it exists, else
174 # set it to $(BACKUP_CORE)/tclStuff/tcl2c, if it exists, else
175 # set it to just tcl2c (i.e. assume it's in the user's shell path)
176 TCL2C = $(shell if [ -f $(TO_CORE)/tclStuff/tcl2c ]; then echo $(TO_CORE)/tclStuff/tcl2c; else if [ -f $(BACKUP_CORE)/tclStuff/tcl2c ]; then echo $(BACKUP_CORE)/tclStuff/tcl2c; else echo tcl2c; fi; fi )
177 TCL2C_GEN_SRCS = tcl2c.C
179 # Set TCLTK_INCLUDES to $(TO_CORE)/tclStuff/include, if it exists,
180 # else set it to $(BACKUP_CORE)/tclStuff/include.
181 TCLTK_INCLUDES = $(shell if [ -d $(TO_CORE)/tclStuff/include ]; then echo $(TO_CORE)/tclStuff/include; else echo $(BACKUP_CORE)/tclStuff/include; fi )
183 IFLAGS += $(patsubst %,-I%,$(TCLTK_INCLUDES))
184 LIBDIR += $(patsubst %,-L%/lib,$(TCLTK_LIBPATH))
185 !endif /* USES_TCLTK */
188 # Since libiberty.a is in the same g++ directory as libstdc++.a and
189 # libg++.a, no need for a "-L$(LIBERTY_DIR)" entry -at
193 #ifeq ($(PLATFORM),i386-unknown-solaris2.5)
194 #CFLAGS += -I$(X11DIR)/include
195 #CXXFLAGS += -I$(X11DIR)/include
196 #TFLAGS += -I$(X11DIR)/include
197 #LIBDIR += -R$(X11DIR)/lib -L$(X11DIR)/lib
198 #VPATH += $(X11DIR)/lib
200 #endif /* USES_X11 */
203 # Include any per-user configuration changes; this "local" config file
204 # should *not* be under CVS control, so that it never gets committed.
206 !if exist ($(TO_CORE)\nmake.config.local)
207 !include $(TO_CORE)\nmake.config.local
208 !else # try the common one
209 !if exist ($(TO_CORE)\make.config.local)
210 !include $(TO_CORE)\make.config.local