mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
libtoolize autogroup
add install rules for autogroup, nops and smbk5pwd
This commit is contained in:
parent
bdb121c967
commit
b5baf7fd01
3 changed files with 32 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue