PROGRAMS= mail500

SRCS=	main.c
XSRCS= version.c
OBJS=	main.o

LDAP_INCDIR= ../../include
LDAP_LIBDIR= ../../libraries

XLIBS =  -lldap -llber -llutil
XXLIBS	= $(SECURITY_LIBS) $(LUTIL_LIBS)

mail500 : version.o
	$(LTLINK) -o $@ version.o $(OBJS) $(LIBS)

version.c: ${OBJS} $(LDAP_LIBDEPEND)
	@-$(RM) $@
	$(MKVERSION) mail500 > $@

install-local: $(PROGRAMS) FORCE
	-$(MKDIR) $(libexecdir)
	$(LTINSTALL) $(INSTALLFLAGS) -m 755 mail500 $(libexecdir)
