1999-03-22 22:17:57 +08:00
|
|
|
PROGRAMS= rp500 fax500 xrpcomp.tmp
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
SRCS= main.c faxtotpc.c rp500.c
|
|
|
|
XSRCS=fax5version.c rpversion.c
|
|
|
|
|
|
|
|
FAX5OBJS = main.o faxtotpc.o
|
|
|
|
RPOBJS = rp500.o faxtotpc.o
|
|
|
|
|
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
1999-01-14 09:31:43 +08:00
|
|
|
XLIBS = -lldap -llber -llutil
|
|
|
|
XXLIBS = $(KRB_LIBS) $(LUTIL_LIBS)
|
1999-01-10 10:25:41 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
rp500 : rpversion.o
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTLINK) -o $@ $(RPOBJS) rpversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
fax500 : fax5version.o
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTLINK) -o $@ $(RPOBJS) fax5version.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
rpversion.c: ${RPOBJS} $(LDAP_LIBDEPEND)
|
|
|
|
$(RM) $@
|
|
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
|
|
|
|
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
|
|
-e "s|%VERSION%|$${v}|" \
|
|
|
|
< $(srcdir)/Versionrp.c > $@)
|
|
|
|
|
|
|
|
fax5version.c: ${FAX5OBJS} $(LDAP_LIBDEPEND)
|
|
|
|
$(RM) $@
|
|
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
|
|
|
|
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
|
|
-e "s|%VERSION%|$${v}|" \
|
|
|
|
< $(srcdir)/Version.c > $@)
|
|
|
|
|
1999-03-22 22:17:57 +08:00
|
|
|
xrpcomp.tmp: xrpcomp
|
|
|
|
$(SED) -e 's%\%LIBEXECDIR\%%$(libexecdir)%' $(srcdir)/xrpcomp > xrpcomp.tmp
|
|
|
|
|
|
|
|
install-local: $(PROGRAMS) FORCE
|
1998-11-30 03:48:28 +08:00
|
|
|
-$(MKDIR) $(libexecdir)
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 rp500 $(libexecdir)
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 fax500 $(libexecdir)
|
1999-03-22 22:17:57 +08:00
|
|
|
$(INSTALL) $(INSTALLFLAGS) -m 755 xrpcomp.tmp $(libexecdir)/xrpcomp
|