From: Emmanuel Dreyfus Date: Sat, 25 Apr 2009 18:19:24 +0000 (+0000) Subject: Add libtoolized makefile X-Git-Tag: ACLCHECK_0~598 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e240d55c07f3c5452379b734f297cf6aa90a6443;p=openldap Add libtoolized makefile --- diff --git a/contrib/slapd-modules/passwd/Makefile b/contrib/slapd-modules/passwd/Makefile new file mode 100644 index 0000000000..afc34e2c06 --- /dev/null +++ b/contrib/slapd-modules/passwd/Makefile @@ -0,0 +1,36 @@ +CPPFLAGS+=-I../../../include -I../../../servers/slapd + +all: kerberos.la netscape.la radius.la + +kerberos.lo: kerberos.c + $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -DHAVE_KRB5 -Wall -c $? + +kerberos.la: kerberos.lo + $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \ + -rpath $(PREFIX)/lib -module -o $@ $? -lkrb5 + +netscape.lo: netscape.c + $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $? + +netscape.la: netscape.lo + $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \ + -rpath $(PREFIX)/lib -module -o $@ $? + +radius.lo: radius.c + $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $? + +radius.la: radius.lo + $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \ + -rpath $(PREFIX)/lib -module -o $@ $? -lradius + +clean: + rm -f kerberos.lo kerberos.la + rm -f netscape.lo netscape.la + rm -f radius.lo radius.la + +install: kerberos.la netscape.la radius.la + mkdir -p $(PREFIX)/lib/openldap + $(LIBTOOL) --mode=install cp kerberos.la $(PREFIX)/lib/openldap + $(LIBTOOL) --mode=install cp netscape.la $(PREFIX)/lib/openldap + $(LIBTOOL) --mode=install cp radius.la $(PREFIX)/lib/openldap + $(LIBTOOL) --finish $(PREFIX)/lib