source: CMT/v1r26/mgr/Unix.make

Last change on this file was 606, checked in by rybkin, 12 years ago

See C.L. 481

File size: 3.2 KB
Line 
1cppcomp   = $(CXX) -c -I$(inc) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH)
2CXX = $(cpp)
3CXXFLAGS = $(cppflags)
4CPPFLAGS = $(pp_cppflags)
5
6cpplink = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
7LDFLAGS = $(cpplinkflags)
8
9ifeq ($(STATIC),1)
10    LDFLAGS   += -static
11endif
12
13# in Makefile.core without -O2
14cpp = g++ -O2
15
16ifeq ($(CMTBIN),LinuxDebug)
17cpp = g++ -g
18endif
19
20ifeq ($(CMTBIN),Linux-i686Debug)
21cpp = g++ -g
22endif
23
24ifeq ($(CMTBIN),LinuxProf)
25cpp = g++ -g -pg
26endif
27
28ifeq ($(CMTBIN),Linux-i686Prof)
29cpp = g++ -g -pg
30endif
31
32
33ifeq ($(CMTBIN),LinuxInsure)
34cpp = insure -g
35endif
36
37ifeq ($(CMTBIN),OSF1DEB)
38cpp           = cxx -g3 -pg
39endif
40
41ifeq ($(CMTBIN),OSF1-alpha)
42cpp           = cxx
43endif
44
45ifeq ($(CMTBIN),SunOS-sun4u)
46cpp       = CC
47endif
48
49ifeq ($(CMTBIN),HP-UX)
50cpp       = aCC
51endif
52
53ifneq (,$(findstring Darwin,$(CMTBIN)))
54cpp       = c++ -O2
55endif
56
57#ifeq ($(CMTBIN),OSF1)
58#remote_launch = rsh
59#else
60remote_launch = ssh
61#endif
62
63ifeq ($(CMTBIN),CYGWIN_NT-5.1-i686)
64cpp = g++ -O2 -Wno-deprecated
65cpp = g++ -g -Wno-deprecated
66endif
67
68ifeq ($(CMTBIN),LynxOS-PowerPC)
69cpp = g++
70endif
71
72ifeq ($(CMTBIN),AIX-002065204C00)
73cpp = g++ -O2 -Wno-deprecated
74endif
75
76#
77# Derive mode/architecture from CMTBIN
78#
79ifneq (,$(findstring i386,$(CMTBIN)))
80_mode = 32
81endif
82ifneq (,$(findstring i486,$(CMTBIN)))
83_mode = 32
84endif
85ifneq (,$(findstring i586,$(CMTBIN)))
86_mode = 32
87endif
88ifneq (,$(findstring i686,$(CMTBIN)))
89_mode = 32
90endif
91ifneq (,$(findstring x86_64,$(CMTBIN)))
92_mode = 64
93endif
94
95#
96# Use mode/architecture specified on command line explicitly
97#
98ifeq ($(M32),1)
99_mode = 32
100endif
101ifeq ($(M64),1)
102_mode = 64
103endif
104
105#
106# Specify mode explicitly for g++
107# (on Mac OS X 10.6, uname -m may show i386
108# while g++ builds for x86_64 by default)
109#
110ifneq (,$(findstring g++,$(cpp)))
111ifeq ($(_mode),32)
112    TARGET_ARCH = -m32
113endif
114ifeq ($(_mode),64)
115    TARGET_ARCH = -m64
116endif
117endif
118
119#
120# Specify mode explicitly for Darwin
121# (on Mac OS X 10.6, uname -m may show i386
122# while c++ builds for x86_64 by default)
123#
124ifneq (,$(findstring Darwin,$(CMTBIN)))
125ifeq ($(_mode),32)
126    TARGET_ARCH = -arch i386
127endif
128ifeq ($(_mode),64)
129    TARGET_ARCH = -arch x86_64
130endif
131endif
132
133src       = ../src/
134inc       = ../src/
135mgr       = ../mgr/
136# in Makefile.core
137# bin       = ../$(tag)/
138bin       = ../$(CMTBIN)/
139binshort  = ../$(CMTBIN)
140
141#cpp_silent =
142#cpp_echo = @--->
143#link_silent =
144#link_echo = @--->
145
146#SHELL     = /bin/sh
147
148#tag       =
149
150# CMT requirements
151application_suffix = .exe
152#cmtexe    = $(CMTROOT)/$(CMTBIN)/cmt.exe
153build_dependencies = $(cmtexe) -tag=$(tags) build dependencies
154
155ifndef CMTDEPENDENCIES
156ifneq (,$(findstring g++,$(cpp)))
157cppdepflags = -MM
158format_dependencies = $(CMTROOT)/mgr/cmt_format_deps.sh
159build_dependencies = :
160endif
161ifneq (,$(findstring Darwin,$(CMTBIN)))
162cppdepflags = -MM
163format_dependencies = $(CMTROOT)/mgr/cmt_format_deps.sh
164build_dependencies = :
165endif
166endif
167
168use_requirements = requirements
169includes = $(inc)
170cmt_dependencies_in_cmt = /dev/null
171
172ifndef SILENT
173ifndef ECHO
174ifndef QUIET
175ifndef VERBOSE
176# default settings to build CMT
177#   o do not print CMT messages
178#   o echo Make commands
179cmtmsg =
180makecmd = 1
181echo = @:
182silent =
183MAKEFLAGS = --no-print-directory
184endif
185endif
186endif
187endif
188
189CFLAGS = 
190PACKAGE_ROOT = $(CMTROOT)
191CMTINSTALLAREA = 
Note: See TracBrowser for help on using the repository browser.