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

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

header updates

File size: 3.4 KB
Line 
1# $Id: odin32.dbg.wat.mk,v 1.9 2002-05-17 10:13:20 sandervl Exp $
2
3#
4# Odin32 API
5#
6# DEBUG makefile for the Watcom C/C++ compiler environment.
7#
8
9
10#
11# Rule attributes.
12#
13SYMBOLIC = .SYMBOLIC
14
15
16#
17# Library macros.
18#
19SOMLIB = somtk.lib
20RTLLIB = clib3r.lib
21RTLLIB_O = clib3r.lib plbrdll.lib mt7rdll.lib
22RTLLIB_NRE = clib3r.lib
23DLLENTRY = $(ODIN32_LIB)\dllentry.obj
24ODINCRT = odincrtd
25LIB_DEMANGLE =
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 +Od -D:DEBUG
46IMPLIBFLAGS = /nologo
47ILIBFLAGS = /quiet /nologo
48RCFLAGS = -s -I. -I$(%WATCOM)\include -D__WIN32OS2__
49!ifdef WRC_PREFIX_RESOURCE
50RCFLAGS += -p $(TARGET)
51!endif
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# mf flat memory model
65# 5r pentium register calling convention
66# br use dll for runtime library functions
67# bt=os2 target os = OS/2
68# zq operate quietly (display only errors)
69# fp5 optimize floating-point for pentium
70# fpi87 inline fpu instructions
71# hw generate Watcom debug information
72# xd disable exception handling (default)
73# xs enable exception handling
74# bd build target is a dynamic link library (DLL)
75CXXEXCEPTIONS = -xs
76!ifndef STATIC_CRT
77DLLRTL = -br
78!endif
79CFLAGS = -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 $(DLLRTL)
80CXXFLAGS = -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -xd $(DLLRTL)
81CXXFLAGS_ODINCRT = -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -xd
82CFLAGS_WIN32APP = -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
83CXXFLAGS_WIN32APP= -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
84
85CINCLUDES = -I$(%WATCOM)\h -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
86CDEFINES_WIN32APP= -DDEBUG -D__WIN32OS2__ -D__i386__
87CDEFINES_ODINCRT = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__
88CDEFINES = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC
89!ifdef DEBUGALL
90 -DDEBUG_ENABLELOG_LEVEL2
91!endif
92!ifdef NODEBUGINFO
93 -DDEFAULT_LOGGING_OFF
94!endif
95
96!ifdef EXETARGET
97!ifdef VIO
98CFLAGS += -bc
99CXXFLAGS += -bc
100!else
101CFLAGS += -bg
102CXXFLAGS += -bg
103!endif
104!else
105CFLAGS += -bd
106CXXFLAGS += -bd
107!endif
108
109
110#
111# Linker flags.
112#
113LDFLAGS = option maxe=125, caseexact, quiet, symfile, nodefaultlibs LIBPath $(%WATCOM)\lib386\os2;$(%WATCOM)\lib386
114LDFLAGS_ODINCRT = option maxe=125, caseexact, quiet, symfile LIBPath $(%WATCOM)\lib386\os2;$(%WATCOM)\lib386
115
116!ifndef NODEBUGINFO
117LDFLAGS += debug all
118LDFLAGS_ODINCRT += debug all
119!endif
120
121!ifndef STACKSIZE
122STACKSIZE = 0x50000
123!endif
124
125!ifdef EXETARGET
126LDFLAGS += option stack=$(STACKSIZE)
127LDFLAGS_ODINCRT += option stack=$(STACKSIZE)
128!endif
129
130LD2FLAGS = $(LDFLAGS)
131LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
132
Note: See TracBrowser for help on using the repository browser.