From a7dfafc8c7abea0b2a244f71d5520d896416c456 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 12 Mar 2009 01:16:53 +0000 Subject: [PATCH] 2009-03-12 02:14 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * source/rtl/achoice.prg ! Fixed handling of empty items. * INSTALL * config/rules.cf * config/darwin/gcc.cf * config/hpux/gcc.cf * config/dos/djgpp.cf * config/win/mingwce.cf * config/win/poccce.cf * config/win/pocc64.cf * config/win/icc.cf * config/win/cygwin.cf * config/win/msvc.cf * config/win/owatcom.cf * config/win/xcc.cf * config/win/msvcce.cf * config/win/mingw.cf * config/win/pocc.cf * config/win/bcc.cf * config/linux/gcc.cf * config/linux/icc.cf * config/os2/gcc.cf * config/sunos/gcc.cf * config/bsd/gcc.cf + Added support HB_BUILD_DEBUG=yes. This will work identically to the former non-GNU make systems. ! Added missing -MT for MSVC. (from non-GNU make) * Changed a few CPPFLAGS to CFLAGS. (these are currently synonyms, and both are utilized without any apparent order). This could use more cleanup. --- harbour/ChangeLog | 50 ++++++++++++++++++++++++++++------ harbour/INSTALL | 1 + harbour/config/bsd/gcc.cf | 4 +++ harbour/config/darwin/gcc.cf | 4 +++ harbour/config/dos/djgpp.cf | 4 +++ harbour/config/hpux/gcc.cf | 4 +++ harbour/config/linux/gcc.cf | 4 +++ harbour/config/linux/icc.cf | 4 +++ harbour/config/os2/gcc.cf | 5 +++- harbour/config/rules.cf | 8 ++++-- harbour/config/sunos/gcc.cf | 4 +++ harbour/config/win/bcc.cf | 4 +++ harbour/config/win/cygwin.cf | 4 +++ harbour/config/win/icc.cf | 5 +++- harbour/config/win/mingw.cf | 4 +++ harbour/config/win/mingwce.cf | 4 +++ harbour/config/win/msvc.cf | 13 ++++++++- harbour/config/win/msvcce.cf | 4 +++ harbour/config/win/owatcom.cf | 20 ++++++++------ harbour/config/win/pocc.cf | 12 ++++---- harbour/config/win/pocc64.cf | 2 +- harbour/config/win/poccce.cf | 14 ++++++---- harbour/config/win/xcc.cf | 12 ++++---- harbour/source/rtl/achoice.prg | 2 +- 24 files changed, 153 insertions(+), 39 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 7212b85368..afca754a46 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,40 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-03-12 02:14 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * source/rtl/achoice.prg + ! Fixed handling of empty items. + + * INSTALL + * config/rules.cf + * config/darwin/gcc.cf + * config/hpux/gcc.cf + * config/dos/djgpp.cf + * config/win/mingwce.cf + * config/win/poccce.cf + * config/win/pocc64.cf + * config/win/icc.cf + * config/win/cygwin.cf + * config/win/msvc.cf + * config/win/owatcom.cf + * config/win/xcc.cf + * config/win/msvcce.cf + * config/win/mingw.cf + * config/win/pocc.cf + * config/win/bcc.cf + * config/linux/gcc.cf + * config/linux/icc.cf + * config/os2/gcc.cf + * config/sunos/gcc.cf + * config/bsd/gcc.cf + + Added support HB_BUILD_DEBUG=yes. + This will work identically to the former non-GNU make + systems. + ! Added missing -MT for MSVC. (from non-GNU make) + * Changed a few CPPFLAGS to CFLAGS. (these are currently + synonyms, and both are utilized without any apparent order). + This could use more cleanup. + 2009-03-11 22:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/common/hbgete.c * disabled unsetenv() from Watcom builds - looks that this function @@ -46,7 +80,7 @@ 2009-03-11 08:51 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * doc/whatsnew.txt + Added new entries since last update. Please review, etc... - ; TODO: There is still 500K worth of ChangeLog to process + ; TODO: There is still 500K worth of ChangeLog to process for the timeframe 200808/09-20081219. Someone pls help. @@ -82,12 +116,12 @@ 2009-03-10 17:25 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * source/rtl/hbregex.c - * Fixed HB_REGEXMATCH(). Now the HAS/LIKE mode can be controlled - by 5th logical parameter (was 3rd), so 3rd parameter is solely + * Fixed HB_REGEXMATCH(). Now the HAS/LIKE mode can be controlled + by 5th logical parameter (was 3rd), so 3rd parameter is solely controlling case-sensitivity as indicated in the documentation. - Users are recommended to use HB_REGEXHAS() and HB_REGEXLIKE() - functions as unambiguous alternatives, which work equally - well on all Harbour versions. HB_REGEXMATCH() is now deprecated, + Users are recommended to use HB_REGEXHAS() and HB_REGEXLIKE() + functions as unambiguous alternatives, which work equally + well on all Harbour versions. HB_REGEXMATCH() is now deprecated, but kept for compatibility. 2009-03-10 15:48 UTC+0100 Viktor Szakats (harbour.01 syenar hu) @@ -96,7 +130,7 @@ * contrib/xhb/hbcompat.ch - Disabled dangerous bitop compatibility macros + comment added. - Enabled them with #define XHB_BITOP. Or even better + Enabled them with #define XHB_BITOP. Or even better to change code to use HB_BIT*() functions natively. 2009-03-10 12:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) @@ -231,7 +265,7 @@ * contrib/examples/uhttpd/home/testxmldb.html * Added Safari as unsupported browser. - (BTW, what would it need to support Safari and Chrome, or + (BTW, what would it need to support Safari and Chrome, or WebKit browsers in general?) 2009-03-08 00:43 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com) diff --git a/harbour/INSTALL b/harbour/INSTALL index c4a5b146f0..dd1c41dd7b 100644 --- a/harbour/INSTALL +++ b/harbour/INSTALL @@ -230,6 +230,7 @@ OPTIONS AVAILABLE WHEN BUILDING HARBOUR full clean + install cycles will automatically be executed, so you don't have to explicitly pass them to make_gnu.bat. + - HB_BUILD_DEBUG=yes Create a debug build. - HB_CONTRIBLIBS=no Don't build any contrib libraries. - HB_CONTRIBLIBS=[] Build space separated of contrib libraries. Build all if diff --git a/harbour/config/bsd/gcc.cf b/harbour/config/bsd/gcc.cf index 8d768f45c1..793777be93 100644 --- a/harbour/config/bsd/gcc.cf +++ b/harbour/config/bsd/gcc.cf @@ -15,6 +15,10 @@ CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) CFLAGS = -Wall -W -O3 +ifeq ($(HB_BUILD_DEBUG),yes) +CFLAGS += -g +endif + LD = $(HB_CCACHE) gcc LD_OUT = -o diff --git a/harbour/config/darwin/gcc.cf b/harbour/config/darwin/gcc.cf index 0b3f3abd80..9bed9c4fa5 100644 --- a/harbour/config/darwin/gcc.cf +++ b/harbour/config/darwin/gcc.cf @@ -31,6 +31,10 @@ CPPFLAGS += -no-cpp-precomp # -fno-common enables building .dylib files CFLAGS = -fno-common -Wall -W -O3 +ifeq ($(HB_BUILD_DEBUG),yes) +CFLAGS += -g +endif + # It's to avoid warning message generated when 'long double' is used # remove it if you have newer compiler version #CFLAGS += -Wno-long-double diff --git a/harbour/config/dos/djgpp.cf b/harbour/config/dos/djgpp.cf index 1f094d6f54..63b809dcd2 100644 --- a/harbour/config/dos/djgpp.cf +++ b/harbour/config/dos/djgpp.cf @@ -15,6 +15,10 @@ CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) CFLAGS = -Wall -W -O3 +ifeq ($(HB_BUILD_DEBUG),yes) +CFLAGS += -g +endif + LD = gcc LD_OUT = -o LDLIBS = -lm diff --git a/harbour/config/hpux/gcc.cf b/harbour/config/hpux/gcc.cf index c6f747b8ed..a7b9abd477 100644 --- a/harbour/config/hpux/gcc.cf +++ b/harbour/config/hpux/gcc.cf @@ -25,6 +25,10 @@ LDFLAGS = #CFLAGS += -mlp64 #LDFLAGS = -mlp64 +ifeq ($(HB_BUILD_DEBUG),yes) +CFLAGS += -g +endif + LD = $(HB_CCACHE) gcc LD_OUT = -o diff --git a/harbour/config/linux/gcc.cf b/harbour/config/linux/gcc.cf index de9535a5dd..50089d7831 100644 --- a/harbour/config/linux/gcc.cf +++ b/harbour/config/linux/gcc.cf @@ -33,6 +33,10 @@ endif # it's necessary on some platforms but can reduce performance #CFLAGS += -fPIC +ifeq ($(HB_BUILD_DEBUG),yes) +CFLAGS += -g +endif + LD = $(HB_CCACHE) $(HB_CMP) LD_OUT = -o diff --git a/harbour/config/linux/icc.cf b/harbour/config/linux/icc.cf index bbcaeb83e0..2377ea2a9b 100644 --- a/harbour/config/linux/icc.cf +++ b/harbour/config/linux/icc.cf @@ -28,6 +28,10 @@ CFLAGS = -O3 -D_GNU_SOURCE # it's necessary on some platforms but can reduce performance #CFLAGS += -fPIC +ifeq ($(HB_BUILD_DEBUG),yes) +CFLAGS += -g +endif + LD = $(HB_CCACHE) $(HB_CMP) LD_OUT = -o diff --git a/harbour/config/os2/gcc.cf b/harbour/config/os2/gcc.cf index 37dabb0edb..18cbc72dc5 100644 --- a/harbour/config/os2/gcc.cf +++ b/harbour/config/os2/gcc.cf @@ -15,6 +15,10 @@ CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) CFLAGS = -Wall -W -O3 +ifeq ($(HB_BUILD_DEBUG),yes) +CFLAGS += -g +endif + LD = gcc LDFLAGS = # NOTE: The ending space after -o is important, please preserve it. @@ -97,4 +101,3 @@ ARFLAGS = $(HB_USER_AFLAGS) AR_RULE = $(create_library) & $(RM) __lib__.tmp include $(TOP)$(ROOT)config/rules.cf - diff --git a/harbour/config/rules.cf b/harbour/config/rules.cf index 60ad2f9e16..75f90dca62 100644 --- a/harbour/config/rules.cf +++ b/harbour/config/rules.cf @@ -10,6 +10,10 @@ YACC_FLAGS := -d $(YACC_FLAGS) LEX = flex LEX_FLAGS := -i -8 $(LEX_FLAGS) +ifeq ($(HB_BUILD_DEBUG),yes) +HB_CDBG = -DHB_TR_LEVEL_DEBUG +endif + # # How to run Harbour. # @@ -35,13 +39,13 @@ endif # The rule to compile a C source file. ifeq ($(CC_RULE),) # Use default rule if architecture/compiler specific rule is not defined -CC_RULE = $(CC) $(CPPFLAGS) $(CFLAGS) $(HB_USER_CFLAGS) $(HB_CDYNLIB) $(CC_IN) $< $(CC_OUT)$( 0 nItems++ ELSE EXIT