]> git.sur5r.net Git - openldap/commitdiff
libtoolize autogroup
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 28 Apr 2009 01:36:57 +0000 (01:36 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 28 Apr 2009 01:36:57 +0000 (01:36 +0000)
add install rules for autogroup and smbk5pwd

contrib/slapd-modules/autogroup/Makefile
contrib/slapd-modules/smbk5pwd/Makefile

index 1efd4fe662e428db94758a3292df9b54e0b03314..5cee54ef5a3e63161b5f1c23c54c225775584837 100644 (file)
@@ -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
index a86792b242ae1f6f494d01fc5a8589411ab3023d..57f5a767f4b8d73073e9df08376f45475c3fc5a2 100644 (file)
@@ -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