* mpkg_deb.sh
* HB_WITHOUT_ADS -> HB_INC_ADS
* HB_WITHOUT_ODBC -> HB_INC_ODBC
; Please verify these changes.
* contrib/gtalleg/Makefile
* contrib/hbmysql/Makefile
* contrib/hbodbc/Makefile
* contrib/hbsqlit3/Makefile
* contrib/hbfbird/Makefile
* contrib/hbcurl/hbcurls/Makefile
* contrib/hbcurl/Makefile
* contrib/rddsql/sddmy/Makefile
* contrib/rddsql/sddpg/Makefile
* contrib/rddsql/sddfb/Makefile
* contrib/rddsql/sddodbc/Makefile
* contrib/hbhpdf/Makefile
* contrib/hbpgsql/Makefile
* contrib/rddads/Makefile
* contrib/hbfimage/Makefile
* contrib/hbgd/Makefile
* contrib/hbtip/Makefile
+ Using new central detection function instead of replicating
in in every contrib. The "side effect" is that now precise
instructions will be shown if a given contrib isn't included in a build.
Code is much cleaner/simpler/shorter now.
; It's possible that I made some mistakes along the line,
plus report if anything is wrongly detected.
* external component names converted to all lowercase.
; QT will be done in next commit.
* config/detfun.mk
* config/detect.mk
+ Added usage instructions (moved parts from detect.mk to detfun.mk).
* Moved help to detfun.mk.
+ Added HB_INC_* 'force' option.
+ Now clearing _DET_* vars on exit.
* external component names converted to all lowercase.
* config/global.mk
+ Updated plans.
46 lines
920 B
Makefile
46 lines
920 B
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ROOT := ../../
|
|
|
|
include $(TOP)$(ROOT)config/global.mk
|
|
|
|
LIBNAME := hbpgsql
|
|
|
|
C_SOURCES := \
|
|
postgres.c \
|
|
|
|
PRG_SOURCES := \
|
|
tpostgre.prg \
|
|
pgrdd.prg \
|
|
|
|
PRG_HEADERS := \
|
|
postgres.ch \
|
|
|
|
_DET_DSP_NAME := postgresql
|
|
_DET_VAR_INC_ := HB_INC_PGSQL
|
|
_DET_VAR_HAS_ := HB_HAS_PGSQL
|
|
_DET_FLT_PLAT :=
|
|
_DET_FLT_COMP :=
|
|
_DET_INC_DEFP := /usr/include /usr/local/pgsql/include /usr/local/pgsql/include/libpq
|
|
_DET_INC_DEFP += /usr/include/pgsql /usr/include/postgresql /postgres/include /opt/local/include/postgresql83
|
|
_DET_INC_HEAD := /libpq-fe.h
|
|
include $(TOP)$(ROOT)config/detfun.mk
|
|
|
|
ifneq ($(HB_HAS_PGSQL),)
|
|
|
|
HB_CFLAGS += $(foreach d,$(HB_HAS_PGSQL),-I$(d))
|
|
|
|
include $(TOP)$(ROOT)config/header.mk
|
|
INSTALL_RULE_HEADERS := $(INSTALL_RULE)
|
|
include $(TOP)$(ROOT)config/lib.mk
|
|
|
|
install::
|
|
$(INSTALL_RULE_HEADERS)
|
|
|
|
else
|
|
HB_SKIP_REASON := $(_DET_RES_TEXT)
|
|
include $(TOP)$(ROOT)config/none.mk
|
|
endif
|