From: Emmanuel Dreyfus Date: Sat, 7 Feb 2009 22:10:24 +0000 (+0000) Subject: libtoolize autogroup X-Git-Tag: ACLCHECK_0~865 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b5baf7fd01ac52b13f77a5470c9f555f230f73a9;p=openldap libtoolize autogroup add install rules for autogroup, nops and smbk5pwd --- diff --git a/contrib/slapd-modules/autogroup/Makefile b/contrib/slapd-modules/autogroup/Makefile index 1efd4fe662..5cee54ef5a 100644 --- a/contrib/slapd-modules/autogroup/Makefile +++ b/contrib/slapd-modules/autogroup/Makefile @@ -1,12 +1,18 @@ -CPPFLAGS=-I../../../include -I../../../servers/slapd -#LDFLAGS=-L/usr/local/openldap/lib -#LDFLAGS=-L/home/mszulczynski/autogroup/openldap/lib/ -CC=gcc +CPPFLAGS+=-I../../../include -I../../../servers/slapd -all: autogroup.so +all: autogroup.la -autogroup.so: autogroup.c - $(CC) -shared -fPIC $(CPPFLAGS) $(LDFLAGS) -Wall -o $@ $? +autogroup.lo: autogroup.c + $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $? + +autogroup.la: autogroup.lo + $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \ + -rpath $(PREFIX)/lib -module -o $@ $? clean: - rm autogroup.so + rm -f autogroup.lo autogroup.la + +install: autogroup.la + mkdir -p $(PREFIX)/lib/openldap + $(LIBTOOL) --mode=install cp autogroup.la $(PREFIX)/lib/openldap + $(LIBTOOL) --finish $(PREFIX)/lib diff --git a/contrib/slapd-modules/nops/Makefile b/contrib/slapd-modules/nops/Makefile index f2ffdaaf85..fce44e0c2d 100644 --- a/contrib/slapd-modules/nops/Makefile +++ b/contrib/slapd-modules/nops/Makefile @@ -1,7 +1,7 @@ # $OpenLDAP$ CPPFLAGS+=-I../../../include -I../../../servers/slapd CPPFLAGS+=-DSLAPD_OVER_NOPS=SLAPD_MOD_DYNAMIC -LIBS=-lldap_r -llber -lcrypto +LIBS=-L$(PREFIX)/lib -lldap_r -llber -lcrypto all: nops.la @@ -13,4 +13,11 @@ nops.la: nops.lo -rpath $(PREFIX)/lib -module -o $@ $? $(LIBS) clean: - rm nops.lo nops.la + rm -f nops.lo nops.la + +install: nops.la + mkdir -p $(PREFIX)/lib/openldap + mkdir -p $(PREFIX)/man/man5 + $(LIBTOOL) --mode=install cp nops.la $(PREFIX)/lib/openldap + $(LIBTOOL) --finish $(PREFIX)/lib + cp nops.5 $(PREFIX)/man/man5 diff --git a/contrib/slapd-modules/smbk5pwd/Makefile b/contrib/slapd-modules/smbk5pwd/Makefile index a86792b242..57f5a767f4 100644 --- a/contrib/slapd-modules/smbk5pwd/Makefile +++ b/contrib/slapd-modules/smbk5pwd/Makefile @@ -34,4 +34,12 @@ smbk5pwd.lo: smbk5pwd.c smbk5pwd.la: smbk5pwd.lo $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \ - -rpath /usr/local/libexec/openldap -module -o $@ $? $(LIBS) + -rpath $(PREFIX)/lib -module -o $@ $? $(LIBS) + +clean: + rm -f smbk5pwd.lo smbk5pwd.la + +install: smbk5pwd.la + mkdir -p $(PREFIX)/lib/openldap + $(LIBTOOL) --mode=install cp smbk5pwd.la $(PREFIX)/lib/openldap + $(LIBTOOL) --finish $(PREFIX)/lib