2011-02-05 08:22:26 +08:00
|
|
|
# $OpenLDAP$
|
2011-02-05 07:59:44 +08:00
|
|
|
# Copyright 2009 Jonathan Clarke <jonathan@phillipoux.net>.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
# Public License.
|
|
|
|
#
|
|
|
|
# A copy of this license is available in the file LICENSE in the
|
|
|
|
# top-level directory of the distribution or, alternatively, at
|
|
|
|
# <http://www.OpenLDAP.org/license.html>.
|
|
|
|
|
|
|
|
CPPFLAGS+=-I../../../include -I../../../servers/slapd
|
|
|
|
CPPFLAGS+=-DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC
|
|
|
|
#LIBTOOL=libtool
|
|
|
|
LIBTOOL=../../../libtool
|
|
|
|
|
2011-03-24 15:01:17 +08:00
|
|
|
prefix=/usr/local
|
2011-02-05 07:59:44 +08:00
|
|
|
|
|
|
|
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 \
|
2011-03-24 15:01:17 +08:00
|
|
|
-rpath $(prefix)/lib -module -o $@ $?
|
2011-02-05 07:59:44 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf lastbind.lo lastbind.la lastbind.o .libs/
|
2011-03-24 15:01:17 +08:00
|
|
|
|
|
|
|
install: lastbind.la
|
|
|
|
mkdir -p $(prefix)/libexec/openldap
|
2011-03-26 03:39:08 +08:00
|
|
|
$(LIBTOOL) --mode=install cp lastbind.la $(prefix)/libexec/openldap
|