# $Id: Makefile,v 1.4 1999/08/11 08:15:59 christof Exp $

CXXFLAGS=-g
PGFLAGS=-I/usr/local/pgsql/include

%.o: %.pgcc
	ecpg -o $*.cc $*.pgcc
	$(CXX) $(PGFLAGS) $(CXXFLAGS) -c $*.cc -o $*.o

all: test
test: test.o
	$(CXX) -o $@ $^ -lecpg -lcrypt

clean:
	rm -f *~ *.o test test.cc

distclean: clean
