2 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 # Copyright 1998-2010 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 LIBTOOL=../../../libtool
17 #LIBTOOL=../../../../ldap-devel/libtool
21 LDAP_INC=-I../../../include -I../../../servers/slapd
22 #LDAP_INC=-I../../../include -I../../../servers/slapd -I../../../../ldap-devel/include
25 LDAP_LIB=-lldap_r -llber
32 libdir=$(exec_prefix)/lib
33 libexecdir=$(exec_prefix)/libexec
34 moduledir = $(libexecdir)$(ldap_subdir)
40 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
42 authzid.la: authzid.lo
43 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
44 -rpath $(moduledir) -module -o $@ $? $(LIBS)
47 rm -f authzid.lo authzid.la
50 mkdir -p $(DESTDIR)$(moduledir)
51 $(LIBTOOL) --mode=install cp authzid.la $(DESTDIR)$(moduledir)