2 # Copyright 2009 Jonathan Clarke <jonathan@phillipoux.net>.
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted only as authorized by the OpenLDAP
9 # A copy of this license is available in the file LICENSE in the
10 # top-level directory of the distribution or, alternatively, at
11 # <http://www.OpenLDAP.org/license.html>.
13 CPPFLAGS+=-I../../../include -I../../../servers/slapd
14 CPPFLAGS+=-DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC
16 LIBTOOL=../../../libtool
22 lastbind.lo: lastbind.c
23 $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?
25 lastbind.la: lastbind.lo
26 $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
27 -rpath $(prefix)/lib -module -o $@ $?
30 rm -rf lastbind.lo lastbind.la lastbind.o .libs/
33 mkdir -p $(prefix)/libexec/openldap
34 $(LIBTOOL) --mode=install cp lastbind.la $(prefix)/libexec/openldap