[8362] | 1 | # $Id: setup.os2debwat11.mk,v 1.7 2002-05-01 04:00:18 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
|
---|
[8252] | 11 |
|
---|
[8296] | 12 |
|
---|
[8252] | 13 | #
|
---|
[8334] | 14 | # Include some shared standard stuff: ALP, VAC optional stuff.
|
---|
[8252] | 15 | #
|
---|
| 16 | !include $(PATH_MAKE)\setup.os2debalp.mk
|
---|
[8334] | 17 | !include $(PATH_MAKE)\setup.optional.watcom11x.mk
|
---|
[8252] | 18 |
|
---|
[8296] | 19 |
|
---|
[8252] | 20 | #
|
---|
| 21 | # The tools
|
---|
| 22 | #
|
---|
| 23 | AR=ilib.exe
|
---|
| 24 | CC=wcc386.exe
|
---|
| 25 | CXX=wpp386.exe
|
---|
| 26 | LINK=wlink.exe
|
---|
| 27 | IMPLIB=implib.exe
|
---|
| 28 | RC=rc.exe
|
---|
| 29 | RL=rc.exe
|
---|
| 30 | EXEPACK=lxlite.exe
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | #
|
---|
| 34 | # The flags
|
---|
| 35 | #
|
---|
| 36 | AR_FLAGS=/nologo /noignorecase
|
---|
| 37 | AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
|
---|
| 38 | _AR_LNK1= "$(TARGET_OBJS: ="&^
|
---|
| 39 | ")"
|
---|
| 40 | AR_LNK1= $(_AR_LNK1:""=)
|
---|
| 41 | AR_LNK2= $(@R).lst
|
---|
| 42 |
|
---|
[8354] | 43 | 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] | 44 | CC_FLAGS_EXE=$(CC_FLAGS)
|
---|
| 45 | CC_FLAGS_DLL=$(CC_FLAGS) -bd
|
---|
[8354] | 46 | CC_FLAGS_SYS=$(CC_FLAGS) -s -zdp -zff -zgf
|
---|
[8292] | 47 | CC_FLAGS_VDD=$(CC_FLAGS_SYS)
|
---|
[8334] | 48 | CC_FLAGS_IFS=$(CC_FLAGS_SYS) -bd
|
---|
[8252] | 49 | CC_OBJ_OUT=-fo=
|
---|
| 50 | CC_LST_OUT=
|
---|
[8354] | 51 | CC_PC_2_STDOUT=-pc
|
---|
[8252] | 52 |
|
---|
[8354] | 53 | 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] | 54 | CXX_FLAGS_EXE=$(CXX_FLAGS)
|
---|
| 55 | CXX_FLAGS_DLL=$(CXX_FLAGS) -bd
|
---|
| 56 | CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf
|
---|
[8292] | 57 | CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
|
---|
[8334] | 58 | CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -bd
|
---|
[8252] | 59 | CXX_OBJ_OUT=-fo=
|
---|
[8334] | 60 | CXX_LST_OUT=
|
---|
| 61 | CXX_PC_2_STDOUT=-pc
|
---|
[8252] | 62 |
|
---|
| 63 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
| 64 |
|
---|
[8362] | 65 | LINK_FLAGS=Sort global Debug codeview Option quiet, dosseg, eliminate, manglednames, caseexact
|
---|
[8252] | 66 | LINK_FLAGS_EXE=$(LINK_FLAGS)
|
---|
| 67 | LINK_FLAGS_DLL=$(LINK_FLAGS)
|
---|
[8362] | 68 | LINK_FLAGS_SYS=$(LINK_FLAGS) Option oneautodata, internalrelocs, togglerelocs
|
---|
| 69 | LINK_FLAGS_VDD=$(LINK_FLAGS_SYS)
|
---|
| 70 | LINK_FLAGS_IFS=$(LINK_FLAGS_SYS)
|
---|
[8252] | 71 | LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
|
---|
| 72 | LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
|
---|
| 73 | LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
|
---|
[8292] | 74 | LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
|
---|
[8252] | 75 | LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
|
---|
[8362] | 76 | LINK_LNK1=file $(TARGET_OBJS: =^
|
---|
| 77 | file )
|
---|
| 78 | LINK_LNK2=libpath $(WATCOM)\lib386\os2;$(WATCOM)\lib386;
|
---|
[8252] | 79 | LINK_LNK3=option map=$(TARGET_MAP)
|
---|
[8362] | 80 | LINK_LNK4=library $(TARGET_LIBS: =^, )
|
---|
| 81 | LINK_LNK5=name $(PATH_TARGET)\$(TARGET_NAME).$(TARGET_EXT)
|
---|
[8252] | 82 |
|
---|
| 83 | RC_FLAGS=-r -n -i $(PATH_INCLUDES:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
|
---|
| 84 | RL_FLAGS=-x2 -n
|
---|
| 85 |
|
---|
[8296] | 86 |
|
---|
[8252] | 87 | #
|
---|
| 88 | # Libraries and object files.
|
---|
| 89 | #
|
---|
| 90 | LIB_OS = os2386.lib
|
---|
| 91 | LIB_C_OBJ = clib3r.lib
|
---|
| 92 | LIB_C_DLL = clbrdll.lib
|
---|
| 93 | LIB_C_RTDLL = clbrdll.lib
|
---|
| 94 | LIB_C_NRE = clib3r.lib
|
---|
| 95 | LIB_C_DMNGL =
|
---|
| 96 | OBJ_PROFILE =
|
---|
| 97 |
|
---|
[8296] | 98 | # ---OS2, DEBUG, WAT11-------------------------
|
---|
[8252] | 99 |
|
---|