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

Last change on this file since 4647 was 4642, checked in by bird, 25 years ago

More changes and correction. Tried to sync watcom files.
New tool.

File size: 2.5 KB
Line 
1# $Id: pdwin32.wat.dbg,v 1.6 2000-11-20 04:58:14 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
67CFLAGS = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -br -bt=os2 -zq -fp5 -fpi87
68CXXFLAGS = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -br -bt=os2 -zq -fp5 -fpi87
69CXXFLAGS_ODINCRT = -w4 -wcd=726 -e25 -od -d2 -hw -bm -bd -mf -5r -bt=os2 -zq -fp5 -fpi87
70CFLAGS_WIN32APP = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
71CXXFLAGS_WIN32APP= -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
72
73CINCLUDES = -i$(%WATCOM)\h -i$(PDWIN32_INCLUDE)\Win -i. -i$(PDWIN32_INCLUDE)
74CDEFINES_WIN32APP= -DDEBUG -D__WIN32OS2__ -D__i386__
75CDEFINES_ODINCRT = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__
76CDEFINES = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC \
77!ifdef DEBUGALL
78 -DDEBUG_ENABLELOG_LEVEL2 \
79!endif
80!ifdef NODEBUGINFO
81 -DDEFAULT_LOGGING_OFF
82!endif
83
84!ifdef EXETARGET
85CFLAGS += -bg
86CXXFLAGS += -bg
87!else
88CFLAGS += -bd
89CXXFLAGS += -bd
90!endif
91
92
93#
94# Linker flags.
95#
96LDFLAGS = option maxe=125, quiet, symfile, nodefaultlibs
97LDFLAGS_ODINCRT = option maxe=125, quiet, symfile
98
99!ifndef NODEBUGINFO
100LDFLAGS += debug all
101LDFLAGS_ODINCRT += debug all
102!endif
103
104LD2FLAGS = $(LDFLAGS)
105LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
106
Note: See TracBrowser for help on using the repository browser.