[9153] | 1 | # $Id: setup.os2relwat11.mk,v 1.8 2002-08-28 04:42:05 bird Exp $
|
---|
[8423] | 2 |
|
---|
[9137] | 3 | #
|
---|
| 4 | # Note! Watcom is unable to do debug info release builds.
|
---|
| 5 | # Because of a compiler bug which makes it emit code with
|
---|
| 6 | # no optimizations.
|
---|
| 7 | # Another reason is that lxlite isn't able to strip it.
|
---|
| 8 | #
|
---|
| 9 |
|
---|
[8423] | 10 | # ---OS2, RELEASE, WAT11-------------------------
|
---|
| 11 | ENV_NAME="OS/2, Release, Watcom C/C++ v11.0c"
|
---|
| 12 | ENV_STATUS=OK
|
---|
| 13 | !if "$(ENV_ENVS)" == ""
|
---|
| 14 | ENV_ENVS=vac308 watcomc11c
|
---|
| 15 | !else
|
---|
| 16 | ENV_ENVS_FORCE=vac308 watcomc11c
|
---|
| 17 | !endif
|
---|
| 18 | !undef ENV_16BIT
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | #
|
---|
| 22 | # Include some shared standard stuff: ALP, VAC optional stuff.
|
---|
| 23 | #
|
---|
[9153] | 24 | AS_DEBUG_TYPE = Codeview
|
---|
[9120] | 25 | !include $(PATH_MAKE)\setup.os2relalp.mk
|
---|
[9138] | 26 | !include $(PATH_MAKE)\setup.os2relrc.mk
|
---|
[9120] | 27 | !include $(PATH_MAKE)\setup.os2relwrc.mk
|
---|
[9153] | 28 | !include $(PATH_MAKE)\setup.os2relwlink.mk
|
---|
| 29 | !ifdef LD_USE_ILINK
|
---|
| 30 | LD_OLDCPP = 1
|
---|
| 31 | ! include $(PATH_MAKE)\setup.os2relilink.mk
|
---|
| 32 | !else
|
---|
| 33 | _LD_LIBPATH = $(PATH_WATCOM)\lib386\os2;$(PATH_WATCOM)\lib386;
|
---|
| 34 | ! include $(PATH_MAKE)\setup.os2relwlink.mk
|
---|
| 35 | !endif
|
---|
[8423] | 36 | !include $(PATH_MAKE)\setup.optional.watcom11x.mk
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | #
|
---|
| 40 | # The tools
|
---|
| 41 | #
|
---|
| 42 | AR=ilib.exe
|
---|
| 43 | CC=wcc386.exe
|
---|
| 44 | CXX=wpp386.exe
|
---|
| 45 | LINK=wlink.exe
|
---|
| 46 | IMPLIB=implib.exe
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | #
|
---|
| 50 | # The flags
|
---|
| 51 | #
|
---|
| 52 | AR_FLAGS=/nologo /noignorecase
|
---|
[9060] | 53 | AR_CMD=$(AR) $(AR_FLAGS) @"$(TARGET_LNK)"
|
---|
| 54 | AR_LNK1= "$(@R).$(EXT_LIB)"
|
---|
| 55 | AR_LNK2=y
|
---|
| 56 | _AR_LNK3= +"$(TARGET_OBJS: ="&^
|
---|
| 57 | +")"
|
---|
| 58 | AR_LNK3= $(_AR_LNK3:+""&^
|
---|
| 59 | =)
|
---|
| 60 | AR_LNK4= "$(@R).lst";
|
---|
[8423] | 61 |
|
---|
[9137] | 62 | CC_FLAGS=-bt=os2v2 -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -zld $(_CC_OPTIONAL) $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
|
---|
| 63 | CC_FLAGS_EXE=$(CC_FLAGS) -omlinear -zc
|
---|
| 64 | CC_FLAGS_DLL=$(CC_FLAGS) -omlinear -zc -bd
|
---|
| 65 | CC_FLAGS_SYS=$(CC_FLAGS) -omlinear -s -zdp -zff -zgf -zu
|
---|
[8423] | 66 | CC_FLAGS_VDD=$(CC_FLAGS_SYS)
|
---|
[9137] | 67 | CC_FLAGS_IFS=$(CC_FLAGS_SYS) -omlnaru -bd
|
---|
[8423] | 68 | CC_OBJ_OUT=-fo=
|
---|
| 69 | CC_LST_OUT=
|
---|
| 70 | CC_PC_2_STDOUT=-pc
|
---|
| 71 |
|
---|
[9137] | 72 | CXX_FLAGS=-bt=os2v2 -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -zld $(_CXX_OPTIONAL) $(CXX_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CXX_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
|
---|
| 73 | CXX_FLAGS_EXE=$(CXX_FLAGS) -omlinear -zc
|
---|
| 74 | CXX_FLAGS_DLL=$(CXX_FLAGS) -omlinear -zc -bd
|
---|
| 75 | CXX_FLAGS_SYS=$(CXX_FLAGS) -omlinear -omlinear -s -zdp -zff -zgf -zu
|
---|
[8423] | 76 | CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
|
---|
[9137] | 77 | CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -omlnaru -bd
|
---|
[8423] | 78 | CXX_OBJ_OUT=-fo=
|
---|
| 79 | CXX_LST_OUT=
|
---|
| 80 | CXX_PC_2_STDOUT=-pc
|
---|
| 81 |
|
---|
| 82 | !if "$(CC_AS_CXX)" != ""
|
---|
| 83 | ! if "$(CXX_AS_CC)" != ""
|
---|
[9066] | 84 | ! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX and CXX_AS_CC is mutual execlusive!$(CLRRST)]
|
---|
[8423] | 85 | ! endif
|
---|
| 86 | ! error
|
---|
| 87 | ! endif
|
---|
| 88 | CC=$(CXX)
|
---|
| 89 | CC_FLAGS_EXE=$(CXX_FLAGS_EXE)
|
---|
| 90 | CC_FLAGS_DLL=$(CXX_FLAGS_DLL)
|
---|
| 91 | CC_FLAGS_SYS=$(CXX_FLAGS_SYS)
|
---|
| 92 | CC_FLAGS_VDD=$(CXX_FLAGS_VDD)
|
---|
| 93 | CC_FLAGS_IFS=$(CXX_FLAGS_IFS)
|
---|
| 94 | !endif
|
---|
| 95 | !if "$(CXX_AS_CC)" != ""
|
---|
| 96 | CXX=$(CC)
|
---|
[9066] | 97 | CXX_FLAGS_EXE=$(CC_FLAGS_EXE)
|
---|
| 98 | CXX_FLAGS_DLL=$(CC_FLAGS_DLL)
|
---|
| 99 | CXX_FLAGS_SYS=$(CC_FLAGS_SYS)
|
---|
| 100 | CXX_FLAGS_VDD=$(CC_FLAGS_VDD)
|
---|
| 101 | CXX_FLAGS_IFS=$(CC_FLAGS_IFS)
|
---|
[8423] | 102 | !endif
|
---|
| 103 |
|
---|
| 104 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
| 105 |
|
---|
| 106 |
|
---|
| 107 | #
|
---|
| 108 | # Libraries and object files.
|
---|
| 109 | #
|
---|
| 110 | LIB_OS = os2386.lib
|
---|
| 111 | !if "$(_CXX_XCPT)" == "-xd"
|
---|
| 112 | LIB_C_OBJ = clib3r.lib plibmt3r.lib math387r.lib emu387.lib
|
---|
| 113 | LIB_C_DLL = clbrdll.lib plbrdll.lib mt7rdll.lib emu387.lib
|
---|
| 114 | LIB_C_RTDLL = clbrdll.lib # TODO
|
---|
| 115 | LIB_C_NRE = $(LIB_C_OBJ) # TODO
|
---|
| 116 | !else
|
---|
| 117 | LIB_C_OBJ = clib3r.lib plbxmt3r.lib math387r.lib emu387.lib
|
---|
| 118 | LIB_C_DLL = clbrdll.lib plbrdllx.lib mt7rdll.lib emu387.lib
|
---|
| 119 | LIB_C_RTDLL = clbrdll.lib # TODO
|
---|
| 120 | LIB_C_NRE = $(LIB_C_OBJ) # TODO
|
---|
| 121 | !endif
|
---|
| 122 | LIB_C_DMNGL =
|
---|
| 123 | OBJ_PROFILE =
|
---|
| 124 |
|
---|
| 125 | # ---OS2, RELEASE, WAT11-------------------------
|
---|
| 126 |
|
---|