2 # $Log: make.config,v $
3 # Revision 1.14 1995/02/16 07:55:28 markc
4 # Added flags for template and kludge files.
5 # Added automatic generation of architecture defines (-Dsparc_sun_sunos4.1.3, etc)
6 # Added inline defines to generate stl code properly.
8 # Revision 1.13 1995/01/30 20:42:44 jcargill
9 # Fixed error; use CXX rather then CC++
11 # Revision 1.12 1995/01/30 18:08:15 jcargill
12 # Major build system reorganization
14 # Revision 1.11 1994/09/30 19:21:07 rbi
17 # Revision 1.10 1994/06/29 03:02:45 hollings
19 # added -fexternal-templates to CFLAGS
21 # Revision 1.9 1994/05/17 00:20:37 hollings
22 # added default baselined lib to VPATH
35 ifeq ($(PLATFORM),sparc-sun-solaris2.3)
38 ARCH_DEF = -Dsparc_sun_solaris2_3
41 ifeq ($(PLATFORM),sparc-sun-sunos4.1.3)
42 CC = /usr/psup/ngcc/bin/gcc
43 CXX = /usr/psup/ngcc/bin/g++
44 ARCH_DEF = -Dsparc_sun_sunos4_1_3
47 ifeq ($(PLATFORM),i386-unknown-netbsd1.0)
48 ARCH_DEF = -Di386_unknown_netbsd1_0
51 ifeq ($(PLATFORM),hppa1.1-hp-hpux)
52 ARCH_DEF = -Dhppa1_1_hp_hpux
55 # most "main" modules are only two levels deep, but we need to be able to
56 # change this for those that are deeper in the tree
61 # Default module compiler; modules which want $(CC) should redefine
65 MODCFLAGS = $(CXXFLAGS)
70 # VPATH = ../src:$(TO_CORE)/../lib/$(PLATFORM):/p/paradyn/lib/$(PLATFORM)
72 IFLAGS = -I. -I$(TO_CORE)
74 ASFLAGS = -P $(IFLAGS)
76 COMMONWARNINGS = -W -Wall -Wtraditional -Wshadow -Wpointer-arith \
77 -Wbad-function-cast -Wcast-qual -Wcast-align \
78 -Wwrite-strings -Wconversion -Wstrict-prototypes \
79 -Wmissing-prototypes -Wmissing-declarations \
80 -Wredundant-decls -Woverloaded-virtual
82 # not as strict as above, but can actually be used -- mdc
83 USEFULWARNINGS = -W -Wall -Wtraditional -Wpointer-arith \
84 -Wbad-function-cast -Wcast-qual -Wcast-align \
85 -Wwrite-strings -Wconversion -Wstrict-prototypes \
86 -Wmissing-prototypes -Wmissing-declarations \
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 # -fexternal-templates and -Dexternal_templates should both be used
99 # or neither should be used
100 CFLAGS = $(IFLAGS) -g -Wall -fexternal-templates -Dexternal_templates \
101 $(ARCH_DEF) $(INLINE_DEFINES)
102 CXXFLAGS = $(IFLAGS) -g -Wall -fexternal-templates -Dexternal_templates \
103 $(ARCH_DEF) $(INLINE_DEFINES)
105 # flags for kludge files, won't have warnings generated
106 KFLAGS = $(IFLAGS) -g -Wall -fexternal-templates -Dexternal_templates \
107 $(INLINE_DEFINES) $(ARCH_DEF)
109 # flags for template files, don't define external template flags
110 # -g is optional in this case -- should be defined at module level
111 TFLAGS = $(IFLAGS) -Wall $(TEMP_INLINE_DEFINES) $(ARCH_DEF)
113 LIBDIR = -L$(TO_CORE)/../lib/$(PLATFORM) \
114 -L/p/paradyn/lib/$(PLATFORM) \
118 PVM_DIR = /p/paradyn/packages/pvm3/lib/$(PLATFORM)
119 IFLAGS += -I/p/paradyn/packages/pvm3/include
120 LIBDIR += $(patsubst %,-L%,$(PVM_DIR))
125 TCLTK_DIRS = /p/paradyn/packages/tk3.6 /p/paradyn/packages/tcl7.3
126 IFLAGS += $(patsubst %,-I%,$(TCLTK_DIRS))
127 LIBDIR += $(patsubst %,-L%/$(PLATFORM),$(TCLTK_DIRS))
128 VPATH += $(TCLTK_DIRS)
132 FLEX_DIR = /usr/psup/lib
133 LIBDIR += $(patsubst %,-L%,$(FLEX_DIR))
138 LIBERTY_DIR = /usr/psup/gcc/lib
139 LIBDIR += $(patsubst %,-L%,$(LIBERTY_DIR))
140 VPATH += $(LIBERTY_DIR)
144 BLT_DIR = /p/paradyn/packages/blt-1.7
145 LIBDIR += $(patsubst %,-L%/$(PLATFORM),$(BLT_DIR))
146 VPATH += $(BLT_DIR)/$(PLATFORM)
150 ifeq ($(PLATFORM),sparc-sun-solaris2.3)
151 CFLAGS += -I/usr/openwin/include
152 CXXFLAGS += -I/usr/openwin/include
153 TFLAGS += -I/usr/openwin/include
154 LIBDIR += -L/usr/openwin/lib
155 VPATH += /usr/openwin/lib
160 ifeq ($(PLATFORM),sparc-sun-solaris2.3)