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 | #
|
---|
13 | SYMBOLIC =
|
---|
14 |
|
---|
15 |
|
---|
16 | #
|
---|
17 | # Library macros.
|
---|
18 | #
|
---|
19 | SOMLIB = somtk.lib
|
---|
20 | RTLLIB = clib3r.lib
|
---|
21 | RTLLIB_O = clib3r.lib plbrdll.lib mt7rdll.lib
|
---|
22 | RTLLIB_NRE = clib3r.lib
|
---|
23 | DLLENTRY = $(ODIN32_LIB)\dllentry.obj
|
---|
24 | ODINCRT = odincrt
|
---|
25 | LIB_DEMANGLE =
|
---|
26 |
|
---|
27 |
|
---|
28 | #
|
---|
29 | # Tools
|
---|
30 | #
|
---|
31 | CXX = WPP386
|
---|
32 | CC = WCC386
|
---|
33 | AS = alp
|
---|
34 | LD = wlink
|
---|
35 | LD2 = $(LD)
|
---|
36 | IMPLIB = implib
|
---|
37 | ILIB = wlib
|
---|
38 | RC = $(ODIN32_TOOLS)\wrc
|
---|
39 | OS2RC = rc
|
---|
40 |
|
---|
41 |
|
---|
42 | #
|
---|
43 | # Tool Flags
|
---|
44 | #
|
---|
45 | ASFLAGS = -Mb -Sc -Sv:ALP
|
---|
46 | IMPLIBFLAGS = /nologo
|
---|
47 | ILIBFLAGS = -q -b -c -fo
|
---|
48 | RCFLAGS = -s -I. -I$(WATCOM)\include -D__WIN32OS2__
|
---|
49 | !ifdef WRC_PREFIX_RESOURCE
|
---|
50 | RCFLAGS = $(RCFLAGS) -p $(TARGET)
|
---|
51 | !endif
|
---|
52 | OS2RCFLAGS = -r -n
|
---|
53 | OS2RCLFLAGS = -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
|
---|
77 | CXXEXCEPTIONS = -xs
|
---|
78 | !ifndef STATIC_CRT
|
---|
79 | DLLRTL = -br
|
---|
80 | !endif
|
---|
81 | !ifdef EXETARGET
|
---|
82 | ! ifdef VIO
|
---|
83 | CTARGET = -bc
|
---|
84 | CXXTARGET = -bc
|
---|
85 | ! else
|
---|
86 | CTARGET = -bg
|
---|
87 | CXXTARGET = -bg
|
---|
88 | ! endif
|
---|
89 | !else
|
---|
90 | CTARGET = -bd
|
---|
91 | CXXTARGET = -bd
|
---|
92 | !endif
|
---|
93 |
|
---|
94 | CFLAGS = -w4 -wcd=726 -e25 -obmiklrtf+ -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s $(CTARGET) $(DLLRTL)
|
---|
95 | CXXFLAGS = -w4 -wcd=726 -e25 -obmiklrtf+ -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s -xd $(CXXTARGET) $(DLLRTL)
|
---|
96 | CXXFLAGS_ODINCRT = -w4 -wcd=726 -e25 -obmiklrtf+ -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s -xd $(CXXTARGET)
|
---|
97 | CFLAGS_WIN32APP = -w4 -wcd=726 -e25 -obmiklrtf+ -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 $(CTARGET)
|
---|
98 | CXXFLAGS_WIN32APP= -w4 -wcd=726 -e25 -obmiklrtf+ -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 $(CXXTARGET)
|
---|
99 |
|
---|
100 | CINCLUDES = -I$(WATCOM)\h -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
|
---|
101 | CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__
|
---|
102 | CDEFINES_ODINCRT = -D__WIN32OS2__ -D__WINE__ -D__i386__
|
---|
103 | CDEFINES = -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
|
---|
104 |
|
---|
105 |
|
---|
106 | #
|
---|
107 | # Linker flags.
|
---|
108 | #
|
---|
109 | !ifdef EXETARGET
|
---|
110 | ! ifndef STACKSIZE
|
---|
111 | STACKSIZE = 0x50000
|
---|
112 | ! endif
|
---|
113 | LDSTACK = option stack=$(STACKSIZE)
|
---|
114 | !endif
|
---|
115 |
|
---|
116 | LDFLAGS = option maxe=125, caseexact, quiet, symfile, nodefaultlibs LIBPath $(WATCOM)\lib386\os2;$(WATCOM)\lib386 $(LDSTACK)
|
---|
117 | LDFLAGS_ODINCRT = option maxe=125, caseexact, quiet, symfile LIBPath $(WATCOM)\lib386\os2;$(WATCOM)\lib386 $(LDSTACK)
|
---|
118 |
|
---|
119 | LD2FLAGS = $(LDFLAGS)
|
---|
120 | LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
|
---|
121 |
|
---|
122 |
|
---|