1
# $OpenLDAP: pkg/ldap/contrib/slapd-modules/allowed/Makefile,v 1.1.2.2 2009/08/25 23:39:37 quanah Exp $
2
# This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
# Copyright 1998-2009 The OpenLDAP Foundation.
5
# Copyright 2004 Howard Chu, Symas Corp. All Rights Reserved.
7
# Redistribution and use in source and binary forms, with or without
8
# modification, are permitted only as authorized by the OpenLDAP
11
# A copy of this license is available in the file LICENSE in the
12
# top-level directory of the distribution or, alternatively, at
13
# <http://www.OpenLDAP.org/license.html>.
15
PREFIX=/opt/openldap-HEAD
17
LIBTOOL=../../../libtool
21
DEFS=-DSLAPD_OVER_ALLOWED=SLAPD_MOD_DYNAMIC
23
LDAP_INC=-I../../../include -I../../../servers/slapd
26
LDAP_LIB=-lldap_r -llber -L../../../lib
34
$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
36
allowed.la: allowed.lo
37
$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
38
-rpath $(PREFIX)/lib -module -o $@ $? $(LIBS)
41
rm -f allowed.o allowed.lo allowed.la
44
mkdir -p $(PREFIX)/libexec/openldap
45
$(LIBTOOL) --mode=install cp allowed.la $(PREFIX)/libexec/openldap
46
$(LIBTOOL) --finish $(PREFIX)/libexec/openldap