[7999] | 1 | # $Id: odin32.profile.wat.mk,v 1.2 2002-02-23 23:51:50 bird Exp $
|
---|
[4770] | 2 |
|
---|
| 3 | #
|
---|
| 4 | # Odin32 API
|
---|
| 5 | #
|
---|
| 6 | # DEBUG makefile for the Watcom C/C++ compiler environment.
|
---|
| 7 | #
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | #
|
---|
| 11 | # Library macros.
|
---|
| 12 | #
|
---|
| 13 | SOMLIB = somtk.lib
|
---|
| 14 | RTLLIB = clib3r.lib
|
---|
| 15 | RTLLIB_O = clib3r.lib
|
---|
[7999] | 16 | RTLLIB_NRE = clib3r.lib
|
---|
[4770] | 17 | DLLENTRY = $(ODIN32_LIB)\dllentry_watcom.obj
|
---|
| 18 | ODINCRT = odincrtd
|
---|
[7999] | 19 | LIB_DEMANGLE =
|
---|
[4770] | 20 |
|
---|
| 21 |
|
---|
| 22 | #
|
---|
| 23 | # Tools
|
---|
| 24 | #
|
---|
| 25 | CXX = WPP386
|
---|
| 26 | CC = WCC386
|
---|
| 27 | AS = alp
|
---|
| 28 | LD = wlink
|
---|
| 29 | LD2 = $(LD)
|
---|
| 30 | IMPLIB = implib
|
---|
| 31 | ILIB = ilib
|
---|
| 32 | RC = $(ODIN32_TOOLS)\wrc
|
---|
| 33 | OS2RC = rc
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | #
|
---|
| 37 | # Tool Flags
|
---|
| 38 | #
|
---|
| 39 | ASFLAGS = -Mb -Sc -Sv:ALP +Od -D:DEBUG
|
---|
| 40 | IMPLIBFLAGS = /nologo
|
---|
| 41 | ILIBFLAGS = /quiet /nologo
|
---|
| 42 | RCFLAGS = -s -I. -I$(%WATCOM)\include
|
---|
| 43 | OS2RCFLAGS = -r -n
|
---|
| 44 | OS2RCLFLAGS = -x2 -n
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | #
|
---|
| 48 | # Watcom compiler flags:
|
---|
| 49 | # w4 warning level 4
|
---|
| 50 | # wcd=726 disable warning 726 (unreferened local variable or parameter)
|
---|
| 51 | # e25 error limit
|
---|
| 52 | # d2 generate symbolic debug information
|
---|
| 53 | # od no optimizations
|
---|
| 54 | # bm multithreaded environment
|
---|
| 55 | # mf flat memory model
|
---|
| 56 | # 5r pentium register calling convention
|
---|
| 57 | # br use dll for runtime library functions
|
---|
| 58 | # bt=os2 target os = OS/2
|
---|
| 59 | # zq operate quietly (display only errors)
|
---|
| 60 | # fp5 optimize floating-point for pentium
|
---|
| 61 | # fpi87 inline fpu instructions
|
---|
| 62 | # hw generate Watcom debug information
|
---|
| 63 | # xd disable exception handling (default)
|
---|
| 64 | # xs enable exception handling
|
---|
| 65 | # bd build target is a dynamic link library (DLL)
|
---|
| 66 | CXXEXCEPTIONS = -xs
|
---|
| 67 | !ifndef STATIC_CRT
|
---|
| 68 | DLLRTL = -br
|
---|
| 69 | !endif
|
---|
| 70 | CFLAGS = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 $(DLLRTL)
|
---|
| 71 | CXXFLAGS = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -xd $(DLLRTL)
|
---|
| 72 | CXXFLAGS_ODINCRT = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87 -xd
|
---|
| 73 | CFLAGS_WIN32APP = -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
|
---|
| 74 | CXXFLAGS_WIN32APP= -w4 -wcd=726 -e25 -od -d2 -hw -bm -mf -5r -bt=os2 -zq -fp5 -fpi87
|
---|
| 75 |
|
---|
| 76 | CINCLUDES = -i$(%WATCOM)\h -i$(ODIN32_INCLUDE)\Win -i. -i$(ODIN32_INCLUDE)
|
---|
| 77 | CDEFINES_WIN32APP= -DDEBUG -DPROFILE -D__WIN32OS2__ -D__i386__
|
---|
| 78 | CDEFINES_ODINCRT = -DDEBUG -DPROFILE -D__WIN32OS2__ -D__i386__ -D__WINE__
|
---|
| 79 | CDEFINES = -DDEBUG -DPROFILE -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC \
|
---|
| 80 | !ifdef DEBUGALL
|
---|
| 81 | -DDEBUG_ENABLELOG_LEVEL2 \
|
---|
| 82 | !endif
|
---|
| 83 | !ifdef NODEBUGINFO
|
---|
| 84 | -DDEFAULT_LOGGING_OFF
|
---|
| 85 | !endif
|
---|
| 86 |
|
---|
| 87 | !ifdef EXETARGET
|
---|
| 88 | !ifdef VIO
|
---|
| 89 | CFLAGS += -bc
|
---|
| 90 | CXXFLAGS += -bc
|
---|
| 91 | !else
|
---|
| 92 | CFLAGS += -bg
|
---|
| 93 | CXXFLAGS += -bg
|
---|
| 94 | !endif
|
---|
| 95 | !else
|
---|
| 96 | CFLAGS += -bd
|
---|
| 97 | CXXFLAGS += -bd
|
---|
| 98 | !endif
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 | #
|
---|
| 102 | # Linker flags.
|
---|
| 103 | #
|
---|
| 104 | LDFLAGS = option maxe=125, quiet, symfile, nodefaultlibs
|
---|
| 105 | LDFLAGS_ODINCRT = option maxe=125, quiet, symfile
|
---|
| 106 |
|
---|
| 107 | !ifndef NODEBUGINFO
|
---|
| 108 | LDFLAGS += debug all
|
---|
| 109 | LDFLAGS_ODINCRT += debug all
|
---|
| 110 | !endif
|
---|
| 111 |
|
---|
| 112 | LD2FLAGS = $(LDFLAGS)
|
---|
| 113 | LD2FLAGS_ODINCRT = $(LDFLAGS_ODINCRT)
|
---|
| 114 |
|
---|