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
10 INSTALL = /usr/bin/install
17 PROGRAMS = pw-kerberos.la pw-netscape.la pw-radius.la pw-apr1.la
18 MANPAGES = slapd-pw-radius.5
25 libdir=$(exec_prefix)/lib
26 libexecdir=$(exec_prefix)/libexec
27 moduledir = $(libexecdir)$(ldap_subdir)
28 mandir = $(exec_prefix)/share/man
29 man5dir = $(mandir)/man5
34 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
38 pw-kerberos.la: kerberos.lo
39 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
40 -rpath $(moduledir) -module -o $@ $? -lkrb5
42 pw-netscape.la: netscape.lo
43 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
44 -rpath $(moduledir) -module -o $@ $?
46 pw-radius.la: radius.lo
47 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
48 -rpath $(moduledir) -module -o $@ $? -lradius
51 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
52 -rpath $(moduledir) -module -o $@ $?
55 rm -rf *.o *.lo *.la .libs
57 install: install-lib install-man FORCE
59 install-lib: $(PROGRAMS)
60 mkdir -p $(DESTDIR)$(moduledir)
61 for p in $(PROGRAMS) ; do \
62 $(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \
65 install-man: $(MANPAGES)
66 mkdir -p $(DESTDIR)$(man5dir)
67 $(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man5dir)