all: test

test.c: test.pgc
	ecpg $<

test: test.c
	gcc -g3 -o test test.c -I /usr/include/postgresql/ -lecpg

clean:
	rm test.c test
