[8423] | 1 | # $Id: setup.os2debwat11.mk,v 1.8 2002-05-16 11:37:02 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 | #
|
---|
| 17 | !include $(PATH_MAKE)\setup.os2debalp.mk
|
---|
[8334] | 18 | !include $(PATH_MAKE)\setup.optional.watcom11x.mk
|
---|
[8252] | 19 |
|
---|
[8296] | 20 |
|
---|
[8252] | 21 | #
|
---|
| 22 | # The tools
|
---|
| 23 | #
|
---|
| 24 | AR=ilib.exe
|
---|
[8423] | 25 | AR=lib.exe
|
---|
[8252] | 26 | CC=wcc386.exe
|
---|
| 27 | CXX=wpp386.exe
|
---|
| 28 | LINK=wlink.exe
|
---|
| 29 | IMPLIB=implib.exe
|
---|
| 30 | RC=rc.exe
|
---|
| 31 | RL=rc.exe
|
---|
| 32 | EXEPACK=lxlite.exe
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 | #
|
---|
| 36 | # The flags
|
---|
| 37 | #
|
---|
| 38 | AR_FLAGS=/nologo /noignorecase
|
---|
[8423] | 39 | AR_CMD=$(AR) $(AR_FLAGS) @$(TARGET_LNK)
|
---|
| 40 | _AR_LNK1= $(TARGET), ^
|
---|
| 41 | +"$(TARGET_OBJS: ="+^
|
---|
[8252] | 42 | ")"
|
---|
| 43 | AR_LNK1= $(_AR_LNK1:""=)
|
---|
| 44 | AR_LNK2= $(@R).lst
|
---|
| 45 |
|
---|
[8354] | 46 | CC_FLAGS=-bt=os2v2 -dDEBUG -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -d2 -hc -zc $(_CC_OPTIONAL) $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
|
---|
[8252] | 47 | CC_FLAGS_EXE=$(CC_FLAGS)
|
---|
| 48 | CC_FLAGS_DLL=$(CC_FLAGS) -bd
|
---|
[8354] | 49 | CC_FLAGS_SYS=$(CC_FLAGS) -s -zdp -zff -zgf
|
---|
[8292] | 50 | CC_FLAGS_VDD=$(CC_FLAGS_SYS)
|
---|
[8334] | 51 | CC_FLAGS_IFS=$(CC_FLAGS_SYS) -bd
|
---|
[8252] | 52 | CC_OBJ_OUT=-fo=
|
---|
| 53 | CC_LST_OUT=
|
---|
[8354] | 54 | CC_PC_2_STDOUT=-pc
|
---|
[8252] | 55 |
|
---|
[8423] | 56 | CXX_FLAGS=-bt=os2v2 -dDEBUG -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -d2 -hc -zc $(_CXX_OPTIONAL) $(CXX_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CXX_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
|
---|
[8252] | 57 | CXX_FLAGS_EXE=$(CXX_FLAGS)
|
---|
| 58 | CXX_FLAGS_DLL=$(CXX_FLAGS) -bd
|
---|
| 59 | CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf
|
---|
[8292] | 60 | CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
|
---|
[8334] | 61 | CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -bd
|
---|
[8252] | 62 | CXX_OBJ_OUT=-fo=
|
---|
[8334] | 63 | CXX_LST_OUT=
|
---|
| 64 | CXX_PC_2_STDOUT=-pc
|
---|
[8252] | 65 |
|
---|
[8423] | 66 | !if "$(CC_AS_CXX)" != ""
|
---|
| 67 | ! if "$(CXX_AS_CC)" != ""
|
---|
| 68 | ! if [@(ECHO) $(CLRERR)Error: Do you think you're smart? CC_AS_CXX and CXX_AS_CC is mutual execlusive!$(CLRRST)]
|
---|
| 69 | ! endif
|
---|
| 70 | ! error
|
---|
| 71 | ! endif
|
---|
| 72 | CC=$(CXX)
|
---|
| 73 | CC_FLAGS_EXE=$(CXX_FLAGS_EXE)
|
---|
| 74 | CC_FLAGS_DLL=$(CXX_FLAGS_DLL)
|
---|
| 75 | CC_FLAGS_SYS=$(CXX_FLAGS_SYS)
|
---|
| 76 | CC_FLAGS_VDD=$(CXX_FLAGS_VDD)
|
---|
| 77 | CC_FLAGS_IFS=$(CXX_FLAGS_IFS)
|
---|
| 78 | !endif
|
---|
| 79 | !if "$(CXX_AS_CC)" != ""
|
---|
| 80 | CXX=$(CC)
|
---|
| 81 | CXX_FLAGS_EXE=$(C_FLAGS_EXE)
|
---|
| 82 | CXX_FLAGS_DLL=$(C_FLAGS_DLL)
|
---|
| 83 | CXX_FLAGS_SYS=$(C_FLAGS_SYS)
|
---|
| 84 | CXX_FLAGS_VDD=$(C_FLAGS_VDD)
|
---|
| 85 | CXX_FLAGS_IFS=$(C_FLAGS_IFS)
|
---|
| 86 | !endif
|
---|
| 87 |
|
---|
[8252] | 88 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
| 89 |
|
---|
[8362] | 90 | LINK_FLAGS=Sort global Debug codeview Option quiet, dosseg, eliminate, manglednames, caseexact
|
---|
[8252] | 91 | LINK_FLAGS_EXE=$(LINK_FLAGS)
|
---|
| 92 | LINK_FLAGS_DLL=$(LINK_FLAGS)
|
---|
[8362] | 93 | LINK_FLAGS_SYS=$(LINK_FLAGS) Option oneautodata, internalrelocs, togglerelocs
|
---|
| 94 | LINK_FLAGS_VDD=$(LINK_FLAGS_SYS)
|
---|
| 95 | LINK_FLAGS_IFS=$(LINK_FLAGS_SYS)
|
---|
[8252] | 96 | LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
|
---|
| 97 | LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
|
---|
| 98 | LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
|
---|
[8292] | 99 | LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
|
---|
[8252] | 100 | LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
|
---|
[8362] | 101 | LINK_LNK1=file $(TARGET_OBJS: =^
|
---|
| 102 | file )
|
---|
| 103 | LINK_LNK2=libpath $(WATCOM)\lib386\os2;$(WATCOM)\lib386;
|
---|
[8252] | 104 | LINK_LNK3=option map=$(TARGET_MAP)
|
---|
[8362] | 105 | LINK_LNK4=library $(TARGET_LIBS: =^, )
|
---|
| 106 | LINK_LNK5=name $(PATH_TARGET)\$(TARGET_NAME).$(TARGET_EXT)
|
---|
[8252] | 107 |
|
---|
[8423] | 108 | RC_FLAGS=-r -n $(RC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(RC_INCLUDES:-I=-i ) $(ALL_INCLUDES:-I=-i ) -i $(PATH_INCLUDES:;= -i )
|
---|
[8252] | 109 | RL_FLAGS=-x2 -n
|
---|
| 110 |
|
---|
[8296] | 111 |
|
---|
[8252] | 112 | #
|
---|
| 113 | # Libraries and object files.
|
---|
| 114 | #
|
---|
| 115 | LIB_OS = os2386.lib
|
---|
[8423] | 116 | !if "$(_CXX_XCPT)" == "-xd"
|
---|
| 117 | LIB_C_OBJ = clib3r.lib plibmt3r.lib math387r.lib emu387.lib
|
---|
| 118 | LIB_C_DLL = clbrdll.lib plbrdll.lib mt7rdll.lib emu387.lib
|
---|
| 119 | LIB_C_RTDLL = clbrdll.lib # TODO
|
---|
| 120 | LIB_C_NRE = $(LIB_C_OBJ) # TODO
|
---|
| 121 | !else
|
---|
| 122 | LIB_C_OBJ = clib3r.lib plbxmt3r.lib math387r.lib emu387.lib
|
---|
| 123 | LIB_C_DLL = clbrdll.lib plbrdllx.lib mt7rdll.lib emu387.lib
|
---|
| 124 | LIB_C_RTDLL = clbrdll.lib # TODO
|
---|
| 125 | LIB_C_NRE = $(LIB_C_OBJ) # TODO
|
---|
| 126 | !endif
|
---|
[8252] | 127 | LIB_C_DMNGL =
|
---|
| 128 | OBJ_PROFILE =
|
---|
| 129 |
|
---|
[8296] | 130 | # ---OS2, DEBUG, WAT11-------------------------
|
---|
[8252] | 131 |
|
---|