Modified to support machines which do not have NaN(x).
[dyninst.git] / make.config
1 #
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.
7 #
8 # Revision 1.13  1995/01/30  20:42:44  jcargill
9 # Fixed error; use CXX rather then CC++
10 #
11 # Revision 1.12  1995/01/30  18:08:15  jcargill
12 # Major build system reorganization
13 #
14 # Revision 1.11  1994/09/30  19:21:07  rbi
15 # itty bitty typo fix
16 #
17 # Revision 1.10  1994/06/29  03:02:45  hollings
18 # AFS file paths
19 # added -fexternal-templates to CFLAGS
20 #
21 # Revision 1.9  1994/05/17  00:20:37  hollings
22 # added default baselined lib to VPATH
23 #
24 #
25 #
26
27 AS              = /bin/as
28 CC              = gcc
29 CXX             = g++
30 LEX             = flex
31 RANLIB          = ranlib
32 YFLAGS          = -d -y
33 YACC            = bison
34
35 ifeq ($(PLATFORM),sparc-sun-solaris2.3)
36 AS              = /usr/ccs/bin/as
37 RANLIB          = true
38 ARCH_DEF        = -Dsparc_sun_solaris2_3
39 endif
40
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
45 endif
46
47 ifeq ($(PLATFORM),i386-unknown-netbsd1.0)
48 ARCH_DEF        = -Di386_unknown_netbsd1_0
49 endif
50
51 ifeq ($(PLATFORM),hppa1.1-hp-hpux)
52 ARCH_DEF        = -Dhppa1_1_hp_hpux
53 endif
54
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
57 ifndef TO_CORE
58 TO_CORE         = ../..
59 endif
60
61 # Default module compiler; modules which want $(CC) should redefine
62 # this, **NOT** CC
63
64 MODCC           = $(CXX)
65 MODCFLAGS       = $(CXXFLAGS)
66
67
68 .SUFFIXES:      .I
69
70 # VPATH         = ../src:$(TO_CORE)/../lib/$(PLATFORM):/p/paradyn/lib/$(PLATFORM)
71
72 IFLAGS          = -I. -I$(TO_CORE)
73
74 ASFLAGS         = -P $(IFLAGS)
75
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
81
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             \
87                 -Woverloaded-virtual 
88
89 #don't inline -- for the files that won't emit template code
90 INLINE_DEFINES = 
91
92 #inline the private members of the class -- templates.o can use this
93 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
94
95 # inline everything -- the way things should be
96 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
97
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)
104
105 # flags for kludge files, won't have warnings generated
106 KFLAGS          = $(IFLAGS) -g -Wall -fexternal-templates -Dexternal_templates \
107                   $(INLINE_DEFINES) $(ARCH_DEF)
108
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)
112
113 LIBDIR          = -L$(TO_CORE)/../lib/$(PLATFORM) \
114                   -L/p/paradyn/lib/$(PLATFORM) \
115                   -L/usr/psup/lib
116
117 ifdef USES_PVM
118 PVM_DIR         = /p/paradyn/packages/pvm3/lib/$(PLATFORM)
119 IFLAGS          += -I/p/paradyn/packages/pvm3/include
120 LIBDIR          += $(patsubst %,-L%,$(PVM_DIR))
121 VPATH           += $(PVM_DIR)
122 endif
123
124 ifdef USES_TCLTK
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)
129 endif
130
131 ifdef USES_FLEX
132 FLEX_DIR        = /usr/psup/lib
133 LIBDIR          += $(patsubst %,-L%,$(FLEX_DIR))
134 VPATH           += $(FLEX_DIR)
135 endif
136
137 ifdef USES_LIBERTY
138 LIBERTY_DIR     = /usr/psup/gcc/lib
139 LIBDIR          += $(patsubst %,-L%,$(LIBERTY_DIR))
140 VPATH           += $(LIBERTY_DIR)
141 endif
142
143 ifdef USES_BLT
144 BLT_DIR         = /p/paradyn/packages/blt-1.7
145 LIBDIR          += $(patsubst %,-L%/$(PLATFORM),$(BLT_DIR))
146 VPATH           += $(BLT_DIR)/$(PLATFORM)
147 endif
148
149 ifdef USES_X11
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
156 endif
157 endif
158
159
160 ifeq ($(PLATFORM),sparc-sun-solaris2.3)
161 RANLIB          = true
162 endif