# $Header: /cvsroot/pgpool/pgpool-II/sql/Makefile,v 1.1 2011/02/16 05:51:29 t-ishii Exp $
#
# pgpool: a language independent connection pool server for PostgreSQL
# written by Tatsuo Ishii
#
# Copyright (c) 2003-2011	PgPool Global Development Group
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and that both that copyright notice and this permission
# notice appear in supporting documentation, and that the name of the
# author not be used in advertising or publicity pertaining to
# distribution of the software without specific, written prior
# permission. The author makes no representations about the
# suitability of this software for any purpose.  It is provided "as
# is" without express or implied warranty.
#
# Makefile for sql/ directory.

subdir = sql

# if you are using PostgreSQL 8.0 or later,
# using pg_config is recommended.
# if you are not, comment out following line and...
USE_PGXS = true
# set top_builddir to the PostgreSQL build source tree top.
# (for example /usr/local/src/postgresql-9.0) 
top_builddir = ..

ifdef USE_PGXS
PGXS = $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif

SUBDIRS = \
		pgpool-recovery \
		pgpool-regclass	\
		pgpool-walrecrunning

$(recurse)
