From 8df3b043ba7c2ac98d953036829e197e3970913e Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Tue, 1 Sep 2009 02:05:19 +0000 Subject: [PATCH] Portability fixes. Now has a clean and install target. --- contrib/slapd-modules/nssov/Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/contrib/slapd-modules/nssov/Makefile b/contrib/slapd-modules/nssov/Makefile index a20eb9fdaf..c027891f29 100644 --- a/contrib/slapd-modules/nssov/Makefile +++ b/contrib/slapd-modules/nssov/Makefile @@ -30,7 +30,14 @@ INCS=$(LDAP_INC) $(NLDAPD_INC) LDAP_LIB=-lldap_r -llber LIBS=$(LDAP_LIB) -all: nssov.la +prefix=/usr/local +ldap_subdir=/openldap +exec_prefix=$(prefix) +libdir=$(exec_prefix)/lib +libexecdir=$(prefix)/libexec +moduledir = $(libexecdir)$(ldap_subdir) + +all: install XOBJS = tio.lo @@ -49,4 +56,11 @@ $(OBJS): nssov.h nssov.la: $(OBJS) $(XOBJS) $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \ - -rpath /usr/local/libexec/openldap -module -o $@ $(OBJS) $(XOBJS) $(LIBS) + -rpath $(libdir) -module -o $@ $(OBJS) $(XOBJS) $(LIBS) + +install: nssov.la + mkdir -p $(DESTDIR)$(moduledir) + $(LIBTOOL) --mode=install cp nssov.la $(DESTDIR)$(moduledir) + +clean: + rm -f *.*o *.la .libs/* -- 2.39.5