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

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

KSO: makefile updates

File size: 3.1 KB
Line 
1# $Id: odin32.rel.vac36.mk,v 1.11 2003-02-28 10:28:11 sandervl Exp $
2
3#
4# Odin32 API
5#
6# RELEASE 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
19LIB_DEMANGLE = cpprds36.lib
20
21
22#
23# Tools
24#
25CC = icc
26AS = alp
27CXX = icc
28LD = icc
29LD2 = 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
43IMPLIBFLAGS = /nologo
44ILIBFLAGS = /nofree /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# C Compiler flags.
54# This may look a bit like a mess but, there is usually a reason behind
55# every line and the way it is done. We have some problems with nmake
56# when we add new flags to for example CXXFLAGS too many times.
57#
58!ifdef EXETARGET
59CTARGETFLAGS = -Ge+
60CXXTARGETFLAGS = -Ge+
61!else
62CTARGETFLAGS = -Ge-
63CXXTARGETFLAGS = -Ge-
64!endif
65CXXEXCEPTIONS = -Gx-
66CFLAGS = -c -Q -Si -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(CTARGETFLAGS)
67CXXFLAGS = -c -Q -Si -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(CXXTARGETFLAGS) /Gx+
68CXXFLAGS_ODINCRT = -c -Q -Si -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn- $(CXXTARGETFLAGS) /Gx+
69CFLAGS_WIN32APP = -c -Q -Si -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(CTARGETFLAGS)
70CXXFLAGS_WIN32APP= -c -Q -Si -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(CXXTARGETFLAGS)
71!ifndef STATIC_CRT
72CINCLUDES = -I$(ODIN32_INCLUDE)\incl_vac -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
73!else
74CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
75!endif
76CDEFINES = -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
77CDEFINES_ODINCRT = -D__WIN32OS2__ -D__WINE__ -D__i386__
78CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__
79
80
81#
82# Linker flags.
83# This may look a bit like a mess but, there is usually a reason behind
84# every line and the way it is done. We have some problems with nmake
85# when we add new flags to for example LD2FLAGS too many times.
86#
87!ifdef EXETARGET
88!ifndef STACKSIZE
89STACKSIZE = 0x50000
90!endif
91
92! ifdef VIO
93LDTARGETFLAGS = -Ge+ -B"/pmtype:vio /stack:$(STACKSIZE)"
94LD2TARGETFLAGS = /EXEC /pmtype:vio /stack:$(STACKSIZE)
95! else
96LDTARGETFLAGS = -Ge+ -B"/pmtype:pm /stack:$(STACKSIZE)"
97LD2TARGETFLAGS = /EXEC /pmtype:pm /stack:$(STACKSIZE)
98! endif
99!else
100LDTARGETFLAGS = -Ge-
101LD2TARGETFLAGS = /DLL
102!endif
103LDFLAGS = -Q /B"/noe /map /packcode /packdata /exepack:2 /nodebug /nod" $(LDTARGETFLAGS) -Si -G5 -O+ -W3 -Gm+
104LDFLAGS_ODINCRT = -Q /B"/noe /map /packcode /packdata /exepack:2 /nodebug" $(LDTARGETFLAGS) -Si -G5 -O+ -W3 -Gm+
105LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /nodebug /nod $(LD2TARGETFLAGS)
106LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /nodebug $(LD2TARGETFLAGS)
107
Note: See TracBrowser for help on using the repository browser.