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>.
16 # craft according to your installation
17 LDAP_BUILD=../../../../ldap-devel
19 LIBTOOL=$(LDAP_BUILD)/libtool
23 DEFS=-DSLAPD_OVER_RDNVAL=2
25 LDAP_INC=-I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd \
26 -I$(LDAP_BUILD)/include
29 LDAP_LIB=-lldap_r -llber
36 libdir=$(exec_prefix)/lib
37 libexecdir=$(exec_prefix)/libexec
38 moduledir = $(libexecdir)$(ldap_subdir)
43 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
46 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
47 -rpath $(moduledir) -module -o $@ $? $(LIBS)
50 rm -f rdnval.o rdnval.lo rdnval.la
53 mkdir -p $(DESTDIR)$(moduledir)
54 $(LIBTOOL) --mode=install cp rdnval.la $(DESTDIR)$(moduledir)