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