1999-09-02 08:52:43 +08:00
|
|
|
# $OpenLDAP$
|
|
|
|
|
1999-10-28 15:31:59 +08:00
|
|
|
UNIX_PRGS = mail500
|
|
|
|
PROGRAMS = $(@PLAT@_PRGS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
SRCS= main.c
|
|
|
|
XSRCS= version.c
|
|
|
|
OBJS= main.o
|
|
|
|
|
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
2002-02-11 06:42:51 +08:00
|
|
|
XLIBS = $(LDAP_L)
|
1999-08-05 10:25:19 +08:00
|
|
|
XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
|
1999-01-10 10:25:41 +08:00
|
|
|
|
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
|
|
|
|
2002-02-11 06:42:51 +08:00
|
|
|
version.c: $(OBJS) $(XLIBS)
|
1999-04-28 13:40:17 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) mail500 > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
install-local: $(PROGRAMS) FORCE
|
1999-09-23 05:51:30 +08:00
|
|
|
-$(MKDIR) $(DESTDIR)$(libexecdir)
|
1999-10-28 15:31:59 +08:00
|
|
|
@( \
|
|
|
|
for prg in $(PROGRAMS); do \
|
2000-05-31 02:23:56 +08:00
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
|
1999-10-28 15:31:59 +08:00
|
|
|
$(DESTDIR)$(libexecdir); \
|
|
|
|
done \
|
|
|
|
)
|
|
|
|
|