mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 10:09:43 -05:00
Portability fixes. Now has a clean and install target.
This commit is contained in:
parent
f6ba3b246a
commit
8df3b043ba
1 changed files with 16 additions and 2 deletions
|
|
@ -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/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue