* harbour/config/darwin/gcc.cf
* harbour/config/darwin/global.cf
* harbour/config/hpux/gcc.cf
* harbour/config/hpux/global.cf
* harbour/config/dos/owatcom.cf
* harbour/config/dos/watcom.cf
* harbour/config/dos/bcc16.cf
* harbour/config/dos/global.cf
* harbour/config/dos/rsx32.cf
* harbour/config/dos/djgpp.cf
* harbour/config/linux/owatcom.cf
* harbour/config/linux/gcc.cf
* harbour/config/linux/global.cf
* harbour/config/os2/gcc.cf
* harbour/config/os2/icc.cf
* harbour/config/os2/global.cf
* harbour/config/sunos/global.cf
* harbour/config/bsd/gcc.cf
* harbour/config/bsd/global.cf
* harbour/config/w32/msvc.cf
* harbour/config/w32/owatcom.cf
* harbour/config/w32/watcom.cf
* harbour/config/w32/bcc32.cf
* harbour/config/w32/gcc.cf
* harbour/config/w32/xcc.cf
* harbour/config/w32/rsxnt.cf
* harbour/config/w32/global.cf
* harbour/config/w32/mingw32.cf
+ added support for linking with all GT libraries - please test
* harbour/makefile.gc
* removed system screen libraries - they are set by make_gcc.sh
* harbour/bin/pack_src.sh
+ added HBDOT
* harbour/harbour.spec
* harbour/make_tgz.sh
* replaced PP with HBDOT
82 lines
2.2 KiB
CFEngine3
82 lines
2.2 KiB
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
# The Harbour project
|
|
# GNU MAKE file for Watcom C/C++ 10.x
|
|
|
|
include $(TOP)$(ROOT)config/$(HB_ARCHITECTURE)/global.cf
|
|
|
|
OBJ_EXT = .obj
|
|
EXE_EXT = .exe
|
|
LIB_PREF =
|
|
LIB_EXT = .lib
|
|
|
|
$(HB_ARCHITECTURE)_$(HB_COMPILER)_GRANDP = $(subst /,\\,$(GRANDP))
|
|
|
|
CC = wpp386
|
|
CC_IN =
|
|
CC_OUT = -fo=
|
|
CPPFLAGS = -d2 -w2 -5r -zq -zt0 -bt=DOS4G
|
|
CFLAGS := -i$(subst \,\\,$(WATCOM))\\h -i$(subst /,\\,$(HB_INC_COMPILE)) -i.
|
|
|
|
# Note: The empty line directly before 'endef' HAVE TO exist!
|
|
# It causes that the 'echo' command is separated by LF
|
|
define link_file
|
|
$(COMSPEC) /E:2048 /Cecho FILE $(file) >> __link__.tmp
|
|
|
|
endef
|
|
|
|
#Note: The empty line directly before 'endef' HAVE TO exist!
|
|
define link_lib
|
|
$(COMSPEC) /E:2048 /Cecho LIB $(lib) >> __link__.tmp
|
|
|
|
endef
|
|
|
|
define link_exe_file
|
|
$(COMSPEC) /E:2048 /Cecho $(LDFLAGS) NAME $@ > __link__.tmp
|
|
$(foreach file, $(^F), $(link_file))
|
|
$(foreach lib, $(LINKLIBS), $(link_lib))
|
|
$(foreach lib, $(RDDLIBS), $(link_lib))
|
|
$(foreach lib, $(GTLIBS), $(link_lib))
|
|
-$(LD) @__link__.tmp
|
|
endef
|
|
|
|
LD = wlink
|
|
LDFLAGS = debug all OP osn=DOS4G OP stack=65536 OP CASEEXACT
|
|
ifeq ($(HB_LIB_COMPILE),)
|
|
LINKLIBS := $(foreach lib, $(CONTRIBS), $(subst /,\,$(TOP)$(ROOT)contrib/$(lib)/$(HB_ARCH)/$(subst lib,,$(lib))))
|
|
LINKLIBS += $(foreach lib, $(LIBS), $(subst /,\,$(TOP)$(ROOT)source/$(lib)/$(HB_ARCH)/$(lib)))
|
|
else
|
|
LINKLIBS := $(foreach lib, $(CONTRIBS), $(subst /,\,$(HB_LIB_COMPILE)/$(lib)))
|
|
LINKLIBS += $(foreach lib, $(LIBS), $(subst /,\,$(HB_LIB_COMPILE)/$(lib)))
|
|
endif
|
|
|
|
# If LIBS specifies the rdd library, add all DB drivers.
|
|
ifeq ($(findstring rdd,$(LIBS)),rdd)
|
|
RDDLIBS := $(foreach drv, $(HB_DB_DRIVERS), $(subst /,\,$(TOP)$(ROOT)source/rdd/$(drv)/$(HB_ARCH)/$(drv)))
|
|
endif
|
|
|
|
GTLIBS := $(foreach gt, $(HB_GT_LIBS), $(subst /,\,$(TOP)$(ROOT)source/rtl/$(gt)/$(HB_ARCH)/$(gt)))
|
|
|
|
LD_RULE = $(link_exe_file)
|
|
|
|
#Note: The empty line below HAVE TO exist!
|
|
define lib_object
|
|
$(COMSPEC) /E:2048 /Cecho -+$(file) >> __lib__.tmp
|
|
|
|
endef
|
|
|
|
define create_library
|
|
$(COMSPEC) /E:2048 /Cecho $@ > __lib__.tmp
|
|
$(foreach file, $(^F), $(lib_object))
|
|
$(AR) $(ARFLAGS) @__lib__.tmp
|
|
endef
|
|
|
|
AR = wlib
|
|
ARFLAGS = -p=32 -c $(A_USR)
|
|
AR_RULE = $(create_library)
|
|
|
|
include $(TOP)$(ROOT)config/rules.cf
|
|
|
|
HB := $(subst /,\\,$(HB))
|