| 1 | # $Id: setup.os2debwat11.mk,v 1.16 2002-08-28 05:02:21 bird Exp $
|
|---|
| 2 |
|
|---|
| 3 | # ---OS2, DEBUG, WAT11-------------------------
|
|---|
| 4 | ENV_NAME="OS/2, Debug, Watcom C/C++ v11.0c"
|
|---|
| 5 | ENV_STATUS=OK
|
|---|
| 6 | !if "$(ENV_ENVS)" == ""
|
|---|
| 7 | ENV_ENVS=vac308 watcomc11c
|
|---|
| 8 | !else
|
|---|
| 9 | ENV_ENVS_FORCE=vac308 watcomc11c
|
|---|
| 10 | !endif
|
|---|
| 11 | !undef ENV_16BIT
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | #
|
|---|
| 15 | # Include some shared standard stuff: ALP, VAC optional stuff.
|
|---|
| 16 | #
|
|---|
| 17 | AS_DEBUG_TYPE = Codeview
|
|---|
| 18 | !include $(PATH_MAKE)\setup.os2debalp.mk
|
|---|
| 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
|
|---|
| 28 | !include $(PATH_MAKE)\setup.os2allilib.mk
|
|---|
| 29 | !include $(PATH_MAKE)\setup.optional.watcom11x.mk
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | #
|
|---|
| 33 | # The tools
|
|---|
| 34 | #
|
|---|
| 35 | CC=wcc386.exe
|
|---|
| 36 | CXX=wpp386.exe
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | #
|
|---|
| 40 | # The flags
|
|---|
| 41 | #
|
|---|
| 42 | 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
|
|---|
| 43 | CC_FLAGS_EXE=$(CC_FLAGS) -zc
|
|---|
| 44 | CC_FLAGS_DLL=$(CC_FLAGS) -zc -bd
|
|---|
| 45 | CC_FLAGS_SYS=$(CC_FLAGS) -s -zdp -zff -zgf -zu
|
|---|
| 46 | CC_FLAGS_VDD=$(CC_FLAGS_SYS)
|
|---|
| 47 | CC_FLAGS_IFS=$(CC_FLAGS_SYS) -bd
|
|---|
| 48 | CC_OBJ_OUT=-fo=
|
|---|
| 49 | CC_LST_OUT=
|
|---|
| 50 | CC_PC_2_STDOUT=-pc
|
|---|
| 51 |
|
|---|
| 52 | 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
|
|---|
| 53 | CXX_FLAGS_EXE=$(CXX_FLAGS) -zc
|
|---|
| 54 | CXX_FLAGS_DLL=$(CXX_FLAGS) -zc -bd
|
|---|
| 55 | CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf -zu
|
|---|
| 56 | CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
|
|---|
| 57 | CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -bd
|
|---|
| 58 | CXX_OBJ_OUT=-fo=
|
|---|
| 59 | CXX_LST_OUT=
|
|---|
| 60 | CXX_PC_2_STDOUT=-pc
|
|---|
| 61 |
|
|---|
| 62 | !if "$(CC_AS_CXX)" != ""
|
|---|
| 63 | ! if "$(CXX_AS_CC)" != ""
|
|---|
| 64 | ! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX and CXX_AS_CC is mutual execlusive!$(CLRRST)]
|
|---|
| 65 | ! endif
|
|---|
| 66 | ! error
|
|---|
| 67 | ! endif
|
|---|
| 68 | CC=$(CXX)
|
|---|
| 69 | CC_FLAGS_EXE=$(CXX_FLAGS_EXE)
|
|---|
| 70 | CC_FLAGS_DLL=$(CXX_FLAGS_DLL)
|
|---|
| 71 | CC_FLAGS_SYS=$(CXX_FLAGS_SYS)
|
|---|
| 72 | CC_FLAGS_VDD=$(CXX_FLAGS_VDD)
|
|---|
| 73 | CC_FLAGS_IFS=$(CXX_FLAGS_IFS)
|
|---|
| 74 | !endif
|
|---|
| 75 | !if "$(CXX_AS_CC)" != ""
|
|---|
| 76 | CXX=$(CC)
|
|---|
| 77 | CXX_FLAGS_EXE=$(CC_FLAGS_EXE)
|
|---|
| 78 | CXX_FLAGS_DLL=$(CC_FLAGS_DLL)
|
|---|
| 79 | CXX_FLAGS_SYS=$(CC_FLAGS_SYS)
|
|---|
| 80 | CXX_FLAGS_VDD=$(CC_FLAGS_VDD)
|
|---|
| 81 | CXX_FLAGS_IFS=$(CC_FLAGS_IFS)
|
|---|
| 82 | !endif
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 | #
|
|---|
| 86 | # Libraries and object files.
|
|---|
| 87 | #
|
|---|
| 88 | LIB_OS = os2386.lib
|
|---|
| 89 | !if "$(_CXX_XCPT)" == "-xd"
|
|---|
| 90 | LIB_C_OBJ = clib3r.lib plibmt3r.lib math387r.lib emu387.lib
|
|---|
| 91 | LIB_C_DLL = clbrdll.lib plbrdll.lib mt7rdll.lib emu387.lib
|
|---|
| 92 | LIB_C_RTDLL = clbrdll.lib # TODO
|
|---|
| 93 | LIB_C_NRE = $(LIB_C_OBJ) # TODO
|
|---|
| 94 | !else
|
|---|
| 95 | LIB_C_OBJ = clib3r.lib plbxmt3r.lib math387r.lib emu387.lib
|
|---|
| 96 | LIB_C_DLL = clbrdll.lib plbrdllx.lib mt7rdll.lib emu387.lib
|
|---|
| 97 | LIB_C_RTDLL = clbrdll.lib # TODO
|
|---|
| 98 | LIB_C_NRE = $(LIB_C_OBJ) # TODO
|
|---|
| 99 | !endif
|
|---|
| 100 | LIB_C_DMNGL =
|
|---|
| 101 | OBJ_PROFILE =
|
|---|
| 102 |
|
|---|
| 103 | # ---OS2, DEBUG, WAT11-------------------------
|
|---|
| 104 |
|
|---|