[7999] | 1 | # $Id: odin32.rel.wat.mk,v 1.7 2002-02-23 23:51:50 bird Exp $
|
---|
[4718] | 2 |
|
---|
| 3 | #
|
---|
| 4 | # Odin32 API
|
---|
| 5 | #
|
---|
| 6 | # RELEASE makefile for the Watcom C/C++ compiler environment.
|
---|
| 7 | #
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | #
|
---|
[4822] | 11 | # Rule attributes.
|
---|
| 12 | #
|
---|
| 13 | SYMBOLIC = .SYMBOLIC
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 | #
|
---|
[4718] | 17 | # Library macros.
|
---|
| 18 | #
|
---|
| 19 | SOMLIB = somtk.lib
|
---|
| 20 | RTLLIB = clib3r.lib
|
---|
[5288] | 21 | RTLLIB_O = clib3r.lib plbrdll.lib mt7rdll.lib
|
---|
[7999] | 22 | RTLLIB_NRE = clib3r.lib
|
---|
[4822] | 23 | DLLENTRY = $(ODIN32_LIB)\dllentry.obj
|
---|
[4718] | 24 | ODINCRT = odincrtd
|
---|
[7999] | 25 | LIB_DEMANGLE =
|
---|
[4718] | 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 = ilib
|
---|
| 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 = /quiet /nologo
|
---|
[5438] | 48 | RCFLAGS = -s -I. -I$(%WATCOM)\include -D__WIN32OS2__
|
---|
[6401] | 49 | !ifdef WRC_PREFIX_RESOURCE
|
---|
| 50 | RCFLAGS += -p $(TARGET)
|
---|
| 51 | !endif
|
---|
[4718] | 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 | # ez generated OMF objects
|
---|
| 65 | # mf flat memory model
|
---|
| 66 | # 5r pentium register calling convention
|
---|
| 67 | # br use dll for runtime library functions
|
---|
| 68 | # bt=os2 target os = OS/2
|
---|
| 69 | # zq operate quietly (display only errors)
|
---|
| 70 | # fp5 optimize floating-point for pentium
|
---|
| 71 | # fpi87 inline fpu instructions
|
---|
| 72 | # hw generate Watcom debug information
|
---|
| 73 | # xd disable exception handling (default)
|
---|
| 74 | # xs enable exception handling
|
---|
| 75 | CXXEXCEPTIONS = -xs
|
---|
| 76 | !ifndef STATIC_CRT
|
---|
| 77 | DLLRTL = -br
|
---|
| 78 | !endif
|
---|
| 79 | CFLAGS = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s $(DLLRTL)
|
---|
| 80 | CXXFLAGS = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s -xd $(DLLRTL)
|
---|
| 81 | CXXFLAGS_ODINCRT = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -s -xd
|
---|
| 82 | CFLAGS_WIN32APP = -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
|
---|
| 83 | CXXFLAGS_WIN32APP= -w4 -wcd=726 -e25 -od -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
|
---|
[4822] | 84 | CINCLUDES = -I$(%WATCOM)\h -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
|
---|
[4718] | 85 | CDEFINES = -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
|
---|
| 86 | CDEFINES_ODINCRT = -D__WIN32OS2__ -D__WINE__ -D__i386__
|
---|
| 87 | CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__
|
---|
| 88 |
|
---|
| 89 | !ifdef EXETARGET
|
---|
| 90 | !ifdef VIO
|
---|
| 91 | CFLAGS += -bc
|
---|
| 92 | CXXFLAGS += -bc
|
---|
| 93 | !else
|
---|
| 94 | CFLAGS += -bg
|
---|
| 95 | CXXFLAGS += -bg
|
---|
| 96 | !endif
|
---|
| 97 | !else
|
---|
| 98 | CFLAGS += -bd
|
---|
| 99 | CXXFLAGS += -bd
|
---|
| 100 | !endif
|
---|
| 101 |
|
---|
| 102 |
|
---|
| 103 | #
|
---|
| 104 | # Linker flags.
|
---|
| 105 | #
|
---|
[4826] | 106 | !ifndef STACKSIZE
|
---|
| 107 | STACKSIZE = 0x50000
|
---|
| 108 | !endif
|
---|
[4718] | 109 | LDFLAGS = option nodefaultlibs, maxe=25, q, symf
|
---|
| 110 | LDFLAGS_ODINCRT = option maxe=25, q, symf
|
---|
| 111 |
|
---|
[4826] | 112 | !ifdef EXETARGET
|
---|
| 113 | LDFLAGS += option stack=$(STACKSIZE)
|
---|
| 114 | LDFLAGS_ODINCRT += option stack=$(STACKSIZE)
|
---|
| 115 | !endif
|
---|
| 116 |
|
---|
[4718] | 117 | LD2FLAGS = $(LDFLAGS)
|
---|
| 118 | LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
|
---|
| 119 |
|
---|
[4826] | 120 |
|
---|