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