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
RevLine 
[4656]1# $Id: pdwin32.wat.dbg,v 1.7 2000-11-21 04:39:19 bird Exp $
[4075]2# ODIN / win32os2 Project
3#
4# DEBUG makefile for the Watcom C/C++ compiler environment
5#
6#
[4642]7#
[4075]8
[4642]9
10#
11# Library macros.
12#
[4075]13SOMLIB = somtk.lib
[4334]14RTLLIB = clib3r.lib
15RTLLIB_O = clib3r.lib
16DLLENTRY = $(PDWIN32_LIB)\dllentry_watcom.obj
[4642]17ODINCRT = odincrtd
[4075]18
[4642]19
20#
21# Object directory.
22#
[4334]23OBJDIR = .\bin\debug.wat
[4075]24
[4642]25
[4075]26#
27# Tools
28#
29CXX = WPP386
30CC = WCC386
31AS = alp
32LD = wlink
[4334]33LD2 = $(LD)
[4075]34IMPLIB = implib
35ILIB = ilib
36RC = $(PDWIN32_TOOLS)\wrc
37OS2RC = rc
38
39
40#
41# Tool Flags
42#
[4642]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
[4075]49
[4642]50
51#
[4075]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
[4656]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
[4642]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
[4075]79
[4642]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 \
[4075]84!ifdef DEBUGALL
[4642]85 -DDEBUG_ENABLELOG_LEVEL2 \
[4075]86!endif
[4642]87!ifdef NODEBUGINFO
88 -DDEFAULT_LOGGING_OFF
89!endif
[4075]90
[4334]91!ifdef EXETARGET
[4656]92!ifdef VIO
93CFLAGS += -bc
94CXXFLAGS += -bc
95!else
[4334]96CFLAGS += -bg
97CXXFLAGS += -bg
[4656]98!endif
[4334]99!else
100CFLAGS += -bd
101CXXFLAGS += -bd
102!endif
[4075]103
[4642]104
105#
106# Linker flags.
107#
[4401]108LDFLAGS = option maxe=125, quiet, symfile, nodefaultlibs
109LDFLAGS_ODINCRT = option maxe=125, quiet, symfile
[4075]110
111!ifndef NODEBUGINFO
[4401]112LDFLAGS += debug all
113LDFLAGS_ODINCRT += debug all
[4075]114!endif
115
[4334]116LD2FLAGS = $(LDFLAGS)
117LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
118
Note: See TracBrowser for help on using the repository browser.