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