1998-10-25 09:41:42 +08:00
|
|
|
PROGRAMS= mail500
|
|
|
|
|
|
|
|
SRCS= main.c
|
|
|
|
XSRCS= version.c
|
|
|
|
OBJS= main.o
|
|
|
|
|
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
1999-01-10 10:25:41 +08:00
|
|
|
XLIBS = $(LDAP_LIBS)
|
|
|
|
XXLIBS = $(KRB_LIBS)
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
mail500 : 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 mail500 $(libexecdir)
|