# $Id: Makefile,v 1.6 2009/09/19 16:24:05 carvalho Exp $

LIBSTREE = stree/libstree.a

MODULE_big = postbio
DATA_built = postbio.sql
OBJS = postbio.o intinterval.o stree.o $(LIBSTREE)
SHLIB_LINK = -L./stree -lstree

#PG_CONFIG = /usr/local/pgsql/bin/pg_config
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

$(LIBSTREE):
	cd stree && make && make clean

