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