1 # Paradyn overall build configuration (Windows/NT)
3 # $Id: nmake.config,v 1.7 1998/03/02 01:04:29 wylie Exp $
10 LEX = p:\paradyn\packages\winnt\bin\flex
11 LEXLIB = p:\paradyn\packages\winnt\lib\libfl.lib
14 YACC = p:\paradyn\packages\winnt\bin\bison
19 # COLLECTOR is only used by purify & quantify
20 #COLLECTOR = /s/gcc-2.7.1/bin/../lib/gcc-lib/$(PLATFORM)/2.7.1/ld
23 ARCH_DEF = -Di386_unknown_nt4_0
27 # most "main" modules are only two levels deep, but we need to be able to
28 # change this for those that are deeper in the tree
33 # Default destinations for library and executable installation
34 LIBRARY_DEST = $(TO_CORE)\..\lib\$(PLATFORM)
35 PROGRAM_DEST = $(TO_CORE)\..\bin\$(PLATFORM)
37 # Usually, we look for files, binaries, libs in $(TO_CORE)/....<something>.
38 # But if the file doesn't exist there (i.e. if the user hasn't checked them out
39 # with cvs), then we should look in a backup location. That's what this vrble
40 # is about. It's used several times below in this file.
41 #BACKUP_CORE = p:\paradyn\core
43 # Default module compiler; modules which want $(CC) should redefine
47 MODCFLAGS = $(CXXFLAGS)
51 #VPATH = ../src:$(TO_CORE)/../lib/$(PLATFORM):/p/paradyn/lib/$(PLATFORM)
52 VPATH = ..\src:$(TO_CORE)\..\lib\$(PLATFORM)
54 IFLAGS = -I. -I$(TO_CORE) -Ip:/paradyn/packages/winnt/oncrpc/
56 #ASFLAGS = -P $(ARCH_DEF)
58 #don't inline -- for the files that won't emit template code
61 #inline the private members of the class -- templates.o can use this
62 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
64 # inline everything -- the way things should be
65 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
70 CFLAGS = $(DEFCFLAGS) $(IFLAGS) $(ARCH_DEF)
72 CXXFLAGS = $(DEFCFLAGS) -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -TP -DWIN32 $(IFLAGS) $(ARCH_DEF)
74 # flags for kludge files, won't have warnings generated
75 KFLAGS = $(IFLAGS) $(ARCH_DEF)
77 # flags for template files, don't define external template flags
78 # -g is optional in this case -- should be defined at module level
79 TFLAGS = $(IFLAGS) $(TEMP_INLINE_DEFINES) $(ARCH_DEF)
82 CXXFLAGS = $(CXXFLAGS) -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
85 # Start off LIBDIR to point to the user's devel area's paradyn lib directory.
86 # As a backup, in case the user hasn't checked out & compiled some paradyn lib,
87 # we stick in /p/paradyn/lib _second_.
88 LIBDIR = -LIBPATH:$(LIBRARY_DEST) \
89 -LIBPATH:$(BACKUP_CORE)\..\lib\$(PLATFORM) \
90 -LIBPATH:p:\paradyn\packages\winnt\oncrpc\lib\
92 # Set IGEN to point to $(TO_CORE)/../bin/$(PLATFORM)/igen, if it exists,
93 # else set it to $(BACKUP_CORE)/../bin/$(PLATFORM)/igen, if it exists,
94 # else set it to just "igen" (i.e. assume it's in the user's path)
95 IGEN = $(TO_CORE)\igen\$(PLATFORM)
97 !ifdef NO_IMPLICIT_TEMPLATES
98 #CFLAGS += -fno-implicit-templates
99 #CXXFLAGS += -fno-implicit-templates
100 #KFLAGS += -fno-implicit-templates
101 #TFLAGS += -fno-implicit-templates
104 !ifndef INSTANTIATE_TEMPLATES
105 !ifndef NO_IMPLICIT_TEMPLATES
106 # -fexternal-templates and -Dexternal_templates should both be used or
107 # neither should be used; add them to CFLAGS, CXXFLAGS, and KFLAGS
108 # (but not to TFLAGS).
110 #CFLAGS = $(CFLAGS) -fexternal-templates -Dexternal_templates
111 #CXXFLAGS = $(CXXFLAGS) -fexternal-templates -Dexternal_templates
112 #KFLAGS = $(KFLAGS) -fexternal-templates -Dexternal_templates
117 PVM_DIR = $(PVM_ROOT)/lib/$(PVM_ARCH)
118 IFLAGS = $(IFLAGS) -I$(PVM_ROOT)/include
119 #LIBDIR += $(patsubst %,-L%,$(PVM_DIR))
124 # Set TCL2C to $(TO_CORE)/tclStuff/tcl2c, if it exists, else
125 # set it to $(BACKUP_CORE)/tclStuff/tcl2c, if it exists, else
126 # set it to just tcl2c (i.e. assume it's in the user's shell path)
127 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 )
128 TCL2C_GEN_SRCS = tcl2c.C
130 # Set TCLTK_INCLUDES to $(TO_CORE)/tclStuff/include, if it exists,
131 # else set it to $(BACKUP_CORE)/tclStuff/include.
132 TCLTK_INCLUDES = $(shell if [ -d $(TO_CORE)/tclStuff/include ]; then echo $(TO_CORE)/tclStuff/include; else echo $(BACKUP_CORE)/tclStuff/include; fi )
134 TCLTK_LIBS = /p/paradyn/packages/tcl7.5
136 IFLAGS += $(patsubst %,-I%,$(TCLTK_INCLUDES))
137 LIBDIR += $(patsubst %,-L%/lib,$(TCLTK_LIBS))
141 #FLEX_DIR = p:\paradyn\packages\winnt\bin\flex
142 #LIBDIR += $(patsubst %,-L%,$(FLEX_DIR))
143 #VPATH = $(VPATH) $(FLEX_DIR)
147 # Since libiberty.a is in the same g++ directory as libstdc++.a and
148 # libg++.a, no need for a "-L$(LIBERTY_DIR)" entry -at
152 #ifeq ($(PLATFORM),sparc-sun-solaris2.4)
153 #CFLAGS += -I/usr/openwin/include
154 #CXXFLAGS += -I/usr/openwin/include
155 #TFLAGS += -I/usr/openwin/include
156 #LIBDIR += -R/usr/openwin/lib -L/usr/openwin/lib
157 #VPATH += /usr/openwin/lib
160 #ifeq ($(PLATFORM),i386-unknown-solaris2.5)
161 #CFLAGS += -I/usr/openwin/include
162 #CXXFLAGS += -I/usr/openwin/include
163 #TFLAGS += -I/usr/openwin/include
164 #LIBDIR += -R/usr/openwin/lib -L/usr/openwin/lib
165 #VPATH += /usr/openwin/lib
171 # Include any per-user configuration changes; this "local" config file
172 # should *not* be under CVS control, so that it never gets committed.
174 #!include $(TO_CORE)/make.config.local