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