From a26febda1683d6ea853f2b510b645df42a93ab8d Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 10 Aug 2009 23:53:56 +0000 Subject: [PATCH] 2009-08-11 01:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * config/bsd/gcc.cf * config/wce/msvcarm.cf * config/wce/mingwarm.cf * config/wce/poccarm.cf * config/hpux/gcc.cf * config/darwin/gcc.cf * config/dos/watcom.cf * config/dos/djgpp.cf * config/win/watcom.cf * config/win/icc.cf * config/win/cygwin.cf * config/win/msvc.cf * config/win/xcc.cf * config/win/mingw.cf * config/win/pocc.cf * config/win/bcc.cf * config/linux/watcom.cf * config/linux/gcc.cf * config/linux/icc.cf * config/linux/sunpro.cf * config/os2/watcom.cf * config/os2/gcc.cf * config/sunos/gcc.cf * config/sunos/sunpro.cf + Indentation. * Minor cleanups (to GT dependency lib sections, deleted check for hbrtl, it's enough to check for the gt name) --- harbour/ChangeLog | 29 +++++++++++++++++++ harbour/config/bsd/gcc.cf | 40 +++++++++++--------------- harbour/config/darwin/gcc.cf | 38 ++++++++++--------------- harbour/config/dos/djgpp.cf | 6 ++-- harbour/config/dos/watcom.cf | 52 +++++++++++++++++----------------- harbour/config/hpux/gcc.cf | 31 +++++++++----------- harbour/config/linux/gcc.cf | 49 ++++++++++++++------------------ harbour/config/linux/icc.cf | 33 +++++++++------------ harbour/config/linux/sunpro.cf | 25 +++++++--------- harbour/config/linux/watcom.cf | 43 ++++++++++++++-------------- harbour/config/os2/gcc.cf | 37 ++++++++++++------------ harbour/config/os2/watcom.cf | 42 +++++++++++++-------------- harbour/config/sunos/gcc.cf | 31 +++++++++----------- harbour/config/sunos/sunpro.cf | 19 +++++-------- harbour/config/wce/mingwarm.cf | 10 +++---- harbour/config/wce/msvcarm.cf | 28 +++++++++--------- harbour/config/wce/poccarm.cf | 10 +++---- harbour/config/win/bcc.cf | 12 ++++---- harbour/config/win/cygwin.cf | 8 +++--- harbour/config/win/icc.cf | 14 ++++----- harbour/config/win/mingw.cf | 20 ++++++------- harbour/config/win/msvc.cf | 24 ++++++++-------- harbour/config/win/pocc.cf | 10 +++---- harbour/config/win/watcom.cf | 44 ++++++++++++++-------------- harbour/config/win/xcc.cf | 8 +++--- 25 files changed, 322 insertions(+), 341 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 748dadd344..30fb7d4842 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,35 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-08-11 01:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * config/bsd/gcc.cf + * config/wce/msvcarm.cf + * config/wce/mingwarm.cf + * config/wce/poccarm.cf + * config/hpux/gcc.cf + * config/darwin/gcc.cf + * config/dos/watcom.cf + * config/dos/djgpp.cf + * config/win/watcom.cf + * config/win/icc.cf + * config/win/cygwin.cf + * config/win/msvc.cf + * config/win/xcc.cf + * config/win/mingw.cf + * config/win/pocc.cf + * config/win/bcc.cf + * config/linux/watcom.cf + * config/linux/gcc.cf + * config/linux/icc.cf + * config/linux/sunpro.cf + * config/os2/watcom.cf + * config/os2/gcc.cf + * config/sunos/gcc.cf + * config/sunos/sunpro.cf + + Indentation. + * Minor cleanups (to GT dependency lib sections, deleted + check for hbrtl, it's enough to check for the gt name) + 2009-08-11 01:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * config/wce/mingwarm.cf * config/win/msvc.cf diff --git a/harbour/config/bsd/gcc.cf b/harbour/config/bsd/gcc.cf index 5781cc0bab..79459e1510 100644 --- a/harbour/config/bsd/gcc.cf +++ b/harbour/config/bsd/gcc.cf @@ -19,15 +19,15 @@ CPPFLAGS = -I. -I$(HB_INC_COMPILE) CFLAGS = ifneq ($(HB_BUILD_WARN),no) -CFLAGS += -Wall -W + CFLAGS += -Wall -W endif ifneq ($(HB_BUILD_OPTIM),no) -CFLAGS += -O3 + CFLAGS += -O3 endif ifeq ($(HB_BUILD_DEBUG),yes) -CFLAGS += -g + CFLAGS += -g endif LD := $(HB_CCACHE) $(HB_CMP) @@ -38,46 +38,38 @@ LINKPATHS += -L$(LIB_DIR) LINKLIBS += $(foreach lib,$(LIBS),-l$(lib)) # Add the specified GT driver library and other RTLs -ifeq ($(findstring hbrtl,$(LIBS)),hbrtl) - -# screen driver libraries ifeq ($(HB_CRS_LIB),) -HB_CRS_LIB := ncurses + HB_CRS_LIB := ncurses endif - ifneq ($(findstring gtcrs, $(LIBS)),) -LINKLIBS += -l$(HB_CRS_LIB) + LINKLIBS += -l$(HB_CRS_LIB) endif - ifneq ($(findstring gtsln, $(LIBS)),) -LINKLIBS += -lslang -# In BSD, slang still needs curses :( -ifeq ($(findstring gtcrs, $(LIBS)),) -LINKLIBS += -l$(HB_CRS_LIB) + LINKLIBS += -lslang + # In BSD, slang still needs curses :( + ifeq ($(findstring gtcrs, $(LIBS)),) + LINKLIBS += -l$(HB_CRS_LIB) + endif endif -endif - ifneq ($(findstring gtxwc, $(LIBS)),) -LINKLIBS += -lX11 -#LINKPATHS += -L/usr/X11R6/lib64 -LINKPATHS += -L/usr/X11R6/lib + LINKLIBS += -lX11 + #LINKPATHS += -L/usr/X11R6/lib64 + LINKPATHS += -L/usr/X11R6/lib endif LINKPATHS += -L/usr/local/lib -endif - ifneq ($(findstring -DHB_PCRE_REGEX, $(HB_USER_CFLAGS)),) -LINKLIBS += -lpcre + LINKLIBS += -lpcre endif ifneq ($(findstring -DHB_EXT_ZLIB, $(HB_USER_CFLAGS)),) -LINKLIBS += -lz + LINKLIBS += -lz endif LINKLIBS += -lm -LDFLAGS += $(LINKPATHS) +LDFLAGS += $(LINKPATHS) AR := ar ARFLAGS = $(HB_USER_AFLAGS) diff --git a/harbour/config/darwin/gcc.cf b/harbour/config/darwin/gcc.cf index 1e2debcd35..146b06c4bb 100644 --- a/harbour/config/darwin/gcc.cf +++ b/harbour/config/darwin/gcc.cf @@ -29,15 +29,15 @@ CPPFLAGS += -no-cpp-precomp CFLAGS = -fno-common ifneq ($(HB_BUILD_WARN),no) -CFLAGS += -Wall -W + CFLAGS += -Wall -W endif ifneq ($(HB_BUILD_OPTIM),no) -CFLAGS += -O3 + CFLAGS += -O3 endif ifeq ($(HB_BUILD_DEBUG),yes) -CFLAGS += -g + CFLAGS += -g endif # It's to avoid warning message generated when 'long double' is used @@ -52,39 +52,31 @@ LINKPATHS += -L$(LIB_DIR) LINKLIBS += $(foreach lib,$(LIBS),-l$(lib)) # Add the specified GT driver library and other RTLs -ifeq ($(findstring hbrtl,$(LIBS)),hbrtl) - -# screen driver libraries ifeq ($(HB_CRS_LIB),) -HB_CRS_LIB := ncurses + HB_CRS_LIB := ncurses endif - ifneq ($(findstring gtcrs, $(LIBS)),) -LINKLIBS += -l$(HB_CRS_LIB) + LINKLIBS += -l$(HB_CRS_LIB) endif - ifneq ($(findstring gtsln, $(LIBS)),) -LINKLIBS += -lslang -# In BSD, slang still needs curses :( -ifeq ($(findstring gtcrs, $(LIBS)),) -LINKLIBS += -l$(HB_CRS_LIB) + LINKLIBS += -lslang + # In BSD, slang still needs curses :( + ifeq ($(findstring gtcrs, $(LIBS)),) + LINKLIBS += -l$(HB_CRS_LIB) + endif endif -endif - ifneq ($(findstring gtxwc, $(LIBS)),) -LINKLIBS += -lX11 -#LINKPATHS += -L/usr/X11R6/lib64 -LINKPATHS += -L/usr/X11R6/lib -endif - + LINKLIBS += -lX11 + #LINKPATHS += -L/usr/X11R6/lib64 + LINKPATHS += -L/usr/X11R6/lib endif ifneq ($(findstring -DHB_PCRE_REGEX, $(HB_USER_CFLAGS)),) -LINKLIBS += -lpcre + LINKLIBS += -lpcre endif ifneq ($(findstring -DHB_EXT_ZLIB, $(HB_USER_CFLAGS)),) -LINKLIBS += -lz + LINKLIBS += -lz endif LINKLIBS += -lm diff --git a/harbour/config/dos/djgpp.cf b/harbour/config/dos/djgpp.cf index 5b72179dce..667c8b2f52 100644 --- a/harbour/config/dos/djgpp.cf +++ b/harbour/config/dos/djgpp.cf @@ -19,15 +19,15 @@ CPPFLAGS = -I. -I$(HB_INC_COMPILE) CFLAGS = ifneq ($(HB_BUILD_WARN),no) -CFLAGS += -Wall -W + CFLAGS += -Wall -W endif ifneq ($(HB_BUILD_OPTIM),no) -CFLAGS += -O3 + CFLAGS += -O3 endif ifeq ($(HB_BUILD_DEBUG),yes) -CFLAGS += -g + CFLAGS += -g endif LD := $(HB_CMP) diff --git a/harbour/config/dos/watcom.cf b/harbour/config/dos/watcom.cf index a0c620219e..3f620ca2ce 100644 --- a/harbour/config/dos/watcom.cf +++ b/harbour/config/dos/watcom.cf @@ -16,14 +16,14 @@ LIB_PREF := LIB_EXT := .lib ifeq ($(HB_BUILD_MODE),c) -CC := wcc386 + CC := wcc386 endif ifeq ($(HB_BUILD_MODE),cpp) -CC := wpp386 + CC := wpp386 endif # Build in C++ mode by default ifeq ($(HB_BUILD_MODE),) -CC := wpp386 + CC := wpp386 endif CC_IN := CC_OUT := -fo= @@ -31,42 +31,42 @@ CC_OUT := -fo= CPPFLAGS = -zq -bt=dos ifneq ($(HB_BUILD_WARN),no) -CPPFLAGS += -w3 + CPPFLAGS += -w3 endif ifneq ($(HB_BUILD_OPTIM),no) -# architecture flags -CPPFLAGS += -5r -fp5 + # architecture flags + CPPFLAGS += -5r -fp5 -# optimization flags -# don't enable -ol optimization in OpenWatcom 1.1 - gives buggy code -CPPFLAGS += -onaehtr -s -ei -zp4 -zt0 -#CPPFLAGS += -obl+m -ifeq ($(CC),wpp386) -CPPFLAGS += -oi+ -else -CPPFLAGS += -oi -endif + # optimization flags + # don't enable -ol optimization in OpenWatcom 1.1 - gives buggy code + CPPFLAGS += -onaehtr -s -ei -zp4 -zt0 + #CPPFLAGS += -obl+m + ifeq ($(CC),wpp386) + CPPFLAGS += -oi+ + else + CPPFLAGS += -oi + endif endif CPPFLAGS += -i. -i$(TOP)$(ROOT)include ifeq ($(HB_BUILD_DEBUG),yes) -CPPFLAGS += -d2 + CPPFLAGS += -d2 endif ifeq ($(CC),wcc386) -ifneq ($(HB_HOST_ARCH),linux) -CPPFLAGS := $(subst /,\,$(CPPFLAGS)) -CC_RULE = $(CC) $(CPPFLAGS) $(subst /,\,$(CFLAGS)) $(HB_CDBG) $(subst /,\,$(HB_USER_CFLAGS)) $(HB_CDYNLIB) $(HB_CUNICODE) $(CC_IN)$(subst /,\,$<) $(CC_OUT)$(> __lib__.tmp $(AR) -M < __lib__.tmp endef - # Under OS/2 || isn't a command separator (inside a shell, that is); correct separator is & AR := ar ARFLAGS = $(HB_USER_AFLAGS) diff --git a/harbour/config/os2/watcom.cf b/harbour/config/os2/watcom.cf index b1acb4df2a..0359bcab72 100644 --- a/harbour/config/os2/watcom.cf +++ b/harbour/config/os2/watcom.cf @@ -16,14 +16,14 @@ LIB_PREF := LIB_EXT := .lib ifeq ($(HB_BUILD_MODE),c) -CC := wcc386 + CC := wcc386 endif ifeq ($(HB_BUILD_MODE),cpp) -CC := wpp386 + CC := wpp386 endif # Build in C++ mode by default ifeq ($(HB_BUILD_MODE),) -CC := wpp386 + CC := wpp386 endif CC_IN := CC_OUT := -fo= @@ -31,35 +31,35 @@ CC_OUT := -fo= CPPFLAGS = -zq -bt=os2 ifneq ($(HB_BUILD_WARN),no) -CPPFLAGS += -w3 + CPPFLAGS += -w3 endif ifneq ($(HB_BUILD_OPTIM),no) -# architecture flags -CPPFLAGS += -5r -fp5 + # architecture flags + CPPFLAGS += -5r -fp5 -# optimization flags -# don't enable -ol optimization in OpenWatcom 1.1 - gives buggy code -CPPFLAGS += -onaehtr -s -ei -zp4 -zt0 -#CPPFLAGS += -obl+m -ifeq ($(CC),wpp386) -CPPFLAGS += -oi+ -else -CPPFLAGS += -oi -endif + # optimization flags + # don't enable -ol optimization in OpenWatcom 1.1 - gives buggy code + CPPFLAGS += -onaehtr -s -ei -zp4 -zt0 + #CPPFLAGS += -obl+m + ifeq ($(CC),wpp386) + CPPFLAGS += -oi+ + else + CPPFLAGS += -oi + endif endif CPPFLAGS += -i. -i$(TOP)$(ROOT)include ifeq ($(HB_BUILD_DEBUG),yes) -CPPFLAGS += -d2 + CPPFLAGS += -d2 endif ifeq ($(CC),wcc386) -ifneq ($(HB_HOST_ARCH),linux) -CPPFLAGS := $(subst /,\,$(CPPFLAGS)) -CC_RULE = $(CC) $(CPPFLAGS) $(subst /,\,$(CFLAGS)) $(HB_CDBG) $(subst /,\,$(HB_USER_CFLAGS)) $(HB_CDYNLIB) $(HB_CUNICODE) $(CC_IN)$(subst /,\,$<) $(CC_OUT)$(