]> git.sur5r.net Git - openldap/blob - clients/mail500/Makefile.in
Update build environment:
[openldap] / clients / mail500 / Makefile.in
1 PROGRAMS= mail500
2
3 SRCS=   main.c
4 XSRCS= version.c
5 OBJS=   main.o
6
7 LDAP_INCDIR= ../../include
8 LDAP_LIBDIR= ../../libraries
9
10 mail500 : version.o
11         $(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
12
13 version.c: ${OBJS} $(LDAP_LIBDEPEND)
14         $(RM) $@
15         (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
16             t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
17             -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
18             -e "s|%VERSION%|$${v}|" \
19             < $(srcdir)/Version.c > $@)
20
21 install-local: $(PROGRAMS) FORCE
22         -$(MKDIR) $(libexecdir)
23         $(LTINSTALL) $(INSTALLFLAGS) -m 755 mail500 $(libexecdir)