* harbour/config/hpux/gcc.cf
* harbour/config/darwin/gcc.cf
* harbour/config/dos/watcom.cf
* harbour/config/dos/djgpp.cf
* harbour/config/win/watcom.cf
* harbour/config/win/icc.cf
* harbour/config/win/cygwin.cf
* harbour/config/win/msvc.cf
* harbour/config/win/xcc.cf
* harbour/config/win/mingw.cf
* harbour/config/win/pocc.cf
* harbour/config/win/bcc.cf
* harbour/config/linux/watcom.cf
* harbour/config/linux/gcc.cf
* harbour/config/linux/icc.cf
* harbour/config/os2/watcom.cf
* harbour/config/os2/gcc.cf
* harbour/config/sunos/gcc.cf
* harbour/config/bsd/gcc.cf
* harbour/config/wce/msvcarm.cf
* harbour/config/wce/mingwarm.cf
* harbour/config/wce/poccarm.cf
* cleanup: rtl -> hbrtl, rdd -> hbrdd
* harbour/harbour.spec
* harbour/harbour-win-spec
* harbour/harbour-wce-spec
* harbour/include/hbcomp.h
* harbour/source/Makefile
+ harbour/source/nulrtl
+ harbour/source/nulrtl/nulrtl.c
+ harbour/source/nulrtl/Makefile
+ added hbnulrtl library to use non .prg harbour binaries
* harbour/source/rtl/strmatch.c
* harbour/source/common/Makefile
+ harbour/source/common/strwild.c
* moved hb_strMatch*() functions from RTL to COMMON library
Warning: copyright changed in new file. Viktor is rtl/strmatch.c
copyright holder but hb_strMatch*() functions is my code.
* harbour/source/rtl/Makefile
- harbour/source/rtl/hbffind.c
* harbour/source/common/Makefile
* harbour/source/common/hbffind.c
* moved hb_fsFind*() functions from RTL to COMMON library
* harbour/source/main/harbour.c
* harbour/source/main/Makefile
* use hbnulrtl library to create harbour binaries
* harbour/source/pp/Makefile
* harbour/source/pp/hbpp.c
* use hbnulrtl library to create hbpp binaries
* added support for wildcard search
* harbour/examples/pp/pp.c
* harbour/examples/pp/pp.hbp
* use hbnulrtl library to create pp binaries
question: why is ignored -nohblib in pp.hbp?
* harbour/contrib/rddads/ads1.c
% removed always false if() { ... } statement
100 lines
2.1 KiB
CFEngine3
100 lines
2.1 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
|
|
# ---------------------------------------------------------------
|
|
|
|
OBJ_EXT = .o
|
|
EXE_EXT =
|
|
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
|
|
|
|
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$(TOP)$(ROOT)include
|
|
|
|
ifeq ($(HB_BUILD_DEBUG),yes)
|
|
CPPFLAGS += -d2
|
|
endif
|
|
|
|
empty:=
|
|
space:= $(empty) $(empty)
|
|
comma:= ,
|
|
|
|
LD = wlink
|
|
LDFLAGS = sys Linux
|
|
ifeq ($(HB_BUILD_DEBUG),yes)
|
|
LDFLAGS := debug all $(LDFLAGS)
|
|
endif
|
|
|
|
LINKLIBS += $(foreach lib, $(LIBS), $(LIB_DIR)/$(lib))
|
|
|
|
# If LIBS specifies the RDD library, add all DB drivers.
|
|
ifeq ($(findstring hbrdd,$(LIBS)),hbrdd)
|
|
RDDLIBS = $(foreach drv, $(HB_DB_DRIVERS), $(LIB_DIR)/$(drv))
|
|
endif
|
|
|
|
ifeq ($(findstring hbrtl,$(LIBS)),hbrtl)
|
|
GTLIBS = $(foreach gt, $(HB_GT_LIBS), $(LIB_DIR)/$(gt))
|
|
endif
|
|
|
|
LDFILES = $(subst $(space),$(comma) ,$(^F))
|
|
LDLIBS = $(subst $(space),$(comma) ,$(strip $(LINKLIBS) $(RDDLIBS) $(GTLIBS)))
|
|
ifeq ($(SHLVL),) # non-bash
|
|
LD_RULE = $(LD) $(LDFLAGS) $(HB_USER_LDFLAGS) NAME $@. FILE $(LDFILES)
|
|
else
|
|
LD_RULE = $(LD) $(LDFLAGS) $(HB_USER_LDFLAGS) NAME $@ FILE $(LDFILES)
|
|
endif
|
|
ifneq ($(LDLIBS),)
|
|
LD_RULE += LIB $(LDLIBS)
|
|
endif
|
|
|
|
AR = wlib
|
|
# ARFLAGS = -c -n -fa $(HB_USER_AFLAGS)
|
|
ARFLAGS = -c -n $(HB_USER_AFLAGS)
|
|
AR_RULE = $(AR) $(ARFLAGS) $(LIB_DIR)/$@ $(foreach file, $(^F), -+$(file))
|
|
|
|
include $(TOP)$(ROOT)config/rules.cf
|