- added support for (mips-sgi-irix6.4) native compiler build
[dyninst.git] / make.platform.tmpl
1 #
2 # $Id: make.platform.tmpl,v 1.1 1999/08/09 05:36:15 csserra Exp $
3 # make.platform.tmpl: toplevel, platform-specific make configuration
4 #
5
6 ### mips-sgi-irix6.4 flags
7 ifeq ($(PLATFORM),mips-sgi-irix6.4)
8
9 ### platform flags (both compilers)
10 AS            = as -64
11 ASFLAGS      := $(filter-out -P,$(ASFLAGS))
12 TCLTK_DIR     = /p/paradyn/packages/tcl8.0p2
13
14
15 ifndef USES_NATIVE_CC
16
17 ### generic "-64" binaries (default)
18 CC            = gcc -mabi=64
19 CXX           = g++ -mabi=64
20 MODCC         = g++ -mabi=64
21 ### generic "-n32" binaries
22 CC2           = gcc -mabi=n32
23 MODCC2        = g++ -mabi=n32
24 LD2           = ld -n32
25 ### generic flags
26 OPT_FLAG      =
27 LDFLAGS      += -Wl,-woff,131 -Wl,-woff,85
28
29 else # USES_NATIVE_CC
30
31 ### native "-64" binaries (default)
32 CC            = cc -64
33 CXX           = CC -64
34 MODCC         = CC -64
35 ### native "-n32" binaries
36 CC2           = cc -n32
37 MODCC2        = CC -n32
38 LD2           = CC -n32
39 ### filter non-native flags
40 # -fno-implicit-templates
41 # -fexternal-templates
42 # -fPIC
43 # $(BASICWARNINGS)
44 # $(COMMONWARNINGS)
45 # $(USEFULWARNINGS)
46 # $(TCLFRIENDLYWARNINGS)
47 CFLAGS          := $(filter-out -f%,$(CFLAGS))
48 CXXFLAGS        := $(filter-out -f%,$(CXXFLAGS))
49 KFLAGS          := $(filter-out -f%,$(KFLAGS))
50 TFLAGS          := $(filter-out -f%,$(TFLAGS))
51 CFLAGS          := $(filter-out -W%,$(CFLAGS))
52 CXXFLAGS        := $(filter-out -W%,$(CXXFLAGS))
53 KFLAGS          := $(filter-out -W%,$(KFLAGS))
54 TFLAGS          := $(filter-out -W%,$(TFLAGS))
55 #LIBS            := $(filter-out -lstdc++,$(LIBS))
56 SYSLIBS         := $(filter-out -lstdc++,$(SYSLIBS))
57 DEPENDFLAGS     := $(subst -MM,-M,$(DEPENDFLAGS))
58 ### native flags
59 NATIVE_FLAGS    += -DUSES_NATIVE_CC
60 NATIVE_FLAGS    += -D__LONGLONG
61 NATIVE_FLAGS    += -Dvfork=fork
62 NATIVE_FLAGS    += -woff 1155
63 NATIVE_FLAGS    += -Xcpluscomm
64 NATIVE_CXXFLAGS += -LANG:ansi-for-init-scope=ON
65 NATIVE_CXXFLAGS += -woff 3303
66 CFLAGS          += $(NATIVE_FLAGS)
67 CXXFLAGS        += $(NATIVE_FLAGS) $(NATIVE_CXXFLAGS)
68 TFLAGS          += $(NATIVE_FLAGS) $(NATIVE_CXXFLAGS)
69 KFLAGS          += $(NATIVE_FLAGS) $(NATIVE_CXXFLAGS)
70 ### native linking
71 LIBDIR          += -L/usr/local/lib64
72 ### native optimization
73 ifndef NO_OPT_FLAG
74 OPT_FLAG        += -OPT:Olimit=0
75 endif
76
77 endif # USES_NATIVE_CC
78 endif # mips-sgi-irix6.4