* source/Makefile
* config/lib.mk
+ Added Przemek's patch to add local hbzlib and hbpcre
libs to Harbour dynlib.
; TODO: Add some ways to disable this because it has some
drawbacks (it f.e. makes it impossible to link 3rd
party libs also exporting zlib / pcre interfaces).
This information needs to be passed to hbmk2, too.
I don't have any elegant way to solve this problem ATM.
* utils/hbmk2/hbmk2.prg
* Changed to only add local hbzlib and hbpcre libs to liblist
in static mode. (this is needed to support change above).
+ Enabled lib grouping for beos/gcc.
+ Added supc++/supcxx lib to liblist of gcc family compilers.
This aims to solve link problems when Harbour is built
in C++, but hbmk2 is used in C mode.
* contrib/hbqt/hbqts.hbc
* contrib/hbqt/hbqt.hbc
* contrib/gtqtc/gtqtcs.hbc
* contrib/gtqtc/gtqtc.hbc
- Deleted explicit supc++ libspec. Now it's added by
hbmk2 automatically.
* config/dyn.mk
! Modified to add local hbpcre and hbzlib to syslib
list to make it link with beos/haiku.
Please test/confirm this change.
- Disabled above logic, since it's not needed.
* config/global.mk
+ Added autodetection for linux/sunpro, linux/icc,
darwin/clang, darwin/gcc, darwin/icc.
On darwin clang became the default, if available.
* external/sqlite3/Makefile
+ Tweak for linux/watcom. Based on Przemek patch sent to the devlist.
* config/detfun.mk
* config/bin.mk
* config/dyn.mk
* source/Makefile
* config/lib.mk
% Minor modification to HB_HAS_*_LOCAL logic to make
it safe to use this var without first checking HB_HAS_*.
; Please test/review these. I didn't restest everything after above changes.
85 lines
1.3 KiB
Makefile
85 lines
1.3 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
include $(TOP)$(ROOT)config/global.mk
|
|
|
|
ifneq ($(HB_PLATFORM),)
|
|
ifneq ($(HB_COMPILER),)
|
|
|
|
HB_DYN_LIBS := \
|
|
hbcommon \
|
|
hbpp \
|
|
hbrtl \
|
|
hbmacro \
|
|
hblang \
|
|
hbcpage \
|
|
hbextern \
|
|
hbrdd \
|
|
rddntx \
|
|
rddnsx \
|
|
rddcdx \
|
|
rddfpt \
|
|
hbsix \
|
|
hbhsx \
|
|
hbusrrdd \
|
|
gtcgi \
|
|
gtpca \
|
|
gtstd \
|
|
gtwvt \
|
|
gtgui \
|
|
gtwin \
|
|
gtos2 \
|
|
gttrm \
|
|
gtcrs \
|
|
gtsln \
|
|
gtxwc \
|
|
hbvm \
|
|
hbvmmt \
|
|
hbmaindllh
|
|
|
|
ifneq ($(HB_HAS_PCRE_LOCAL),)
|
|
HB_DYN_LIBS += hbpcre
|
|
endif
|
|
ifneq ($(HB_HAS_ZLIB_LOCAL),)
|
|
HB_DYN_LIBS += hbzlib
|
|
endif
|
|
|
|
# Added only for hbpp
|
|
-include $(TOP)$(ROOT)config/$(HB_PLATFORM)/libs.mk
|
|
include $(TOP)$(ROOT)config/$(HB_PLATFORM)/$(HB_COMPILER).mk
|
|
include $(TOP)$(ROOT)config/c.mk
|
|
include $(TOP)$(ROOT)config/prg.mk
|
|
|
|
LIB_NAME := $(LIB_PREF)$(LIBNAME)$(LIB_EXT)
|
|
|
|
LIB_FILE := $(LIB_DIR)/$(LIB_NAME)
|
|
|
|
ALL_OBJS := $(ALL_C_OBJS) $(ALL_PRG_OBJS)
|
|
|
|
first:: dirbase descend
|
|
|
|
descend:: dirbase
|
|
+@$(MK) $(MKFLAGS) -C $(OBJ_DIR) -f $(GRANDP)Makefile TOP=$(GRANDP) $(LIB_NAME)
|
|
|
|
vpath $(LIB_NAME) $(LIB_DIR)
|
|
$(LIB_NAME) : $(ALL_OBJS)
|
|
$(AR_RULE)
|
|
|
|
INSTALL_FILES := $(LIB_FILE)
|
|
INSTALL_DIR := $(HB_LIB_INSTALL)
|
|
|
|
include $(TOP)$(ROOT)config/instsh.mk
|
|
INSTALL_RULE_LIBS := $(INSTALL_RULE)
|
|
|
|
ifneq ($(INSTALL_RULE_LIBS),)
|
|
|
|
install:: first
|
|
$(INSTALL_RULE_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
endif
|
|
endif
|