CC = gcc INCLUDES = -I$(shell pg_config --includedir) -I$(shell pg_config --includedir-server) CFLAGS = $(INCLUDES) -Wall -O2 all: pg_ident.so pg_ident.so: pg_ident.o gcc -shared -lident -o $@ $< clean: rm -f *.o *.so