1# contrib/pcp/Makefile 2prefix := /usr/local 3MODULE_big = pgpool_adm 4OBJS = pgpool_adm.o 5PG_CPPFLAGS = -I$(libpq_srcdir) -I../../include/pcp 6 7EXTENSION = pgpool_adm 8DATA = pgpool_adm--1.0.sql 9SHLIB_LINK = -L../../libs/pcp/.libs -lpcp -Wl,--as-needed -Wl,-rpath,'${prefix}/lib',--enable-new-dtags 10# if you are using PostgreSQL 8.0 or later, 11# using pg_config is recommended. 12# if you are not, comment out following line and... 13USE_PGXS = true 14# set top_builddir to the PostgreSQL build source tree top. 15# (for example /usr/local/src/postgresql-8.4) 16top_builddir = ../.. 17 18ifdef USE_PGXS 19PG_CONFIG ?= pg_config 20PGXS := $(shell $(PG_CONFIG) --pgxs) 21include $(PGXS) 22else 23subdir = contrib/pgpool_adm 24#top_builddir = ../.. 25include $(top_builddir)/src/Makefile.global 26include $(top_srcdir)/contrib/contrib-global.mk 27endif 28