default: text-output.so

clean:
	rm -f text-output.o text-output.so

text-output.o:
	gcc -O2 -c -fpic -I../../src -I../../src/backend text-output.c

text-output.so: text-output.o
	ld -shared --whole-archive -o text-output.so text-output.o

install: text-output.so
	install text-output.so $(ROOTDIR)/usr/lib/postgres95
	
