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
21 lastbind.lo: lastbind.c
22 $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?
24 lastbind.la: lastbind.lo
25 $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
26 -rpath $(PREFIX)/lib -module -o $@ $?
29 rm -rf lastbind.lo lastbind.la lastbind.o .libs/