Files
harbour-core/harbour/contrib/hbpgsql/Makefile
Viktor Szakats 8be6e1e194 2009-03-08 18:04 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* INSTALL
    + Added short information for Darwin/MacPorts and contribs.

  * contrib/hbmysql/Makefile
  * contrib/gtalleg/Makefile
  * contrib/rddsql/sddmy/Makefile
  * contrib/rddsql/sddpg/Makefile
  * contrib/hbpgsql/Makefile
    + Enabled on Darwin (for MacPorts).

  * include/hbdefs.h
  * contrib/hbfimage/fi_wrp.c
  * contrib/hbfimage/Makefile
    + Enabled on Darwin (for MacPorts).
    + Added ugly hack to make it compile on Darwin.

  * contrib/hbtpathy/Makefile
    + Enabled on Darwin.
2009-03-08 17:11:19 +00:00

41 lines
766 B
Makefile

#
# $Id$
#
ROOT = ../../
LIBNAME=hbpgsql
ifeq ($(HB_INC_PGSQL),)
ifeq ($(HB_XBUILD),)
HB_INC_PGSQL = /usr/include /usr/local/pgsql/include /usr/local/pgsql/include/libpq /usr/include/pgsql /usr/include/postgresql /postgres/include /opt/local/include/postgresql83
endif
endif
HB_INC_PGSQL_OK += $(foreach d, $(HB_INC_PGSQL), $(if $(wildcard $(d)/libpq-fe.h),$(d),))
ifneq ($(strip $(HB_INC_PGSQL_OK)),)
HB_USER_CFLAGS += $(foreach d, $(HB_INC_PGSQL_OK), -I$(d))
C_SOURCES=\
postgres.c \
PRG_SOURCES=\
tpostgre.prg \
pgrdd.prg \
PRG_HEADERS=\
postgres.ch \
include $(TOP)$(ROOT)config/header.cf
INSTALL_RULE_HEADERS := $(INSTALL_RULE)
include $(TOP)$(ROOT)config/lib.cf
install::
$(INSTALL_RULE_HEADERS)
else
include $(TOP)$(ROOT)config/none.cf
endif