Files
harbour-core/harbour/config/linux/libs.mk
Viktor Szakats 5495d2978a 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 16:43:24 +00:00

59 lines
1.2 KiB
Makefile

#
# $Id$
#
BIN_EXT :=
DYN_EXT := .so
DYN_PREF := lib
HB_GT_LIBS += gttrm
ifeq ($(HB_SHELL),sh)
ifneq ($(filter $(HB_COMPILER),gcc icc),)
ifeq ($(filter -fPIC,$(HB_USER_CFLAGS)),)
ifeq ($(filter -fpic,$(HB_USER_CFLAGS)),)
_UNAME_M := $(shell uname -m)
ifeq ($(findstring 86,$(_UNAME_M)),)
HB_CFLAGS += -fPIC
else
ifneq ($(findstring 64,$(_UNAME_M)),)
HB_CFLAGS += -fPIC
endif
endif
endif
endif
endif
endif
SYSLIBS :=
SYSLIBPATHS :=
ifneq ($(HB_LINKING_RTL),)
ifeq ($(HB_CRS_LIB),)
HB_CRS_LIB := ncurses
endif
ifneq ($(HB_HAS_CURSES),)
SYSLIBS += $(HB_CRS_LIB)
endif
ifneq ($(HB_HAS_SLANG),)
SYSLIBS += slang
endif
ifneq ($(HB_HAS_X11),)
SYSLIBS += X11
# SYSLIBPATHS += /usr/X11R6/lib64
SYSLIBPATHS += /usr/X11R6/lib
endif
ifneq ($(HB_HAS_GPM),)
SYSLIBS += gpm
endif
ifneq ($(filter -DHB_PCRE_REGEX, $(HB_USER_CFLAGS)),)
SYSLIBS += pcre
endif
ifneq ($(filter -DHB_EXT_ZLIB, $(HB_USER_CFLAGS)),)
SYSLIBS += z
endif
SYSLIBS += rt dl
endif
SYSLIBS += m