]> git.sur5r.net Git - openldap/blob - contrib/slapd-modules/lastbind/Makefile
ITS#6879
[openldap] / contrib / slapd-modules / lastbind / Makefile
1 # $OpenLDAP$
2 # Copyright 2009 Jonathan Clarke <jonathan@phillipoux.net>.
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted only as authorized by the OpenLDAP
7 # Public License.
8 #
9 # A copy of this license is available in the file LICENSE in the
10 # top-level directory of the distribution or, alternatively, at
11 # <http://www.OpenLDAP.org/license.html>.
12
13 CPPFLAGS+=-I../../../include -I../../../servers/slapd 
14 CPPFLAGS+=-DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC
15 #LIBTOOL=libtool
16 LIBTOOL=../../../libtool
17
18 prefix=/usr/local
19
20 all: lastbind.la
21
22 lastbind.lo:    lastbind.c
23         $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?
24
25 lastbind.la:    lastbind.lo
26         $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
27                    -rpath $(prefix)/lib -module -o $@ $?
28
29 clean:
30         rm -rf lastbind.lo lastbind.la lastbind.o .libs/
31
32 install: lastbind.la
33         mkdir -p $(prefix)/libexec/openldap
34         $(LIBTOOL) --mode=install cp lastbind.la $(prefix)/libexec/openldap