source: trunk/include/odin32.profile.vac36.mk@ 10366

Last change on this file since 10366 was 9876, checked in by sandervl, 23 years ago

KSO: makefile updates

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