5 LDAP_INC = -I$(LDAP_BUILD)/include -I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd
6 LDAP_LIB = $(LDAP_BUILD)/libraries/libldap_r/libldap_r.la \
7 $(LDAP_BUILD)/libraries/liblber/liblber.la
9 LIBTOOL = $(LDAP_BUILD)/libtool
16 PROGRAMS = posixgroup.la gssacl.la
23 libdir=$(exec_prefix)/lib
24 libexecdir=$(exec_prefix)/libexec
25 moduledir = $(libexecdir)$(ldap_subdir)
30 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
34 posixgroup.la: posixgroup.lo
35 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
36 -rpath $(moduledir) -module -o $@ $? $(LIBS)
39 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
40 -rpath $(moduledir) -module -o $@ $? $(LIBS)
43 rm -rf *.o *.lo *.la .libs
46 mkdir -p $(DESTDIR)$(moduledir)
47 for p in $(PROGRAMS) ; do \
48 $(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \