#-------------------------------------------------------------------------
#
# Makefile for tokana shared object
#
# $Id: Makefile,v 1.1.1.1 2001/05/06 11:52:26 t-ishii Exp $
#
#-------------------------------------------------------------------------

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

# Add Include dir if libnamazu.h etc. does not live in /usr/include/namazu
CFLAGS +=

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

# 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

