X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=dbscripts%2Fdupetrigger%2FMakefile-dist;h=aa3cd0d5581e67203ba7dfd1d875098c892e2782;hb=b3d723e160d1f7580edbf7b044b87a915ba0d97c;hp=d4d0f6052c4a8730009ccac3325cf8ce95801483;hpb=c95b1226d5e3dedf4eaaacbbd670a5938e41e0cc;p=mir.git diff --git a/dbscripts/dupetrigger/Makefile-dist b/dbscripts/dupetrigger/Makefile-dist index d4d0f605..aa3cd0d5 100755 --- a/dbscripts/dupetrigger/Makefile-dist +++ b/dbscripts/dupetrigger/Makefile-dist @@ -1,22 +1,26 @@ # Makefile -CC=gcc -PGINC=/usr/include/postgresql -PGVERSION=-DPG70 +# Set the following directory so that it contains spi.h and trigger.h +PGINC=/usr/include/postgresql/server + +#PGVERSION=-DPG70 #PGVERSION=-DPG71 -CFLAGS=-I$(PGINC) $(PGVERSION) +PGVERSION=-DPG72 # If changed, also change postgresql.script -INSTALLDIR=. #./../../Mir/src +INSTALLDIR=/var/lib/postgres/data + +CC=gcc +CFLAGS=-I$(PGINC) $(PGVERSION) + install: dupetrigger.so cp dupetrigger.so $(INSTALLDIR) chmod 644 $(INSTALLDIR)/dupetrigger.so # # Now, change the path to dupetrigger.so in postgresql.script to the - # absolute path where dupetrigger.so is installed (this - # is typically ../../../Mir/src) + # absolute path where dupetrigger.so is installed (${INSTALLDIR}) dupetrigger.so: dupetrigger.o $(CC) -shared -dynamic -o dupetrigger.so dupetrigger.o