source: trunk/include/pdwin32.wat.dbg@ 4673

Last change on this file since 4673 was 4656, checked in by bird, 25 years ago

Addjustments for Watcom.

File size: 2.8 KB
Line 
1# $Id: pdwin32.wat.dbg,v 1.7 2000-11-21 04:39:19 bird Exp $
2# ODIN / win32os2 Project
3#
4# DEBUG makefile for the Watcom C/C++ compiler environment
5#
6#
7#
8
9
10#
11# Library macros.
12#
13SOMLIB = somtk.lib
14RTLLIB = clib3r.lib
15RTLLIB_O = clib3r.lib
16DLLENTRY = $(PDWIN32_LIB)\dllentry_watcom.obj
17ODINCRT = odincrtd
18
19
20#
21# Object directory.
22#
23OBJDIR = .\bin\debug.wat
24
25
26#
27# Tools
28#
29CXX = WPP386
30CC = WCC386
31AS = alp
32LD = wlink
33LD2 = $(LD)
34IMPLIB = implib
35ILIB = ilib
36RC = $(PDWIN32_TOOLS)\wrc
37OS2RC = rc
38
39
40#
41# Tool Flags
42#
43ASFLAGS = -Mb -Sc -Sv:ALP +Od -D:DEBUG
44IMPLIBFLAGS = /nologo
45ILIBFLAGS = /quiet /nologo
46RCFLAGS = -s -I. -I$(%WATCOM)\include
47OS2RCFLAGS = -r -n
48OS2RCLFLAGS = -x2 -n
49
50
51#
52# Watcom compiler flags:
53# w4 warning level 4
54# wcd=726 disable warning 726 (unreferened local variable or parameter)
55# e25 error limit
56# d2 generate symbolic debug information
57# od no optimizations
58# bm multithreaded environment
59# mf flat memory model
60# 5r pentium register calling convention
61# br use dll for runtime library functions
62# bt=os2 target os = OS/2
63# zq operate quietly (display only errors)
64# fp5 optimize floating-point for pentium
65# fpi87 inline fpu instructions
66# hw generate Watcom debug information
67# xd disable exception handling (default)
68# xs enable exception handling
69# bd build target is a dynamic link library (DLL)
70CXXEXCEPTIONS = -xs
71!ifndef STATIC_CRT
72DLLRTL = -br
73!endif
74CFLAGS = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 $(DLLRTL)
75CXXFLAGS = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -xd $(DLLRTL)
76CXXFLAGS_ODINCRT = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -xd
77CFLAGS_WIN32APP = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
78CXXFLAGS_WIN32APP= -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
79
80CINCLUDES = -i$(%WATCOM)\h -i$(PDWIN32_INCLUDE)\Win -i. -i$(PDWIN32_INCLUDE)
81CDEFINES_WIN32APP= -DDEBUG -D__WIN32OS2__ -D__i386__
82CDEFINES_ODINCRT = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__
83CDEFINES = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC \
84!ifdef DEBUGALL
85 -DDEBUG_ENABLELOG_LEVEL2 \
86!endif
87!ifdef NODEBUGINFO
88 -DDEFAULT_LOGGING_OFF
89!endif
90
91!ifdef EXETARGET
92!ifdef VIO
93CFLAGS += -bc
94CXXFLAGS += -bc
95!else
96CFLAGS += -bg
97CXXFLAGS += -bg
98!endif
99!else
100CFLAGS += -bd
101CXXFLAGS += -bd
102!endif
103
104
105#
106# Linker flags.
107#
108LDFLAGS = option maxe=125, quiet, symfile, nodefaultlibs
109LDFLAGS_ODINCRT = option maxe=125, quiet, symfile
110
111!ifndef NODEBUGINFO
112LDFLAGS += debug all
113LDFLAGS_ODINCRT += debug all
114!endif
115
116LD2FLAGS = $(LDFLAGS)
117LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
118
Note: See TracBrowser for help on using the repository browser.