1 # Paradyn overall build configuration (Windows/NT)
3 # $Id: nmake.config,v 1.9 1998/04/03 04:03:21 wylie 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, TCL/TK, X11 and PVM (currently not supported for WinNT).
21 # uncomment/comment the following line to build with/without PVM support
22 #INCLUDE_PVM_SUPPORT=true
24 # Destinations for library and executable installation (relative to core!)
25 # Warning: modification of the build/install structure is not recommended!
26 LIBRARY_DEST = ..\lib\$(PLATFORM)
27 PROGRAM_DEST = ..\bin\$(PLATFORM)
33 LEX = p:\paradyn\packages\winnt\bin\flex
34 FLEX_LIB = p:\paradyn\packages\winnt\lib\libfl.lib
35 #TCLTK_DIR = p:\paradyn\packages\winnt\tcl8.0
37 RPCPKG = p:\paradyn\packages\winnt\oncrpc
39 YACC = p:\paradyn\packages\winnt\bin\bison
43 !ifdef SHELL # use richer Unix shell utilities when they're available!
48 BUILDSTAMP = sh p:/paradyn/scripts/buildstamp # generate build vouchers
49 !else # try and work as much as possible with "vanilla" WinNT!
54 BUILDSTAMP = cmd /c p:/paradyn/scripts/buildstamp.bat
57 # COLLECTOR is only used by purify & quantify
60 ARCH_DEF = -Di386_unknown_nt4_0
62 # most "main" modules are only two levels deep, but we need to be able to
63 # change this for those that are deeper in the tree
68 # Usually, we look for files, binaries, libs in $(TO_CORE)/....<something>.
69 # But if the file doesn't exist there (i.e. if the user hasn't checked them out
70 # with cvs), then we should look in a backup location. That's what this vrble
71 # is about. It's used several times below in this file.
72 BACKUP_CORE = p:\paradyn\core
74 # Default module compiler; modules which want $(CC) should redefine
78 MODCFLAGS = $(CXXFLAGS)
82 VPATH = ..\src:$(TO_CORE)\$(LIBRARY_DEST):$(TO_CORE)\..\lib\$(PLATFORM):$(BACKUP_CORE)\..\lib\$(PLATFORM)
84 IFLAGS = -I. -I$(TO_CORE) -I$(RPCPKG)
86 #ASFLAGS = -P $(ARCH_DEF)
88 #don't inline -- for the files that won't emit template code
91 #inline the private members of the class -- templates.o can use this
92 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
94 # inline everything -- the way things should be
95 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
97 # if we don't want OPT_FLAG defined for a particular part of the code
98 # (e.g. rtinst for aix), we just need to define NO_OPT_FLAG before doing
99 # the include of make.config - naim
106 CFLAGS = $(DEFCFLAGS) $(OPT_FLAG) $(IFLAGS) $(ARCH_DEF)
108 CXXFLAGS = $(DEFCFLAGS) $(OPT_FLAG) -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl \
109 -TP -DWIN32 $(IFLAGS) $(ARCH_DEF)
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
158 #PVM_ROOT needs to be correctly defined in the user's environment
159 PVM_INCDIR = $(PVM_ROOT)/include
160 PVM_LIBDIR = $(PVM_ROOT)/lib/$(PVM_ARCH)
161 IFLAGS = $(IFLAGS) -I$(PVM_INCDIR)
162 #LIBDIR += $(patsubst %,-L%,$(PVM_LIBDIR))
163 #VPATH += $(PVM_LIBDIR)
168 # Set TCL2C to $(TO_CORE)/tclStuff/tcl2c, if it exists, else
169 # set it to $(BACKUP_CORE)/tclStuff/tcl2c, if it exists, else
170 # set it to just tcl2c (i.e. assume it's in the user's shell path)
171 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 )
172 TCL2C_GEN_SRCS = tcl2c.C
174 # Set TCLTK_INCLUDES to $(TO_CORE)/tclStuff/include, if it exists,
175 # else set it to $(BACKUP_CORE)/tclStuff/include.
176 TCLTK_INCLUDES = $(shell if [ -d $(TO_CORE)/tclStuff/include ]; then echo $(TO_CORE)/tclStuff/include; else echo $(BACKUP_CORE)/tclStuff/include; fi )
178 IFLAGS += $(patsubst %,-I%,$(TCLTK_INCLUDES))
179 LIBDIR += $(patsubst %,-L%/lib,$(TCLTK_LIBPATH))
180 !endif /* USES_TCLTK */
183 # Since libiberty.a is in the same g++ directory as libstdc++.a and
184 # libg++.a, no need for a "-L$(LIBERTY_DIR)" entry -at
188 #ifeq ($(PLATFORM),i386-unknown-solaris2.5)
189 #CFLAGS += -I$(X11DIR)/include
190 #CXXFLAGS += -I$(X11DIR)/include
191 #TFLAGS += -I$(X11DIR)/include
192 #LIBDIR += -R$(X11DIR)/lib -L$(X11DIR)/lib
193 #VPATH += $(X11DIR)/lib
195 #endif /* USES_X11 */
198 # Include any per-user configuration changes; this "local" config file
199 # should *not* be under CVS control, so that it never gets committed.
201 !include $(TO_CORE)/make.config.local