# $Id: Makefile,v 1.5 1999/08/23 08:09:19 cvs_christof Exp $

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

%.o: %.pgcc
	ecpg $(PGFLAGS) -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
