CPPFLAGS+=-I../../../include -I../../../servers/slapd
CPPFLAGS+=-DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC
LIBTOOL=../../../libtool
prefix=/usr/local
all: lastbind.la
lastbind.lo: lastbind.c
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?
lastbind.la: lastbind.lo
$(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
-rpath $(prefix)/lib -module -o $@ $?
clean:
rm -rf lastbind.lo lastbind.la lastbind.o .libs/
install: lastbind.la
mkdir -p $(prefix)/libexec/openldap
$(LIBTOOL) --mode=install cp lastbind.la $(prefix)/libexec/openldap