source: trunk/include/odin32.rel.vac3.mk@ 10366

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

KSO: makefile updates

File size: 3.3 KB
Line 
1# $Id: odin32.rel.vac3.mk,v 1.14 2003-02-28 10:28:11 sandervl Exp $
2
3#
4# Odin32 API
5#
6# RELEASE makefile for the VAC3 compiler environment.
7#
8
9
10#
11# Library macros.
12#
13SOMLIB = somtk.lib
14RTLLIB = cppom30.lib
15RTLLIB_O = cppom30o.lib
16RTLLIB_NRE = cppon30.lib
17DLLENTRY = $(ODIN32_LIB)\dllentry.obj
18ODINCRT = odincrt
19LIB_DEMANGLE = demangl.lib
20
21
22#
23# Tools
24#
25CC = icc
26AS = alp
27CXX = icc
28LD = icc
29LD2 = $(EXECEXCL) $(ODIN32_TOOLS)\ilink.lock.lnk ilink
30IMPLIB = implib
31ILIB = ilib
32RC = $(ODIN32_TOOLS)\wrc
33OS2RC = rc
34
35!ifdef EXETARGET
36STATIC_CRT=1
37!endif
38
39#
40# Tool Flags
41#
42ASFLAGS = -Mb -Sc -Sv:ALP +Od
43IMPLIBFLAGS = /nologo
44ILIBFLAGS = /quiet /nologo /noignorecase
45RCFLAGS = -s -I. -I$(CPPMAIN)\include -D__WIN32OS2__
46!ifdef WRC_PREFIX_RESOURCE
47RCFLAGS = $(RCFLAGS) -p $(TARGET)
48!endif
49OS2RCFLAGS = -r -n
50OS2RCLFLAGS = -x2 -n
51
52
53#
54# C Compiler flags.
55# This may look a bit like a mess but, there is usually a reason behind
56# every line and the way it is done. We have some problems with nmake
57# when we add new flags to for example CXXFLAGS too many times.
58#
59!ifdef PROFILEHOOKS
60PROFILEFLAGS=-Gh+
61!endif
62!ifdef EXETARGET
63CTARGETFLAGS = -Ge+
64CXXTARGETFLAGS = -Ge+
65!else
66CTARGETFLAGS = -Ge-
67CXXTARGETFLAGS = -Ge-
68!endif
69CXXEXCEPTIONS = -Gx-
70CFLAGS = -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CTARGETFLAGS)
71CXXFLAGS = -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CXXTARGETFLAGS) /Gx+
72CXXFLAGS_ODINCRT = -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn- $(PROFILEFLAGS) $(CXXTARGETFLAGS) /Gx+
73CFLAGS_WIN32APP = -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CTARGETFLAGS)
74CXXFLAGS_WIN32APP= -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CXXTARGETFLAGS)
75!ifndef STATIC_CRT
76CINCLUDES = -I$(ODIN32_INCLUDE)\incl_vac -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
77!else
78CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
79!endif
80CDEFINES = -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
81CDEFINES_ODINCRT = -D__WIN32OS2__ -D__WINE__ -D__i386__
82CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__
83
84
85#
86# Linker flags.
87# This may look a bit like a mess but, there is usually a reason behind
88# every line and the way it is done. We have some problems with nmake
89# when we add new flags to for example LD2FLAGS too many times.
90#
91!ifdef EXETARGET
92!ifndef STACKSIZE
93STACKSIZE = 0x50000
94!endif
95
96! ifdef VIO
97LDTARGETFLAGS = -Ge+ -B"/pmtype:vio /stack:$(STACKSIZE)"
98LD2TARGETFLAGS = /EXEC /pmtype:vio /stack:$(STACKSIZE)
99! else
100LDTARGETFLAGS = -Ge+ -B"/pmtype:pm /stack:$(STACKSIZE)"
101LD2TARGETFLAGS = /EXEC /pmtype:pm /stack:$(STACKSIZE)
102! endif
103!else
104LDTARGETFLAGS = -Ge-
105LD2TARGETFLAGS = /DLL
106!endif
107LDFLAGS = -Q /B"/noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug /nod" $(LDTARGETFLAGS) -Si -G5 -O+ -W3 -Gm+
108LDFLAGS_ODINCRT = -Q /B"/noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug" $(LDTARGETFLAGS) -Si -G5 -O+ -W3 -Gm+
109LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug /nod $(LD2TARGETFLAGS)
110LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug $(LD2TARGETFLAGS)
111
Note: See TracBrowser for help on using the repository browser.