4 PGINC=/usr/include/postgresql
7 CFLAGS=-I$(PGINC) $(PGVERSION)
9 # If changed, also change postgresql.script
10 INSTALLDIR=. #./../../Mir/src
13 install: dupetrigger.so
14 cp dupetrigger.so $(INSTALLDIR)
15 chmod 644 $(INSTALLDIR)/dupetrigger.so
17 # Now, change the path to dupetrigger.so in postgresql.script to the
18 # absolute path where dupetrigger.so is installed (this
19 # is typically ../../../Mir/src)
21 dupetrigger.so: dupetrigger.o
22 $(CC) -shared -dynamic -o dupetrigger.so dupetrigger.o
25 rm -rf dupetrigger.o dupetrigger.so