1998-10-25 09:41:42 +08:00
|
|
|
SRCS= main.c
|
|
|
|
XSRCS= version.c
|
|
|
|
OBJS= main.o
|
|
|
|
PROGRAMS= in.xfingerd
|
|
|
|
|
|
|
|
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
|
|
|
in.xfingerd : version.o
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
version.c: ${OBJS} ${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 > $@)
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
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 in.xfingerd $(libexecdir)
|