source: trunk/include/pdwin32.wat.rel@ 4114

Last change on this file since 4114 was 4114, checked in by sandervl, 25 years ago

MN: watcom makefile fixes

File size: 2.8 KB
Line 
1# $Id: pdwin32.wat.rel,v 1.1 2000-08-29 21:39:01 sandervl Exp $
2# ODIN / win32os2 Project
3#
4# DEBUG makefile for the Watcom C/C++ compiler environment
5#
6#
7
8SOMLIB = somtk.lib
9RTLLIB = cppom30.lib
10RTLLIB_O = cppom30o.lib
11
12OBJDIR = .\bin\release
13
14#
15# Tools
16#
17CXX = WPP386
18CC = WCC386
19AS = alp
20LD = wlink
21IMPLIB = implib
22ILIB = ilib
23RC = $(PDWIN32_TOOLS)\wrc
24OS2RC = rc
25
26ODINCRT = odincrtd
27
28#
29# Tool Flags
30#
31
32# Watcom compiler flags:
33# w4 warning level 4
34# wcd=726 disable warning 726 (unreferened local variable or parameter)
35# e25 error limit
36# d2 generate symbolic debug information
37# od no optimizations
38# bm multithreaded environment
39# ez generated OMF objects
40# mf flat memory model
41# 5r pentium register calling convention
42# br use dll for runtime library functions
43# bt=os2 target os = OS/2
44# zq operate quietly (display only errors)
45# fp5 optimize floating-point for pentium
46# fpi87 inline fpu instructions
47# hw generate Watcom debug information
48CFLAGS = -w4 -wcd=726 -e25 -od -bm -mf -s -5r -br -bt=os2 -zq -fp5 -fpi87 -i$(%WATCOM)\h -i$(PDWIN32_INCLUDE)\Win -i. -i$(PDWIN32_INCLUDE) -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
49CXXFLAGS = -w4 -wcd=726 -e25 -od -bm -mf -s -5r -br -bt=os2 -zq -fp5 -fpi87 -i$(%WATCOM)\h -i$(PDWIN32_INCLUDE)\Win -i. -i$(PDWIN32_INCLUDE) -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
50CXXFLAGS_ODINCRT = -w4 -wcd=726 -e25 -od -bm -bd -s -mf -5r -bt=os2 -zq -fp5 -fpi87 -i$(%WATCOM)\h -i$(PDWIN32_INCLUDE)\Win -i. -i$(PDWIN32_INCLUDE) -D__WIN32OS2__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
51CFLAGS_WIN32APP = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -i$(%WATCOM)\h -i$(PDWIN32_INCLUDE)\Win -i. -i$(PDWIN32_INCLUDE) -D__WIN32OS2__ -D__i386__
52CXXFLAGS_WIN32APP= -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -i$(%WATCOM)\h -i$(PDWIN32_INCLUDE)\Win -i. -i$(PDWIN32_INCLUDE) -D__WIN32OS2__ -D__i386__
53
54LDFLAGS = option map, nodefaultlibs, maxe=25, q, symf
55LDFLAGS_ODINCRT = option map, maxe=25, q, symf
56
57ASFLAGS = -Mb -Sc -Sv:ALP +Od
58IMPLIBFLAGS = /nologo
59ILIBFLAGS = /quiet /nologo
60RCFLAGS = -s -I. -I$(%WATCOM)\include -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\win
61OS2RCFLAGS = -r
62
63!ifndef NODEBUGINFO
64LDFLAGS += d all
65LDFLAGS_ODINCRT += d all
66!else
67CFLAGS += -DDEFAULT_LOGGING_OFF
68CXXFLAGS += -DDEFAULT_LOGGING_OFF
69!endif
70
71!ifdef EXETARGET
72CFLAGS += -bg
73CXXFLAGS += -bg
74LDFLAGS += system os2v2
75LDFLAGS_ODINCRT += system os2v2
76!else
77CFLAGS += -bd
78CXXFLAGS += -bd
79LDFLAGS += system os2v2 dll initinstance terminstance
80LDFLAGS_ODINCRT += system os2v2 dll initinstance terminstance
81!endif
Note: See TracBrowser for help on using the repository browser.