]> git.sur5r.net Git - openldap/blob - contrib/slapd-modules/autogroup/Makefile
Merge remote branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
[openldap] / contrib / slapd-modules / autogroup / Makefile
1 LIBTOOL=../../../libtool
2
3 CPPFLAGS+=-I../../../include -I../../../servers/slapd
4
5 ldap_subdir = openldap
6 prefix=/usr/local
7 exec_prefix = $(prefix)
8 libdir = $(exec_prefix)/lib
9 libexecdir = $(exec_prefix)/libexec
10 moduledir = $(exec_prefix)/libexec/$(ldap_subdir)
11
12 all: autogroup.la
13
14 autogroup.lo:   autogroup.c
15         $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?
16
17 autogroup.la:   autogroup.lo
18         $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
19         -rpath $(libdir) -module -o $@ $? 
20
21 clean:
22         rm -f autogroup.lo autogroup.la
23
24 install: autogroup.la
25         mkdir -p $(DESTDIR)$(moduledir)
26         $(LIBTOOL) --mode=install cp autogroup.la $(DESTDIR)$(moduledir)
27         $(LIBTOOL) --finish $(DESTDIR)$(moduledir)