* bin/commit.hb
* config/detect.mk
* config/detfun.mk
* config/detplat.mk
* config/dir.mk
* config/dirsh.mk
* config/global.mk
* config/globsh.mk
* config/instsh.mk
* config/lang.hb
* config/lang2po.hb
* config/po2lang.hb
* config/postinst.hb
* contrib/hbexpat/tests/tohash.prg
* contrib/hbformat/utils/hbformat.ini
* contrib/hbmisc/hbedit.prg
* contrib/hbmxml/tests/testmxml.prg
* contrib/hbnetio/utils/hbnetio/_console.prg
* contrib/hbnetio/utils/hbnetio/_winsvc.prg
* contrib/hbnetio/utils/hbnetio/hbnetio.prg
* contrib/hbnetio/utils/hbnetio/netiomgm.hb
* contrib/hbwin/tests/ole.prg
* contrib/hbwin/tests/oletst2.js
* contrib/hbwin/tests/oletst2.vbs
* contrib/hbxpp/doc/en/binnumx.txt
* contrib/hbxpp/doc/en/dbcmdx.txt
* contrib/xhb/htmutil.prg
* contrib/xhb/tfile.prg
* contrib/xhb/tframe.prg
* contrib/xhb/thtm.prg
* ChangeLog.txt
* debian/copyright
* doc/class_tp.txt
* doc/hdr_tpl.txt
* doc/xhb-diff.txt
* LICENSE.txt
* package/harbour-wce.spec.in
* package/harbour-win.spec.in
* package/harbour.spec
* package/mpkg_rpm_wce.sh
* package/mpkg_rpm_win.sh
* package/mpkg_rpm.sh
* package/mpkg_src.sh
* package/mpkg_ver.sh
* src/rtl/achoice.prg
* src/rtl/getsys53.prg
* src/rtl/tgetlist.prg
* src/rtl/tlabel.prg
* src/rtl/tmenusys.prg
* tests/hbdoc.prg
* tests/langmsg.prg
* tests/rto_get.prg
* tests/rto_tb.prg
+ doc/en/ati.txt
+ doc/en/dirdrive.txt
+ doc/en/hashfunc.txt
+ doc/en/hbtoken.txt
+ doc/en/left.txt
+ doc/en/proc.txt
+ doc/en/strtran.txt
+ doc/en/transfrm.txt
+ doc/en/typefile.txt
* doc/en/*
* more partial sync with 3.4 fork
143 lines
3.5 KiB
Makefile
143 lines
3.5 KiB
Makefile
# ---------------------------------------------------------------
|
|
# Copyright 2009 Viktor Szakats (vszakats.net/harbour)
|
|
# See LICENSE.txt for licensing terms.
|
|
# ---------------------------------------------------------------
|
|
|
|
# This makefile will detect optional 3rd party components
|
|
# used in Harbour core code.
|
|
|
|
# config/conf.mk if present, is able to override HB_HAS_* values.
|
|
|
|
ifeq ($(DETECT_MK_),)
|
|
export DETECT_MK_ := yes
|
|
|
|
_DET_OPT_VERB := very
|
|
|
|
# Reset everything to default
|
|
export HB_HAS_ZLIB :=
|
|
export HB_HAS_ZLIB_LOCAL :=
|
|
export HB_HAS_PCRE :=
|
|
export HB_HAS_PCRE_LOCAL :=
|
|
export HB_HAS_OPENSSL :=
|
|
export HB_HAS_GPM :=
|
|
export HB_HAS_SLANG :=
|
|
export HB_HAS_CURSES :=
|
|
export HB_HAS_X11 :=
|
|
export HB_HAS_WATT :=
|
|
|
|
# Exclude Harbour-wide features prohibiting commercial use
|
|
|
|
ifeq ($(HB_BUILD_NOGPLLIB),yes)
|
|
export HB_INC_GPM := no
|
|
export HB_INC_SLANG := no
|
|
endif
|
|
|
|
# Allow detection by external (generated) config file
|
|
|
|
-include $(TOP)$(ROOT)config.mk
|
|
|
|
# Detect zlib
|
|
|
|
_DET_DSP_NAME := zlib
|
|
_DET_VAR_INC_ := HB_INC_ZLIB
|
|
_DET_VAR_HAS_ := HB_HAS_ZLIB
|
|
_DET_FLT_PLAT :=
|
|
_DET_FLT_COMP :=
|
|
_DET_INC_DEFP := /usr/include /usr/local/include /boot/develop/headers/3rdparty
|
|
_DET_INC_LOCL := src/3rd/zlib
|
|
_DET_INC_HEAD := /zlib.h
|
|
|
|
include $(TOP)$(ROOT)config/detfun.mk
|
|
|
|
# Detect pcre
|
|
|
|
_DET_DSP_NAME := pcre
|
|
_DET_VAR_INC_ := HB_INC_PCRE
|
|
_DET_VAR_HAS_ := HB_HAS_PCRE
|
|
_DET_FLT_PLAT :=
|
|
_DET_FLT_COMP :=
|
|
_DET_INC_DEFP := /usr/include /usr/local/include /usr/pkg/include /opt/csw/include
|
|
_DET_INC_LOCL := src/3rd/pcre
|
|
_DET_INC_HEAD := /pcre.h
|
|
|
|
include $(TOP)$(ROOT)config/detfun.mk
|
|
|
|
# Detect GPM mouse
|
|
|
|
_DET_DSP_NAME := gpm
|
|
_DET_VAR_INC_ := HB_INC_GPM
|
|
_DET_VAR_HAS_ := HB_HAS_GPM
|
|
_DET_FLT_PLAT := linux
|
|
_DET_FLT_COMP :=
|
|
_DET_INC_DEFP := /usr/include /usr/local/include
|
|
_DET_INC_HEAD := /gpm.h
|
|
|
|
include $(TOP)$(ROOT)config/detfun.mk
|
|
|
|
# Detect slang
|
|
|
|
_DET_DSP_NAME := slang
|
|
_DET_VAR_INC_ := HB_INC_SLANG
|
|
_DET_VAR_HAS_ := HB_HAS_SLANG
|
|
_DET_FLT_PLAT :=
|
|
_DET_FLT_COMP :=
|
|
_DET_INC_DEFP :=
|
|
_DET_INC_HEAD := /slang.h
|
|
|
|
_DET_INC_DEFP += /usr/include /usr/include/slang
|
|
_DET_INC_DEFP += /usr/local/include /usr/local/include/slang
|
|
_DET_INC_DEFP += /sw/include /sw/include/slang
|
|
_DET_INC_DEFP += /opt/local/include /opt/local/include/slang
|
|
_DET_INC_DEFP += /usr/pkg/include/slang2 /usr/pkg/include
|
|
|
|
include $(TOP)$(ROOT)config/detfun.mk
|
|
|
|
# Detect curses
|
|
|
|
_DET_DSP_NAME := curses
|
|
_DET_VAR_INC_ := HB_INC_CURSES
|
|
_DET_VAR_HAS_ := HB_HAS_CURSES
|
|
_DET_FLT_PLAT := !os2
|
|
_DET_FLT_COMP :=
|
|
_DET_INC_DEFP := /usr/include /usr/include/ncurses /usr/local/include /sw/include /opt/local/include /boot/develop/headers/3rdparty
|
|
_DET_INC_HEAD := /curses.h
|
|
|
|
ifeq ($(HB_COMPILER),djgpp)
|
|
_DET_INC_DEFP += $(foreach d, $(subst $(PTHSEP), ,$(PATH)), $(d)/../include)
|
|
endif
|
|
|
|
include $(TOP)$(ROOT)config/detfun.mk
|
|
|
|
# Detect X11
|
|
|
|
_DET_DSP_NAME := x11
|
|
_DET_VAR_INC_ := HB_INC_X11
|
|
_DET_VAR_HAS_ := HB_HAS_X11
|
|
_DET_FLT_PLAT :=
|
|
_DET_FLT_COMP :=
|
|
_DET_INC_DEFP := /usr/include /usr/local/include /usr/X11R6/include /usr/pkg/include /usr/pkg/X11R6/include
|
|
_DET_INC_HEAD := /X11/Xlib.h
|
|
|
|
include $(TOP)$(ROOT)config/detfun.mk
|
|
|
|
# Detect WATTCP/WATT-32 in MS-DOS builds
|
|
|
|
_DET_DSP_NAME := wattcp/watt-32
|
|
_DET_VAR_INC_ := HB_INC_WATT
|
|
_DET_VAR_HAS_ := HB_HAS_WATT
|
|
_DET_FLT_PLAT := dos
|
|
_DET_FLT_COMP :=
|
|
_DET_INC_DEFP := $(if $(WATT_ROOT),$(subst \,/,$(WATT_ROOT))/inc,) /usr/include
|
|
_DET_INC_HEAD := /sys/socket.h
|
|
|
|
include $(TOP)$(ROOT)config/detfun.mk
|
|
|
|
HB_LIB_WATT := $(subst \,/,$(HB_HAS_WATT))
|
|
export HB_LIB_WATT := $(HB_LIB_WATT:/inc=/lib)
|
|
|
|
# Finished
|
|
|
|
_DET_OPT_VERB :=
|
|
|
|
endif # DETECT_MK_
|