]> git.sur5r.net Git - openldap/blobdiff - clients/rcpt500/Makefile.in
Add configure tests for ssize_t and caddr_t and remove NT preamble
[openldap] / clients / rcpt500 / Makefile.in
index f5f36a93d0e264ad7b8c1c3f87a6a5a5f56a3369..a1919f84b15af8f9646f072d240146bd6d67e726 100644 (file)
@@ -1,4 +1,8 @@
-PROGRAMS= rcpt500
+# $OpenLDAP$
+
+UNIX_PRGS = rcpt500
+PROGRAMS = $(@PLAT@_PRGS)
+
 SRCS= main.c cmds.c help.c query.c
 XSRCS= version.c
 OBJS= main.o cmds.o help.o query.o
@@ -8,7 +12,7 @@ LDAP_INCDIR= ../../include
 LDAP_LIBDIR= ../../libraries
 
 XLIBS =  -lldap -llber -llutil
-XXLIBS = $(KRB_LIBS) $(LUTIL_LIBS)
+XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
 
 rcpt500 : version.o
        $(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
@@ -18,7 +22,13 @@ version.c: ${OBJS} $(LDAP_LIBDEPEND)
        $(MKVERSION) rcpt500 > $@
 
 install-local: $(PROGRAMS) rcpt500.help FORCE
-       -$(MKDIR) $(libexecdir) $(datadir)
-       $(LTINSTALL) $(INSTALLFLAGS) -m 755 rcpt500 $(libexecdir)
-       -$(MV) $(datadir)/rcpt500.help $(datadir)/rcpt500.help-
-       $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/rcpt500.help $(datadir)
+       -$(MKDIR) $(DESTDIR)$(libexecdir) $(DESTDIR)$(datadir)
+       @(                                                              \
+           for prg in $(PROGRAMS); do                                  \
+               $(LTINSTALL) $(INSTALLFLAGS) -m 755 $$prg$(EXEEXT)      \
+                   $(DESTDIR)$(libexecdir);                            \
+           done                                                        \
+       )
+       -$(MV) $(DESTDIR)$(datadir)/rcpt500.help $(DESTDIR)$(datadir)/rcpt500.help-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/rcpt500.help $(DESTDIR)$(datadir)
+