[8448] | 1 | # $Id: odin32.dbg.wat.mk,v 1.9 2002-05-17 10:13:20 sandervl Exp $
|
---|
[4718] | 2 |
|
---|
| 3 | #
|
---|
| 4 | # Odin32 API
|
---|
| 5 | #
|
---|
| 6 | # DEBUG 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
|
---|
[5331] | 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 +Od -D:DEBUG
|
---|
| 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 | # 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 | CXXEXCEPTIONS = -xs
|
---|
| 76 | !ifndef STATIC_CRT
|
---|
| 77 | DLLRTL = -br
|
---|
| 78 | !endif
|
---|
[8448] | 79 | CFLAGS = -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 $(DLLRTL)
|
---|
| 80 | CXXFLAGS = -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -xd $(DLLRTL)
|
---|
| 81 | CXXFLAGS_ODINCRT = -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -xd
|
---|
| 82 | CFLAGS_WIN32APP = -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
|
---|
| 83 | CXXFLAGS_WIN32APP= -w4 -wcd=726 -wcd=14 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
|
---|
[4718] | 84 |
|
---|
[4822] | 85 | CINCLUDES = -I$(%WATCOM)\h -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
|
---|
[4718] | 86 | CDEFINES_WIN32APP= -DDEBUG -D__WIN32OS2__ -D__i386__
|
---|
| 87 | CDEFINES_ODINCRT = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__
|
---|
[8426] | 88 | CDEFINES = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC
|
---|
[4718] | 89 | !ifdef DEBUGALL
|
---|
[8426] | 90 | -DDEBUG_ENABLELOG_LEVEL2
|
---|
[4718] | 91 | !endif
|
---|
| 92 | !ifdef NODEBUGINFO
|
---|
| 93 | -DDEFAULT_LOGGING_OFF
|
---|
| 94 | !endif
|
---|
| 95 |
|
---|
| 96 | !ifdef EXETARGET
|
---|
| 97 | !ifdef VIO
|
---|
| 98 | CFLAGS += -bc
|
---|
| 99 | CXXFLAGS += -bc
|
---|
| 100 | !else
|
---|
| 101 | CFLAGS += -bg
|
---|
| 102 | CXXFLAGS += -bg
|
---|
| 103 | !endif
|
---|
| 104 | !else
|
---|
| 105 | CFLAGS += -bd
|
---|
| 106 | CXXFLAGS += -bd
|
---|
| 107 | !endif
|
---|
| 108 |
|
---|
| 109 |
|
---|
| 110 | #
|
---|
| 111 | # Linker flags.
|
---|
| 112 | #
|
---|
[5331] | 113 | LDFLAGS = option maxe=125, caseexact, quiet, symfile, nodefaultlibs LIBPath $(%WATCOM)\lib386\os2;$(%WATCOM)\lib386
|
---|
| 114 | LDFLAGS_ODINCRT = option maxe=125, caseexact, quiet, symfile LIBPath $(%WATCOM)\lib386\os2;$(%WATCOM)\lib386
|
---|
[4718] | 115 |
|
---|
| 116 | !ifndef NODEBUGINFO
|
---|
| 117 | LDFLAGS += debug all
|
---|
| 118 | LDFLAGS_ODINCRT += debug all
|
---|
| 119 | !endif
|
---|
| 120 |
|
---|
[4826] | 121 | !ifndef STACKSIZE
|
---|
| 122 | STACKSIZE = 0x50000
|
---|
| 123 | !endif
|
---|
| 124 |
|
---|
| 125 | !ifdef EXETARGET
|
---|
| 126 | LDFLAGS += option stack=$(STACKSIZE)
|
---|
| 127 | LDFLAGS_ODINCRT += option stack=$(STACKSIZE)
|
---|
| 128 | !endif
|
---|
| 129 |
|
---|
[4718] | 130 | LD2FLAGS = $(LDFLAGS)
|
---|
| 131 | LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
|
---|
| 132 |
|
---|