source: trunk/include/odin32.profile.wat.mk@ 10366

Last change on this file since 10366 was 7999, checked in by bird, 24 years ago

Cleanups, mainly DEMANGLELIB -> LIB_DEMANGLE.
Also some OBJDIRs was removed.

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