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

Last change on this file since 10366 was 7999, checked in by bird, 24 years ago

Cleanups, mainly DEMANGLELIB -> LIB_DEMANGLE.
Also some OBJDIRs was removed.

File size: 2.8 KB
RevLine 
[7999]1# $Id: odin32.rel.wat.mk,v 1.7 2002-02-23 23:51:50 bird Exp $
[4718]2
3#
4# Odin32 API
5#
6# RELEASE makefile for the Watcom C/C++ compiler environment.
7#
8
9
10#
[4822]11# Rule attributes.
12#
13SYMBOLIC = .SYMBOLIC
14
15
16#
[4718]17# Library macros.
18#
19SOMLIB = somtk.lib
20RTLLIB = clib3r.lib
[5288]21RTLLIB_O = clib3r.lib plbrdll.lib mt7rdll.lib
[7999]22RTLLIB_NRE = clib3r.lib
[4822]23DLLENTRY = $(ODIN32_LIB)\dllentry.obj
[4718]24ODINCRT = odincrtd
[7999]25LIB_DEMANGLE =
[4718]26
27
28#
29# Tools
30#
31CXX = WPP386
32CC = WCC386
33AS = alp
34LD = wlink
35LD2 = $(LD)
36IMPLIB = implib
37ILIB = ilib
38RC = $(ODIN32_TOOLS)\wrc
39OS2RC = rc
40
41
42#
43# Tool Flags
44#
45ASFLAGS = -Mb -Sc -Sv:ALP
46IMPLIBFLAGS = /nologo
47ILIBFLAGS = /quiet /nologo
[5438]48RCFLAGS = -s -I. -I$(%WATCOM)\include -D__WIN32OS2__
[6401]49!ifdef WRC_PREFIX_RESOURCE
50RCFLAGS += -p $(TARGET)
51!endif
[4718]52OS2RCFLAGS = -r -n
53OS2RCLFLAGS = -x2 -n
54
55
56#
57# Watcom compiler flags:
58# w4 warning level 4
59# wcd=726 disable warning 726 (unreferened local variable or parameter)
60# e25 error limit
61# d2 generate symbolic debug information
62# od no optimizations
63# bm multithreaded environment
64# ez generated OMF objects
65# mf flat memory model
66# 5r pentium register calling convention
67# br use dll for runtime library functions
68# bt=os2 target os = OS/2
69# zq operate quietly (display only errors)
70# fp5 optimize floating-point for pentium
71# fpi87 inline fpu instructions
72# hw generate Watcom debug information
73# xd disable exception handling (default)
74# xs enable exception handling
75CXXEXCEPTIONS = -xs
76!ifndef STATIC_CRT
77DLLRTL = -br
78!endif
79CFLAGS = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s $(DLLRTL)
80CXXFLAGS = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s -xd $(DLLRTL)
81CXXFLAGS_ODINCRT = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s -xd
82CFLAGS_WIN32APP = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
83CXXFLAGS_WIN32APP= -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
[4822]84CINCLUDES = -I$(%WATCOM)\h -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
[4718]85CDEFINES = -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
86CDEFINES_ODINCRT = -D__WIN32OS2__ -D__WINE__ -D__i386__
87CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__
88
89!ifdef EXETARGET
90!ifdef VIO
91CFLAGS += -bc
92CXXFLAGS += -bc
93!else
94CFLAGS += -bg
95CXXFLAGS += -bg
96!endif
97!else
98CFLAGS += -bd
99CXXFLAGS += -bd
100!endif
101
102
103#
104# Linker flags.
105#
[4826]106!ifndef STACKSIZE
107STACKSIZE = 0x50000
108!endif
[4718]109LDFLAGS = option nodefaultlibs, maxe=25, q, symf
110LDFLAGS_ODINCRT = option maxe=25, q, symf
111
[4826]112!ifdef EXETARGET
113LDFLAGS += option stack=$(STACKSIZE)
114LDFLAGS_ODINCRT += option stack=$(STACKSIZE)
115!endif
116
[4718]117LD2FLAGS = $(LDFLAGS)
118LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
119
[4826]120
Note: See TracBrowser for help on using the repository browser.