2 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 # Copyright 1998-2011 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
16 OPT=-DSLAPD_OVER_NOOPSRCH=2 -g -O2
17 #LIBTOOL=../../../../ldap-devel/libtool
18 #OPT=-DSLAPD_OVER_NOOPSRCH=2 -g -O0
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)
39 noopsrch.lo: noopsrch.c
40 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
42 noopsrch.la: noopsrch.lo
43 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
44 -rpath $(moduledir) -module -o $@ $? $(LIBS)
47 rm -f noopsrch.lo noopsrch.la
50 mkdir -p $(DESTDIR)$(moduledir)
51 $(LIBTOOL) --mode=install cp noopsrch.la $(DESTDIR)$(moduledir)