6185ec2dd1b6bbc74114773c815b54bd7b1ef466
[mir.git] / dbscripts / dupetrigger / Makefile
1 # Makefile
2
3 CC=gcc
4 PGINC=/usr/include/postgresql
5 CFLAGS=-I$(PGINC)
6
7 # If changed, also change postgresql.script
8 INSTALLDIR=../../../Mir/src
9
10
11 install: dupetrigger.so
12         cp dupetrigger.so $(INSTALLDIR)
13         chmod 755 $(INSTALLDIR)/dupetrigger.so
14         #
15         # Now, change the path to dupetrigger.so in postgresql.script to the
16         # absolute path where dupetrigger.so is installed (this 
17         # is typically ../../../Mir/src)
18
19 dupetrigger.so: dupetrigger.o
20         $(CC) -shared -dynamic -o dupetrigger.so dupetrigger.o
21
22 clean:
23         rm -rf dupetrigger.o dupetrigger.so
24
25
26 tidy: clean
27         rm -rf *~
28