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 |
|
---|
8 | SOMLIB = somtk.lib
|
---|
9 | RTLLIB = cppom30.lib
|
---|
10 | RTLLIB_O = cppom30o.lib
|
---|
11 |
|
---|
12 | OBJDIR = .\bin\release
|
---|
13 |
|
---|
14 | #
|
---|
15 | # Tools
|
---|
16 | #
|
---|
17 | CXX = WPP386
|
---|
18 | CC = WCC386
|
---|
19 | AS = alp
|
---|
20 | LD = wlink
|
---|
21 | IMPLIB = implib
|
---|
22 | ILIB = ilib
|
---|
23 | RC = $(PDWIN32_TOOLS)\wrc
|
---|
24 | OS2RC = rc
|
---|
25 |
|
---|
26 | ODINCRT = 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
|
---|
48 | CFLAGS = -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
|
---|
49 | CXXFLAGS = -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
|
---|
50 | CXXFLAGS_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
|
---|
51 | CFLAGS_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__
|
---|
52 | CXXFLAGS_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 |
|
---|
54 | LDFLAGS = option map, nodefaultlibs, maxe=25, q, symf
|
---|
55 | LDFLAGS_ODINCRT = option map, maxe=25, q, symf
|
---|
56 |
|
---|
57 | ASFLAGS = -Mb -Sc -Sv:ALP +Od
|
---|
58 | IMPLIBFLAGS = /nologo
|
---|
59 | ILIBFLAGS = /quiet /nologo
|
---|
60 | RCFLAGS = -s -I. -I$(%WATCOM)\include -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\win
|
---|
61 | OS2RCFLAGS = -r
|
---|
62 |
|
---|
63 | !ifndef NODEBUGINFO
|
---|
64 | LDFLAGS += d all
|
---|
65 | LDFLAGS_ODINCRT += d all
|
---|
66 | !else
|
---|
67 | CFLAGS += -DDEFAULT_LOGGING_OFF
|
---|
68 | CXXFLAGS += -DDEFAULT_LOGGING_OFF
|
---|
69 | !endif
|
---|
70 |
|
---|
71 | !ifdef EXETARGET
|
---|
72 | CFLAGS += -bg
|
---|
73 | CXXFLAGS += -bg
|
---|
74 | LDFLAGS += system os2v2
|
---|
75 | LDFLAGS_ODINCRT += system os2v2
|
---|
76 | !else
|
---|
77 | CFLAGS += -bd
|
---|
78 | CXXFLAGS += -bd
|
---|
79 | LDFLAGS += system os2v2 dll initinstance terminstance
|
---|
80 | LDFLAGS_ODINCRT += system os2v2 dll initinstance terminstance
|
---|
81 | !endif
|
---|