# $Id: Makefile,v 1.3 2008/01/22 22:33:48 carvalho Exp $

# configure for BLAS and LAPACK
LAPACKLIBS = -lblas -llapack -lg2c

# no need to edit below here
F77LIB = f77stat/libf77stat.a
MODULE_big = poststat
DATA_built = poststat.sql
OBJS = poststat.o $(F77LIB)
SHLIB_LINK = -L./f77stat -lf77stat $(LAPACKLIBS)

PGXS := $(shell pg_config --pgxs)
include $(PGXS)

$(F77LIB) :
	cd f77stat && make && make clean
