Ignore:
Timestamp:
Aug 29, 2002, 12:01:46 PM (23 years ago)
Author:
bird
Message:

Added new tools. Restructured tools. More options. Fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/make/setup.os2relwat11.mk

    r9154 r9165  
    1 # $Id: setup.os2relwat11.mk,v 1.9 2002-08-28 05:02:23 bird Exp $
     1# $Id: setup.os2relwat11.mk,v 1.10 2002-08-29 10:01:46 bird Exp $
    22
    33#
     
    2323#
    2424AS_DEBUG_TYPE   = Codeview
    25 !include $(PATH_MAKE)\setup.os2relalp.mk
     25!include $(PATH_MAKE)\setup.os2as.mk
    2626!include $(PATH_MAKE)\setup.os2relrc.mk
    2727!include $(PATH_MAKE)\setup.os2relwrc.mk
    28 !ifdef LD_USE_ILINK
    2928LD_OLDCPP       = 1
    30 ! include $(PATH_MAKE)\setup.os2relilink.mk
    31 !else
    3229_LD_LIBPATH     = $(PATH_WATCOM)\lib386\os2;$(PATH_WATCOM)\lib386;
    33 ! include $(PATH_MAKE)\setup.os2relwlink.mk
    34 !endif
    35 !include $(PATH_MAKE)\setup.os2allilib.mk
     30!include $(PATH_MAKE)\setup.os2ld.mk
     31!include $(PATH_MAKE)\setup.os2ar.mk
    3632!include $(PATH_MAKE)\setup.optional.watcom11x.mk
    3733
     
    4238CC=wcc386.exe
    4339CXX=wpp386.exe
    44 LINK=wlink.exe
    4540
    4641
     
    4843# The flags
    4944#
    50 CC_FLAGS=-bt=os2v2 -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -zld $(_CC_OPTIONAL) $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
    51 CC_FLAGS_EXE=$(CC_FLAGS) -omlinear -zc
    52 CC_FLAGS_DLL=$(CC_FLAGS) -omlinear -zc -bd
    53 CC_FLAGS_SYS=$(CC_FLAGS) -omlinear -s -zdp -zff -zgf -zu
     45!if "$(_CC_OPTIM)" == ""
     46_CC_OPTIM_    = -omlinear
     47_CC_OPTIM_IFS = -omlnaru
     48!else
     49_CC_OPTIM_    =
     50_CC_OPTIM_IFS =
     51!endif
     52CC_FLAGS=-bt=os2v2 -dOS2 -d__32BIT__ -d__i386__ -zq -bm -ze -w4 -zld $(_CC_OPTIONAL) $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
     53CC_FLAGS_EXE=$(CC_FLAGS) $(_CC_OPTIM_) -zc
     54CC_FLAGS_DLL=$(CC_FLAGS) $(_CC_OPTIM_) -zc -bd
     55CC_FLAGS_SYS=$(CC_FLAGS) $(_CC_OPTIM_) -s -zdp -zff -zgf -zu
    5456CC_FLAGS_VDD=$(CC_FLAGS_SYS)
    55 CC_FLAGS_IFS=$(CC_FLAGS_SYS) -omlnaru -bd
     57CC_FLAGS_IFS=$(CC_FLAGS_SYS) $(_CC_OPTIM_IFS) -bd
    5658CC_OBJ_OUT=-fo=
    5759CC_LST_OUT=
    5860CC_PC_2_STDOUT=-pc
    5961
    60 CXX_FLAGS=-bt=os2v2 -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -zld $(_CXX_OPTIONAL)  $(CXX_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CXX_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
    61 CXX_FLAGS_EXE=$(CXX_FLAGS) -omlinear -zc
    62 CXX_FLAGS_DLL=$(CXX_FLAGS) -omlinear -zc -bd
    63 CXX_FLAGS_SYS=$(CXX_FLAGS) -omlinear -omlinear -s -zdp -zff -zgf -zu
     62!if "$(_CXX_OPTIM)" == ""
     63_CXX_OPTIM_    = -omlinear
     64_CXX_OPTIM_IFS = -omlnaru
     65!else
     66_CXX_OPTIM_    =
     67_CXX_OPTIM_IFS =
     68!endif
     69CXX_FLAGS=-bt=os2v2 -dOS2 -d__32BIT__ -d__i386__ -zq -bm -ze -w4 -zld $(_CXX_OPTIONAL)  $(CXX_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CXX_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
     70CXX_FLAGS_EXE=$(CXX_FLAGS) $(_CXX_OPTIM_) -zc
     71CXX_FLAGS_DLL=$(CXX_FLAGS) $(_CXX_OPTIM_) -zc -bd
     72CXX_FLAGS_SYS=$(CXX_FLAGS) $(_CXX_OPTIM_) -omlinear -s -zdp -zff -zgf -zu
    6473CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
    65 CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -omlnaru -bd
     74CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) $(_CXX_OPTIM_IFS) -bd
    6675CXX_OBJ_OUT=-fo=
    6776CXX_LST_OUT=
     
    96105LIB_OS      = os2386.lib
    97106!if "$(_CXX_XCPT)" == "-xd"
    98 LIB_C_OBJ   = clib3r.lib plibmt3r.lib math387r.lib emu387.lib
    99 LIB_C_DLL   = clbrdll.lib plbrdll.lib mt7rdll.lib emu387.lib
    100 LIB_C_RTDLL = clbrdll.lib  # TODO
     107LIB_C_OBJ   = $(PATH_WATCOM)\lib386\os2\clib3r.lib $(PATH_WATCOM)\lib386\os2\plibmt3r.lib $(PATH_WATCOM)\lib386\plibmt3r.lib $(PATH_WATCOM)\lib386\math387r.lib $(PATH_WATCOM)\lib386\os2\emu387.lib
     108LIB_C_DLL   = $(PATH_WATCOM)\lib386\os2\clbrdll.lib $(PATH_WATCOM)\lib386\os2\plbrdll.lib $(PATH_WATCOM)\lib386\plbrdll.lib $(PATH_WATCOM)\lib386\os2\mt7rdll.lib $(PATH_WATCOM)\lib386\os2\emu387.lib
     109LIB_C_RTDLL = $(PATH_WATCOM)\lib386\os2\clbrdll.lib  # TODO
    101110LIB_C_NRE   = $(LIB_C_OBJ) # TODO
    102111!else
    103 LIB_C_OBJ   = clib3r.lib plbxmt3r.lib math387r.lib emu387.lib
    104 LIB_C_DLL   = clbrdll.lib plbrdllx.lib mt7rdll.lib emu387.lib
    105 LIB_C_RTDLL = clbrdll.lib  # TODO
     112LIB_C_OBJ   = $(PATH_WATCOM)\lib386\os2\clib3r.lib $(PATH_WATCOM)\lib386\os2\plbxmt3r.lib $(PATH_WATCOM)\lib386\plbxmt3r.lib $(PATH_WATCOM)\lib386\math387r.lib $(PATH_WATCOM)\lib386\os2\emu387.lib
     113LIB_C_DLL   = $(PATH_WATCOM)\lib386\os2\clbrdll.lib $(PATH_WATCOM)\lib386\os2\plbrdllx.lib $(PATH_WATCOM)\lib386\plbrdllx.lib $(PATH_WATCOM)\lib386\os2\mt7rdll.lib $(PATH_WATCOM)\lib386\os2\emu387.lib
     114LIB_C_RTDLL = $(PATH_WATCOM)\lib386\os2\clbrdll.lib  # TODO
    106115LIB_C_NRE   = $(LIB_C_OBJ) # TODO
    107116!endif
Note: See TracChangeset for help on using the changeset viewer.