added producer and open keys (i'll wait with the templates, dont worry) and
[mir.git] / dbscripts / dupetrigger / Makefile-dist
1 # Makefile
2
3 CC=gcc
4 PGINC=/usr/include/postgresql
5 PGVERSION=-DPG70
6 #PGVERSION=-DPG71
7 CFLAGS=-I$(PGINC) $(PGVERSION)
8
9 # If changed, also change postgresql.script
10 INSTALLDIR=. #./../../Mir/src
11
12
13 install: dupetrigger.so
14         cp dupetrigger.so $(INSTALLDIR)
15         chmod 644 $(INSTALLDIR)/dupetrigger.so
16         #
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)
20
21 dupetrigger.so: dupetrigger.o
22         $(CC) -shared -dynamic -o dupetrigger.so dupetrigger.o
23
24 clean:
25         rm -rf dupetrigger.o dupetrigger.so
26
27
28 tidy: clean
29         rm -rf *~
30