3 # Set the following directory so that it contains spi.h and trigger.h
4 PGINC=/usr/include/postgresql/server
9 # If changed, also change postgresql.script
10 INSTALLDIR=/var/lib/postgres/data
15 CFLAGS=-I$(PGINC) $(PGVERSION)
17 install: dupetrigger.so
18 cp dupetrigger.so $(INSTALLDIR)
19 chmod 644 $(INSTALLDIR)/dupetrigger.so
21 # Now, change the path to dupetrigger.so in postgresql.script to the
22 # absolute path where dupetrigger.so is installed (${INSTALLDIR})
24 dupetrigger.so: dupetrigger.o
25 $(CC) -shared -dynamic -o dupetrigger.so dupetrigger.o
28 rm -rf dupetrigger.o dupetrigger.so