PROGRAM = pg_readahead
OBJS    = pg_readahead.o pageinfo.o relpath.o

PG_CPPFLAGS = 
PG_LIBS = \
	$(top_srcdir)/src/port/sprompt.o \
	$(top_srcdir)/src/backend/utils/hash/pg_crc.o

DOCS = README.pg_readahead

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

