4 LDAP_BUILD = $(LDAP_SRC)
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 = pw-kerberos.la pw-netscape.la pw-radius.la pw-apr1.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 pw-kerberos.la: kerberos.lo
35 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
36 -rpath $(moduledir) -module -o $@ $? -lkrb5
38 pw-netscape.la: netscape.lo
39 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
40 -rpath $(moduledir) -module -o $@ $?
42 pw-radius.la: radius.lo
43 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
44 -rpath $(moduledir) -module -o $@ $? -lradius
47 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
48 -rpath $(moduledir) -module -o $@ $?
51 rm -rf *.o *.lo *.la .libs
54 mkdir -p $(DESTDIR)$(moduledir)
55 for p in $(PROGRAMS) ; do \
56 $(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \