#-------------------------------------------------------------------------
#
# Makefile for shared object
#
# $Id: Makefile,v 1.1.1.1 2001/08/30 04:23:39 t-ishii Exp $
#
#-------------------------------------------------------------------------

top_builddir = /usr/local/src/pgsql/7.1.3/postgresql-7.1.3
include $(top_builddir)/src/Makefile.global

CFLAGS +=

# Shared library parameters
NAME= pgstattuple
SO_MAJOR_VERSION= 1
SO_MINOR_VERSION= 0
OBJS = $(NAME).o
SHLIB_LINK =

# Shared library stuff
include $(top_srcdir)/src/Makefile.shlib

%.sql: %.source
	rm -f $@; \
	C=`pwd`; \
	sed -e "s:_OBJWD_:$$C:g" \
	    -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
	    -e "s:_NAME_:$(NAME):g" \
	< $< > $@

all: $(shlib) create.sql
install: install-lib-shared
clean distclean: clean-lib
	rm -f $(OBJS) $(NAME)$(DLSUFFIX) create.sql
