mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
24 lines
583 B
Makefile
24 lines
583 B
Makefile
PROGRAMS= mail500
|
|
|
|
SRCS= main.c
|
|
XSRCS= version.c
|
|
OBJS= main.o
|
|
|
|
LDAP_INCDIR= ../../include
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
mail500 : version.o
|
|
$(CC) $(LDFLAGS) -o $@ version.o $(OBJS) $(LIBS)
|
|
|
|
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 > $@)
|
|
|
|
install: $(PROGRAMS) FORCE
|
|
-$(MKDIR) -p $(libexecdir)
|
|
$(INSTALL) $(INSTALLFLAGS) -m 755 mail500 $(libexecdir)
|