Files
harbour-core/harbour/config/linux/watcom.cf
Viktor Szakats bac3f6b462 2009-08-14 16:39 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-mkdyn.bat
    ! Applied recent change in WinCE .dll names.
    % Remmed some verbose output in .dll generation code.

  * bin/postinst.bat
  * bin/hb-mkimp.bat
    * Minor in wording.

  * utils/hbmk2/hbmk2.prg
    ! Fixed converting input filename dirseps for target compiler
      in resource compiler commands. (error ocurred when testing
      mingwarm)

  * config/win/bcc.cf
    ! Fixed bad typo in prev commit.

  * config/dos/watcom.cf
  * config/win/watcom.cf
  * config/linux/watcom.cf
  * config/os2/watcom.cf
    + Added -q to wlib cmdline.
2009-08-14 14:46:38 +00:00

89 lines
2.0 KiB
CFEngine3

#
# $Id$
#
# GNU MAKE file for Open Watcom C/C++ compiler
# ---------------------------------------------------------------
# See option docs here:
# http://www.users.pjwstk.edu.pl/~jms/qnx/help/watcom/compiler-tools/cpopts.html
# http://www.users.pjwstk.edu.pl/~jms/qnx/help/watcom/compiler-tools/wlink.html
# http://www.users.pjwstk.edu.pl/~jms/qnx/help/watcom/compiler-tools/wlib.html
# ---------------------------------------------------------------
OBJ_EXT := .o
LIB_PREF :=
LIB_EXT := .lib
ifeq ($(HB_BUILD_MODE),c)
CC := wcc386
endif
ifeq ($(HB_BUILD_MODE),cpp)
CC := wpp386
endif
# Build in C++ mode by default
ifeq ($(HB_BUILD_MODE),)
CC := wpp386
endif
CC_IN :=
CC_OUT := -fo=
CPPFLAGS := -zq -bt=linux
CFLAGS :=
LDFLAGS :=
ifneq ($(HB_BUILD_WARN),no)
CPPFLAGS += -w3
endif
ifneq ($(HB_BUILD_OPTIM),no)
# architecture flags
CPPFLAGS += -6r -fp6
# optimization flags
# don't enable -ol optimization in OpenWatcom 1.1 - gives buggy code
# -oxaht
CPPFLAGS += -onaehtr -s -ei -zp4 -zt0
#CPPFLAGS += -obl+m
ifeq ($(CC),wpp386)
CPPFLAGS += -oi+
else
CPPFLAGS += -oi
endif
else
CPPFLAGS += -3r
endif
CPPFLAGS += -i. -i$(HB_INC_COMPILE)
ifeq ($(HB_BUILD_DEBUG),yes)
CPPFLAGS += -d2
endif
LD := wlink
ifeq ($(HB_BUILD_DEBUG),yes)
LDFLAGS += DEBUG ALL
endif
LDFLAGS += SYS linux
LDLIBS := $(foreach lib,$(LIBS),$(LIB_DIR)/$(lib))
comma := ,
LDFILES_COMMA = $(subst $(subst x,x, ),$(comma) ,$(^F))
LDLIBS_COMMA := $(subst $(subst x,x, ),$(comma) ,$(strip $(LDLIBS)))
ifneq ($(HB_SHELL),sh)
LD_RULE = $(LD) $(LDFLAGS) $(HB_USER_LDFLAGS) NAME $(BIN_DIR)/$@. FILE $(LDFILES_COMMA)
else
LD_RULE = $(LD) $(LDFLAGS) $(HB_USER_LDFLAGS) NAME $(BIN_DIR)/$@ FILE $(LDFILES_COMMA)
endif
ifneq ($(LDLIBS_COMMA),)
LD_RULE += LIB $(LDLIBS_COMMA)
endif
AR := wlib
# ARFLAGS := -q -c -n -fa
ARFLAGS := -q -c -n
AR_RULE = $(AR) $(ARFLAGS) $(HB_USER_AFLAGS) $(LIB_DIR)/$@ $(foreach file,$(^F),-+$(file))
include $(TOP)$(ROOT)config/rules.cf