More for ITS#6238 add install rule

This commit is contained in:
Howard Chu 2011-03-24 07:01:17 +00:00
parent fa8d57d492
commit db5c70f89d

View 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