diff --git a/harbour/ChangeLog b/harbour/ChangeLog index bd599d83bf..eda48f37a5 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,37 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-08-26 18:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * source/rtl/gtcrs/Makefile + * source/rtl/gttrm/Makefile + * source/rtl/gtsln/Makefile + * Using HB_HAS_GPM instead of old HB_GPM_MOUSE. + + * config/bin.mk + * config/dyn.mk + * config/bsd/libs.mk + * config/darwin/libs.mk + * config/hpux/libs.mk + * config/dos/djgpp.mk + * config/win/mingw.mk + * config/linux/libs.mk + * config/os2/gcc.mk + * config/sunos/libs.mk + * Extended the way it's decided whether to include + rtl external lib dependencies or not. Now binary specific + logic was moved to bin.mk, and dynamic lib logic was added + to dyn.mk. + The flag is called HB_LINKING_RTL (not empty means yes). + + Updated syslib list assembly parts to use HB_HAS_* + autodetection variables instead of trying to find it out + by other means. + + * config/global.mk + + Adding gtcrs, gtsln, gtxwc to std liblist if required + components are available. This means that it's now again + possible to select these as build-time default GTs. + * Updated comment for setting plans. + 2009-08-26 17:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + config/detfun.mk + config/detect.mk diff --git a/harbour/config/bin.mk b/harbour/config/bin.mk index 324dc0190e..0feaef997c 100644 --- a/harbour/config/bin.mk +++ b/harbour/config/bin.mk @@ -52,6 +52,12 @@ HB_LIBS_TPL := _HB_RDD := _HB_VM := +ifneq ($(filter hbrtl, $(LIBS)),) + HB_LINKING_RTL := yes +else + HB_LINKING_RTL := +endif + -include $(TOP)$(ROOT)config/$(HB_PLATFORM)/libs.mk include $(TOP)$(ROOT)config/$(HB_PLATFORM)/$(HB_COMPILER).mk include $(TOP)$(ROOT)config/c.mk diff --git a/harbour/config/bsd/libs.mk b/harbour/config/bsd/libs.mk index 32de62e853..c1e3a39bf3 100644 --- a/harbour/config/bsd/libs.mk +++ b/harbour/config/bsd/libs.mk @@ -5,21 +5,21 @@ SYSLIBS := SYSLIBPATHS := -ifneq ($(filter hbrtl, $(LIBS)),) +ifneq ($(HB_LINKING_RTL),) ifeq ($(HB_CRS_LIB),) HB_CRS_LIB := ncurses endif - ifneq ($(filter gtcrs, $(LIBS)),) + ifneq ($(HB_HAS_CURSES),) SYSLIBS += $(HB_CRS_LIB) endif - ifneq ($(filter gtsln, $(LIBS)),) + ifneq ($(HB_HAS_SLANG),) SYSLIBS += slang # In BSD, slang still needs curses :( - ifeq ($(filter gtcrs, $(LIBS)),) + ifneq ($(HB_HAS_CURSES),) SYSLIBS += $(HB_CRS_LIB) endif endif - ifneq ($(filter gtxwc, $(LIBS)),) + ifneq ($(HB_HAS_X11),) SYSLIBS += X11 # SYSLIBPATHS += /usr/X11R6/lib64 SYSLIBPATHS += /usr/X11R6/lib diff --git a/harbour/config/darwin/libs.mk b/harbour/config/darwin/libs.mk index a92180a56c..c9d742d914 100644 --- a/harbour/config/darwin/libs.mk +++ b/harbour/config/darwin/libs.mk @@ -5,21 +5,21 @@ SYSLIBS := SYSLIBPATHS := -ifneq ($(filter hbrtl, $(LIBS)),) +ifneq ($(HB_LINKING_RTL),) ifeq ($(HB_CRS_LIB),) HB_CRS_LIB := ncurses endif - ifneq ($(filter gtcrs, $(LIBS)),) + ifneq ($(HB_HAS_CURSES),) SYSLIBS += $(HB_CRS_LIB) endif - ifneq ($(filter gtsln, $(LIBS)),) + ifneq ($(HB_HAS_SLANG),) SYSLIBS += slang # In BSD, slang still needs curses :( - ifeq ($(filter gtcrs, $(LIBS)),) + ifneq ($(HB_HAS_CURSES),) SYSLIBS += $(HB_CRS_LIB) endif endif - ifneq ($(filter gtxwc, $(LIBS)),) + ifneq ($(HB_HAS_X11),) SYSLIBS += X11 # SYSLIBPATHS += /usr/X11R6/lib64 SYSLIBPATHS += /usr/X11R6/lib diff --git a/harbour/config/dos/djgpp.mk b/harbour/config/dos/djgpp.mk index 465436243f..c6e8225940 100644 --- a/harbour/config/dos/djgpp.mk +++ b/harbour/config/dos/djgpp.mk @@ -39,8 +39,7 @@ LIBPATHS := -L$(LIB_DIR) LDLIBS := $(foreach lib,$(LIBS),-l$(lib)) -ifneq ($(filter hbrtl, $(LIBS)),) - # Add the specified GT driver library +ifneq ($(HB_LINKING_RTL),) ifeq ($(HB_CRS_LIB),) HB_CRS_LIB := pdcurses endif diff --git a/harbour/config/dyn.mk b/harbour/config/dyn.mk index e87c3fdfd2..a16513e8cb 100644 --- a/harbour/config/dyn.mk +++ b/harbour/config/dyn.mk @@ -7,6 +7,12 @@ include $(TOP)$(ROOT)config/global.mk ifneq ($(HB_PLATFORM),) ifneq ($(HB_COMPILER),) +ifneq ($(DYNNAME),) + HB_LINKING_RTL := yes +else + HB_LINKING_RTL := +endif + -include $(TOP)$(ROOT)config/$(HB_PLATFORM)/libs.mk include $(TOP)$(ROOT)config/$(HB_PLATFORM)/$(HB_COMPILER).mk include $(TOP)$(ROOT)config/c.mk diff --git a/harbour/config/global.mk b/harbour/config/global.mk index 0f889dac73..2ec4a208ce 100644 --- a/harbour/config/global.mk +++ b/harbour/config/global.mk @@ -268,11 +268,7 @@ ifeq ($(HB_INIT_DONE),) # HB_GT_CRS_BCEHACK -> HB_USER_CFLAGS=-DHB_GT_CRS_BCEHACK # HB_NCURSES_194 -> HB_USER_CFLAGS=-DHB_NCURSES_194 # HB_DLLIBS -> (only used in place location, so it's a local matter) - # # HB_CRS_LIB -> HB_LIB_CURSES - # HB_GPM_MOUSE -> HB_WITH_GPM - # HB_WITHOUT_* -> HB_WITH_*=no - # HB_INC_* -> HB_WITH_*=