Files
harbour-core/harbour/config/linux/watcom.mk
Przemyslaw Czerpak 701acbb116 2011-03-01 02:06 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbmk2/hbmk2.prg
  * harbour/config/dos/watcom.mk
  * harbour/config/win/watcom.mk
  * harbour/config/linux/watcom.mk
  * harbour/config/os2/watcom.mk
    ! fixed to not use -wcd124 and -wcd136 in OpenWatcom C++ builds

   * harbour/config/win/xcc.mk
     ! added -noexpobj as workaround for problems with creating
       shared library
     * removed now unnecessary $(RM) harbour*.dll

  * harbour/src/rtl/base64d.c
    * pacified warning
    % removed unnecessary condition with RTE - decoded string has to
      be shorter then the source one taken from HVM string item so for
      sure it cannot exceed maximum string item size

  * harbour/src/rtl/base64c.c
    * generate RTE if encode string size is too big 
    * eliminated unnecessary INT_MAX string limit
2011-03-01 01:07:16 +00:00

83 lines
1.6 KiB
Makefile

#
# $Id$
#
# GNU Make file for Open Watcom C/C++ compiler
OBJ_EXT := .o
LIB_PREF :=
LIB_EXT := .lib
ifeq ($(HB_BUILD_MODE),cpp)
CC := wpp386
else
CC := wcc386
endif
CC_IN :=
CC_OUT := -fo=
CFLAGS += -zq -bt=linux
LDFLAGS += OP quiet
ifneq ($(HB_BUILD_WARN),no)
CFLAGS += -w3
else
CFLAGS += -w1 -wcd201 -wcd367 -wcd368
ifneq ($(HB_BUILD_MODE),cpp)
CFLAGS += -wcd124 -wcd136
endif
endif
ifneq ($(HB_BUILD_OPTIM),no)
# architecture flags
CFLAGS += -6r -fp6
# optimization flags
# don't enable -ol optimization in OpenWatcom 1.1 - gives buggy code
# -oxaht
CFLAGS += -onaehtr -s -ei -zp4 -zt0
#CFLAGS += -obl+m
ifeq ($(CC),wpp386)
CFLAGS += -oi+
else
CFLAGS += -oi
endif
else
CFLAGS += -3r
endif
CFLAGS += -i. -i$(HB_HOST_INC)
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -d2
endif
LD := wlink
ifeq ($(HB_BUILD_DEBUG),yes)
LDFLAGS += DEBUG ALL
endif
LDFLAGS += SYS linux
LDLIBS := $(HB_USER_LIBS)
LDLIBS += $(foreach lib,$(LIBS),$(LIB_DIR)/$(lib))
#DY := $(LD)
#DFLAGS += OP quiet FORM elf dll LIBPATH $(WATCOM)/lib386 LIBPATH $(WATCOM)/lib386/linux OP exportall
#DY_OUT :=
#DLIBS :=
#
## NOTE: The empty line directly before 'endef' HAVE TO exist!
#define dynlib_object
# @$(ECHO) $(ECHOQUOTE)FILE '$(file)'$(ECHOQUOTE) >> __dyn__.tmp
#
#endef
#define create_dynlib
# $(if $(wildcard __dyn__.tmp),@$(RM) __dyn__.tmp,)
# $(foreach file,$^,$(dynlib_object))
# $(DY) $(DFLAGS) $(HB_USER_DFLAGS) NAME '$(subst /,$(DIRSEP),$(DYN_DIR)/$@)' @__dyn__.tmp && $(LN) $(@F) $(DYN_FILE_NVR) && $(LN) $(@F) $(DYN_FILE_CPT)
#endef
#
#DY_RULE = $(create_dynlib)
include $(TOP)$(ROOT)config/common/watcom.mk