]> git.sur5r.net Git - openldap/commitdiff
More for ITS#6238 add install rule
authorHoward Chu <hyc@openldap.org>
Thu, 24 Mar 2011 07:01:17 +0000 (07:01 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 24 Mar 2011 07:01:17 +0000 (07:01 +0000)
contrib/slapd-modules/lastbind/Makefile

index 6386f350aa94bd1001e5d46da19c7949ac9328f5..e0f1b3e542b5fcd5dcf1f5fcbcfa824c078a3b07 100644 (file)
@@ -15,6 +15,7 @@ CPPFLAGS+=-DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC
 #LIBTOOL=libtool
 LIBTOOL=../../../libtool
 
+prefix=/usr/local
 
 all: lastbind.la
 
@@ -23,7 +24,11 @@ lastbind.lo:    lastbind.c
 
 lastbind.la:    lastbind.lo
        $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
-                  -rpath $(PREFIX)/lib -module -o $@ $?
+                  -rpath $(prefix)/lib -module -o $@ $?
 
 clean:
        rm -rf lastbind.lo lastbind.la lastbind.o .libs/
+
+install: lastbind.la
+       mkdir -p $(prefix)/libexec/openldap
+       $(LIBTOOL) --mode=onstall cp lastbind.la $(prefix)/libexec/openldap