]> git.sur5r.net Git - openldap/blob - contrib/slapd-modules/authzid/Makefile
Merge remote branch 'origin/mdb.master'
[openldap] / contrib / slapd-modules / authzid / 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 LIBTOOL=../../../libtool
16 OPT=-g -O2
17 #LIBTOOL=../../../../ldap-devel/libtool
18 #OPT=-g -O0
19 CC=gcc
20
21 LDAP_INC=-I../../../include -I../../../servers/slapd
22 #LDAP_INC=-I../../../include -I../../../servers/slapd -I../../../../ldap-devel/include
23 INCS=$(LDAP_INC)
24
25 LDAP_LIB=-lldap_r -llber
26 LIBS=$(LDAP_LIB)
27
28 prefix=/usr/local
29 exec_prefix=$(prefix)
30 ldap_subdir=/openldap
31
32 libdir=$(exec_prefix)/lib
33 libexecdir=$(exec_prefix)/libexec
34 moduledir = $(libexecdir)$(ldap_subdir)
35
36 all:    authzid.la
37
38
39 authzid.lo:     authzid.c
40         $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
41
42 authzid.la:     authzid.lo
43         $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
44         -rpath $(moduledir) -module -o $@ $? $(LIBS)
45
46 clean:
47         rm -f authzid.lo authzid.la
48
49 install: authzid.la
50         mkdir -p $(DESTDIR)$(moduledir)
51         $(LIBTOOL) --mode=install cp authzid.la $(DESTDIR)$(moduledir)
52