
# NOTE: need "catalog/pg_type.h" for xxxOID constants
PGSRCINCDIR=/usr/src/pgsql/src/include

# standard system include
PGINCDIR=/usr/local/pgsql/include

PGINC=-Iinclude -I$(PGINCDIR) -I$(PGINCDIR)/internal \
      -I$(PGINCDIR)/server -I$(PGSRCINCDIR)

all:
	gcc -Wall -O2 -D_GNU_SOURCE $(PGINC) -o pgtest *.c -L/usr/local/pgsql/lib -lpq

clean:
	@rm -f pgtest *.o

