]> git.sur5r.net Git - openldap/blob - contrib/slapd-modules/allowed/Makefile
Happy New Year!
[openldap] / contrib / slapd-modules / allowed / Makefile
1 # $OpenLDAP$
2 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
3 #
4 # Copyright 1998-2012 The OpenLDAP Foundation.
5 # Copyright 2004 Howard Chu, Symas Corp. All Rights Reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License.
10 #
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>.
14
15 PREFIX=/opt/openldap-HEAD
16
17 LIBTOOL=../../../libtool
18 OPT=-g -O2
19 CC=gcc
20
21 DEFS=-DSLAPD_OVER_ALLOWED=SLAPD_MOD_DYNAMIC
22
23 LDAP_INC=-I../../../include -I../../../servers/slapd
24 INCS=$(LDAP_INC)
25
26 LDAP_LIB=-lldap_r -llber -L../../../lib
27 LDAP_LIB=
28 LIBS=$(LDAP_LIB)
29
30 all:    allowed.la
31
32
33 allowed.lo:     allowed.c
34         $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
35
36 allowed.la:     allowed.lo
37         $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
38         -rpath $(PREFIX)/lib -module -o $@ $? $(LIBS)
39
40 clean:
41         rm -f allowed.o allowed.lo allowed.la
42
43 install: allowed.la
44         mkdir -p $(PREFIX)/libexec/openldap
45         $(LIBTOOL) --mode=install cp allowed.la $(PREFIX)/libexec/openldap
46         $(LIBTOOL) --finish $(PREFIX)/libexec/openldap