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

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

Addjustments for Watcom.

File size: 2.6 KB
Line 
1# $Id: pdwin32.wat.rel,v 1.5 2000-11-21 04:39:20 bird Exp $
2# ODIN / win32os2 Project
3#
4# RELEASE makefile for the Watcom C/C++ compiler environment.
5#
6#
7
8
9#
10# Library macros.
11#
12SOMLIB = somtk.lib
13RTLLIB = clib3r.lib
14RTLLIB_O = clib3r.lib
15DLLENTRY = $(PDWIN32_LIB)\dllentry_watcom.obj
16ODINCRT = odincrtd
17
18
19#
20# Object directory.
21#
22OBJDIR = .\bin\release.wat
23
24
25#
26# Tools
27#
28CXX = WPP386
29CC = WCC386
30AS = alp
31LD = wlink
32LD2 = $(LD)
33IMPLIB = implib
34ILIB = ilib
35RC = $(PDWIN32_TOOLS)\wrc
36OS2RC = rc
37
38
39#
40# Tool Flags
41#
42ASFLAGS = -Mb -Sc -Sv:ALP
43IMPLIBFLAGS = /nologo
44ILIBFLAGS = /quiet /nologo
45RCFLAGS = -s -I. -I$(%WATCOM)\include
46OS2RCFLAGS = -r -n
47OS2RCLFLAGS = -x2 -n
48
49
50#
51# Watcom compiler flags:
52# w4 warning level 4
53# wcd=726 disable warning 726 (unreferened local variable or parameter)
54# e25 error limit
55# d2 generate symbolic debug information
56# od no optimizations
57# bm multithreaded environment
58# ez generated OMF objects
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
69CXXEXCEPTIONS = -xs
70!ifndef STATIC_CRT
71DLLRTL = -br
72!endif
73CFLAGS = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s $(DLLRTL)
74CXXFLAGS = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s -xd $(DLLRTL)
75CXXFLAGS_ODINCRT = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s -xd
76CFLAGS_WIN32APP = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
77CXXFLAGS_WIN32APP= -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
78CINCLUDES = -i$(%WATCOM)\h -i$(PDWIN32_INCLUDE)\Win -i. -i$(PDWIN32_INCLUDE)
79CDEFINES = -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
80CDEFINES_ODINCRT = -D__WIN32OS2__ -D__WINE__ -D__i386__
81CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__
82
83!ifdef EXETARGET
84!ifdef VIO
85CFLAGS += -bc
86CXXFLAGS += -bc
87!else
88CFLAGS += -bg
89CXXFLAGS += -bg
90!endif
91!else
92CFLAGS += -bd
93CXXFLAGS += -bd
94!endif
95
96
97#
98# Linker flags.
99#
100LDFLAGS = option nodefaultlibs, maxe=25, q, symf
101LDFLAGS_ODINCRT = option maxe=25, q, symf
102
103LD2FLAGS = $(LDFLAGS)
104LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
105
Note: See TracBrowser for help on using the repository browser.