| [9876] | 1 | # $Id: odin32.profile.vac3.mk,v 1.17 2003-02-28 10:28:10 sandervl Exp $
|
|---|
| [4770] | 2 |
|
|---|
| 3 | #
|
|---|
| 4 | # Odin32 API
|
|---|
| 5 | #
|
|---|
| [7422] | 6 | # PROFILE makefile for the VAC3 compiler environment.
|
|---|
| [4770] | 7 | #
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | #
|
|---|
| 11 | # Library macros.
|
|---|
| 12 | #
|
|---|
| 13 | SOMLIB = somtk.lib
|
|---|
| 14 | RTLLIB = cppom30.lib
|
|---|
| 15 | RTLLIB_O = cppom30o.lib
|
|---|
| 16 | RTLLIB_NRE = cppon30.lib
|
|---|
| 17 | DLLENTRY = $(ODIN32_LIB)\dllentry.obj
|
|---|
| [9876] | 18 | ODINCRT = odincrt
|
|---|
| 19 | !ifdef DEBUG
|
|---|
| 20 | ODINCRT = odincrtd
|
|---|
| 21 | !endif
|
|---|
| [7999] | 22 | LIB_DEMANGLE = demangl.lib
|
|---|
| [8241] | 23 | !ifndef DEBUG
|
|---|
| [9876] | 24 | # OBJ_PROFILE = $(ODIN32_LIB)\cppopa3.obj $(ODIN32_LIB)\cppopa3_fix2.obj
|
|---|
| 25 | LIB_PROFILE = $(ODIN32_LIB)\kProfile.lib
|
|---|
| [8241] | 26 | NO_LXLITE = 1
|
|---|
| 27 | !endif
|
|---|
| [4770] | 28 |
|
|---|
| 29 |
|
|---|
| 30 | #
|
|---|
| 31 | # Tools
|
|---|
| 32 | #
|
|---|
| 33 | CC = icc
|
|---|
| 34 | CXX = icc
|
|---|
| 35 | AS = alp
|
|---|
| 36 | LD = icc
|
|---|
| 37 | LD2 = $(EXECEXCL) $(ODIN32_TOOLS)\ilink.lock.lnk ilink
|
|---|
| 38 | IMPLIB = implib
|
|---|
| 39 | ILIB = ilib
|
|---|
| 40 | RC = $(ODIN32_TOOLS)\wrc
|
|---|
| 41 | OS2RC = rc
|
|---|
| 42 |
|
|---|
| [9745] | 43 | !ifdef EXETARGET
|
|---|
| 44 | STATIC_CRT=1
|
|---|
| 45 | !endif
|
|---|
| [4770] | 46 |
|
|---|
| [9745] | 47 |
|
|---|
| [4770] | 48 | #
|
|---|
| [8241] | 49 | # This knuts take at profiling.
|
|---|
| 50 | # - Profile the RELEASE version of the system using a real profiler.
|
|---|
| 51 | #
|
|---|
| 52 | !ifndef DEBUG
|
|---|
| 53 |
|
|---|
| 54 | #
|
|---|
| [4770] | 55 | # Tool Flags
|
|---|
| 56 | #
|
|---|
| [8241] | 57 | ASFLAGS = -Mb -Sc -Sv:ALP +Od
|
|---|
| 58 | IMPLIBFLAGS = /nologo
|
|---|
| 59 | ILIBFLAGS = /quiet /nologo /noignorecase
|
|---|
| 60 | RCFLAGS = -s -I. -I$(CPPMAIN)\include -D__WIN32OS2__
|
|---|
| 61 | !ifdef WRC_PREFIX_RESOURCE
|
|---|
| 62 | RCFLAGS = $(RCFLAGS) -p $(TARGET)
|
|---|
| 63 | !endif
|
|---|
| 64 | OS2RCFLAGS = -r -n
|
|---|
| 65 | OS2RCLFLAGS = -x2 -n
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 | #
|
|---|
| 69 | # C Compiler flags.
|
|---|
| 70 | # This may look a bit like a mess but, there is usually a reason behind
|
|---|
| 71 | # every line and the way it is done. We have some problems with nmake
|
|---|
| 72 | # when we add new flags to for example CXXFLAGS too many times.
|
|---|
| 73 | #
|
|---|
| 74 | !ifndef NOPROFILEHOOKS
|
|---|
| [9876] | 75 | PROFILEFLAGS = -Gh+
|
|---|
| [8241] | 76 | !endif
|
|---|
| 77 | !ifdef EXETARGET
|
|---|
| 78 | CTARGETFLAGS = -Ge+
|
|---|
| 79 | CXXTARGETFLAGS = -Ge+
|
|---|
| 80 | !else
|
|---|
| 81 | CTARGETFLAGS = -Ge-
|
|---|
| 82 | CXXTARGETFLAGS = -Ge-
|
|---|
| 83 | !endif
|
|---|
| 84 | CXXEXCEPTIONS = -Gx-
|
|---|
| 85 |
|
|---|
| [8249] | 86 | CFLAGS = -c -Q -Si -G5 -O- -Oi- -Ss+ -W3 -Gm+ /Gn+ -Ti+ $(PROFILEFLAGS) $(CTARGETFLAGS)
|
|---|
| 87 | CXXFLAGS = -c -Q -Si -G5 -O- -Oi- -Ss+ -W3 -Gm+ /Gn+ -Ti+ $(PROFILEFLAGS) $(CXXTARGETFLAGS) -Gx+
|
|---|
| 88 | CXXFLAGS_ODINCRT = -c -Q -Si -G5 -O- -Oi- -Ss+ -W3 -Gm+ /Gn- -Ti+ $(PROFILEFLAGS) $(CXXTARGETFLAGS) -Gx+
|
|---|
| 89 | CFLAGS_WIN32APP = -c -Q -Si -G5 -O- -Oi- -Ss+ -W3 -Gm+ /Gn+ -Ti+ $(PROFILEFLAGS) $(CTARGETFLAGS)
|
|---|
| 90 | CXXFLAGS_WIN32APP= -c -Q -Si -G5 -O- -Oi- -Ss+ -W3 -Gm+ /Gn+ -Ti+ $(PROFILEFLAGS) $(CXXTARGETFLAGS)
|
|---|
| [9714] | 91 | !ifndef STATIC_CRT
|
|---|
| [9876] | 92 | CINCLUDES = -I$(ODIN32_INCLUDE)\incl_vac -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
|
|---|
| 93 | !else STATIC_CRT
|
|---|
| 94 | CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
|
|---|
| [9714] | 95 | !endif
|
|---|
| [8241] | 96 | CDEFINES = -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
|
|---|
| 97 | CDEFINES_ODINCRT = -D__WIN32OS2__ -D__WINE__ -D__i386__
|
|---|
| 98 | CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__
|
|---|
| 99 |
|
|---|
| [8244] | 100 |
|
|---|
| 101 | #
|
|---|
| 102 | # Linker flags.
|
|---|
| 103 | # This may look a bit like a mess but, there is usually a reason behind
|
|---|
| 104 | # every line and the way it is done. We have some problems with nmake
|
|---|
| 105 | # when we add new flags to for example LD2FLAGS too many times.
|
|---|
| 106 | #
|
|---|
| 107 | !ifdef EXETARGET
|
|---|
| 108 | !ifndef STACKSIZE
|
|---|
| 109 | STACKSIZE = 0x50000
|
|---|
| 110 | !endif
|
|---|
| 111 |
|
|---|
| 112 | ! ifdef VIO
|
|---|
| 113 | LDTARGETFLAGS = -Ge+ -B"/pmtype:vio /stack:$(STACKSIZE)"
|
|---|
| 114 | LD2TARGETFLAGS = /EXEC /pmtype:vio /stack:$(STACKSIZE)
|
|---|
| 115 | ! else
|
|---|
| 116 | LDTARGETFLAGS = -Ge+ -B"/pmtype:pm /stack:$(STACKSIZE)"
|
|---|
| 117 | LD2TARGETFLAGS = /EXEC /pmtype:pm /stack:$(STACKSIZE)
|
|---|
| 118 | ! endif
|
|---|
| [8241] | 119 | !else
|
|---|
| [8244] | 120 | LDTARGETFLAGS = -Ge-
|
|---|
| 121 | LD2TARGETFLAGS = /DLL
|
|---|
| 122 | !endif
|
|---|
| [9876] | 123 | LDFLAGS = -Q -B"/noe /map /packcode /packdata /exepack:2 /linenumbers /dbgpack /nod" -Ti -Si -W3 -Gm+ $(PROFILEFLAGS) $(LDTARGETFLAGS)
|
|---|
| 124 | LDFLAGS_ODINCRT = -Q -B"/noe /map /packcode /packdata /exepack:2 /linenumbers /dbgpack " -Ti -Si -W3 -Gm+ $(PROFILEFLAGS) $(LDTARGETFLAGS)
|
|---|
| 125 | LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /dbgpack /nod /debug $(LD2TARGETFLAGS)
|
|---|
| 126 | LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /dbgpack /debug $(LD2TARGETFLAGS)
|
|---|
| [8244] | 127 |
|
|---|
| [9876] | 128 |
|
|---|
| [8244] | 129 | !else
|
|---|
| [8241] | 130 | #
|
|---|
| 131 | # This is Patricks take at profiling.
|
|---|
| 132 | # - Profile the DEBUG version of the system.
|
|---|
| 133 | #
|
|---|
| 134 |
|
|---|
| 135 | #
|
|---|
| 136 | # Tool Flags
|
|---|
| 137 | #
|
|---|
| [4770] | 138 | ASFLAGS = -Mb -Sc -Sv:ALP +Od -D:DEBUG
|
|---|
| 139 | IMPLIBFLAGS = /nologo
|
|---|
| [7120] | 140 | ILIBFLAGS = /quiet /nologo /noignorecase
|
|---|
| [7000] | 141 | RCFLAGS = -s -I. -I$(CPPMAIN)\include -D__WIN32OS2__
|
|---|
| 142 | !ifdef WRC_PREFIX_RESOURCE
|
|---|
| 143 | RCFLAGS = $(RCFLAGS) -p $(TARGET)
|
|---|
| 144 | !endif
|
|---|
| [4770] | 145 | OS2RCFLAGS = -r -n
|
|---|
| 146 | OS2RCLFLAGS = -x2 -n
|
|---|
| 147 |
|
|---|
| 148 |
|
|---|
| 149 | #
|
|---|
| 150 | # C Compiler flags.
|
|---|
| 151 | # This may look a bit like a mess but, there is usually a reason behind
|
|---|
| 152 | # every line and the way it is done. We have some problems with nmake
|
|---|
| 153 | # when we add new flags to for example CXXFLAGS too many times.
|
|---|
| 154 | #
|
|---|
| [7478] | 155 | !ifdef PROFILEHOOKS
|
|---|
| 156 | PROFILEFLAGS=-Gh+
|
|---|
| 157 | !endif
|
|---|
| [4770] | 158 | !ifdef EXETARGET
|
|---|
| 159 | CTARGETFLAGS = -Ge+
|
|---|
| 160 | CXXTARGETFLAGS = -Ge+
|
|---|
| 161 | !else
|
|---|
| 162 | CTARGETFLAGS = -Ge-
|
|---|
| 163 | CXXTARGETFLAGS = -Ge-
|
|---|
| 164 | !endif
|
|---|
| 165 | CXXEXCEPTIONS = -Gx-
|
|---|
| [9876] | 166 | CFLAGS = -c -Q -Si -Ti+ -Tm+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CTARGETFLAGS)
|
|---|
| 167 | CXXFLAGS = -c -Q -Si -Ti+ -Tm+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CXXTARGETFLAGS) /Gx+
|
|---|
| 168 | CXXFLAGS_ODINCRT = -c -Q -Si -Ti+ -Tm+ -Ss+ -W3 -Gm+ /Gn- $(PROFILEFLAGS) $(CXXTARGETFLAGS) /Gx+
|
|---|
| 169 | CFLAGS_WIN32APP = -c -Q -Si -Ti+ -Tm+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CTARGETFLAGS)
|
|---|
| 170 | CXXFLAGS_WIN32APP= -c -Q -Si -Ti+ -Tm+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CXXTARGETFLAGS)
|
|---|
| [4770] | 171 | CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
|
|---|
| 172 | CDEFINES_WIN32APP= -DDEBUG -DPROFILE -D__WIN32OS2__ -D__i386__
|
|---|
| 173 | CDEFINES_ODINCRT = -DDEBUG -DPROFILE -D__WIN32OS2__ -D__i386__ -D__WINE__
|
|---|
| 174 | CDEFINES = -DDEBUG -DPROFILE -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC \
|
|---|
| 175 | !ifdef DEBUGALL
|
|---|
| 176 | -DDEBUG_ENABLELOG_LEVEL2 \
|
|---|
| 177 | !endif
|
|---|
| 178 | !ifdef NODEBUGINFO
|
|---|
| 179 | -DDEFAULT_LOGGING_OFF
|
|---|
| 180 | !endif
|
|---|
| 181 |
|
|---|
| 182 |
|
|---|
| 183 | #
|
|---|
| 184 | # Linker flags.
|
|---|
| 185 | # This may look a bit like a mess but, there is usually a reason behind
|
|---|
| 186 | # every line and the way it is done. We have some problems with nmake
|
|---|
| 187 | # when we add new flags to for example LD2FLAGS too many times.
|
|---|
| 188 | #
|
|---|
| 189 | !ifdef EXETARGET
|
|---|
| [7000] | 190 | !ifndef STACKSIZE
|
|---|
| 191 | STACKSIZE = 0x50000
|
|---|
| 192 | !endif
|
|---|
| 193 |
|
|---|
| [4770] | 194 | ! ifdef VIO
|
|---|
| [7000] | 195 | LDTARGETFLAGS = -Ge+ -B"/pmtype:vio /stack:$(STACKSIZE)"
|
|---|
| 196 | LD2TARGETFLAGS = /EXEC /pmtype:vio /stack:$(STACKSIZE)
|
|---|
| [4770] | 197 | ! else
|
|---|
| [7000] | 198 | LDTARGETFLAGS = -Ge+ -B"/pmtype:pm /stack:$(STACKSIZE)"
|
|---|
| 199 | LD2TARGETFLAGS = /EXEC /pmtype:pm /stack:$(STACKSIZE)
|
|---|
| [4770] | 200 | ! endif
|
|---|
| 201 | !else
|
|---|
| 202 | LDTARGETFLAGS = -Ge-
|
|---|
| 203 | LD2TARGETFLAGS = /DLL
|
|---|
| 204 | !endif
|
|---|
| 205 | !ifdef NODEBUGINFO
|
|---|
| [8244] | 206 | LDFLAGS = -Q -B"/noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug /nodbgpack /nod" -Si -W3 -Gm+ $(LDTARGETFLAGS)
|
|---|
| 207 | LDFLAGS_ODINCRT = -Q -B"/noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug /nodbgpack" -Si -W3 -Gm+ $(LDTARGETFLAGS)
|
|---|
| 208 | LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug /nodbgpack /nod $(LD2TARGETFLAGS)
|
|---|
| 209 | LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug /nodbgpack $(LD2TARGETFLAGS)
|
|---|
| [4770] | 210 | !else
|
|---|
| [8244] | 211 | LDFLAGS = -Q -B"/noe /map /packcode /packdata /exepack:2 /linenumbers /dbgpack /nod" -Ti -Si -W3 -Gm+ $(LDTARGETFLAGS)
|
|---|
| 212 | LDFLAGS_ODINCRT = -Q -B"/noe /map /packcode /packdata /exepack:2 /linenumbers /dbgpack " -Ti -Si -W3 -Gm+ $(LDTARGETFLAGS)
|
|---|
| 213 | LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /dbgpack /nod /debug $(LD2TARGETFLAGS)
|
|---|
| 214 | LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /dbgpack /debug $(LD2TARGETFLAGS)
|
|---|
| [4770] | 215 | !endif
|
|---|
| 216 |
|
|---|
| [8244] | 217 | !endif #profile type
|
|---|
| 218 |
|
|---|
| 219 |
|
|---|
| 220 |
|
|---|