2000-06-09 08:03:39 +08:00
|
|
|
# $OpenLDAP$
|
|
|
|
|
2000-06-09 08:43:24 +08:00
|
|
|
UNIX_PRGS = maildap
|
2000-06-09 08:03:39 +08:00
|
|
|
PROGRAMS = $(@PLAT@_PRGS)
|
|
|
|
|
|
|
|
SRCS= main.c
|
|
|
|
XSRCS= version.c
|
|
|
|
OBJS= main.o
|
|
|
|
|
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
|
|
|
XLIBS = -lldap -llber -llutil
|
|
|
|
XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
|
|
|
|
|
2000-06-09 08:43:24 +08:00
|
|
|
maildap : version.o
|
2000-06-09 08:03:39 +08:00
|
|
|
$(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
version.c: ${OBJS} $(LDAP_LIBDEPEND)
|
|
|
|
@-$(RM) $@
|
2000-06-09 08:43:24 +08:00
|
|
|
$(MKVERSION) maildap > $@
|
2000-06-09 08:03:39 +08:00
|
|
|
|
|
|
|
install-local: $(PROGRAMS) FORCE
|
|
|
|
-$(MKDIR) $(DESTDIR)$(libexecdir)
|
|
|
|
@( \
|
|
|
|
for prg in $(PROGRAMS); do \
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(libexecdir); \
|
|
|
|
done \
|
|
|
|
)
|
|
|
|
|