PROGRAM= expirer
#
# ZMailer local delivery Transport Agent makefile
#
srcdir = .
SHELL= /bin/sh
CC= gcc
COPTS= -g -O2
CPPFLAGS=
CPPDEP= gcc -MM
TOPDIR= ../..
MAILBIN= $(DESTDIR)/opt/mail/bin
DEFS= -DHAVE_CONFIG_H
EXPIRER_INCL=
INSTALL= /usr/bin/install -c
#
SOURCE= expirer.c
INCL= -I$(srcdir)/$(TOPDIR)/include -I$(TOPDIR)/include -I$(TOPDIR)
CFLAGS= $(COPTS) $(CPPFLAGS) $(DEFS) $(INCL) $(EXPIRER_INCL)
LIBMALLOC=
LIBMALLOCDEB= $(TOPDIR)/libs/libmalloc_d.a
LIB= -L$(TOPDIR)/libs -lta -lzm -lzc $(LIBMALLOC)
LIBDEB= $(TOPDIR)/libs/libtag $(TOPDIR)/libs/libta.a \
$(TOPDIR)/libs/libzm.a $(TOPDIR)/libs/libzc.a
LINTLIB= ../libta/llib-llibta.ln
all: $(PROGRAM)-a # in.rlockd
$(PROGRAM)-a: $(LIBDEB) $(PROGRAM)
$(PROGRAM): $(PROGRAM).o version.o $(LIBDEB)
$(CC) $(CFLAGS) -o $@ $(PROGRAM).o version.o $(LIB)
$(PROGRAM).o: $(srcdir)/$(PROGRAM).c
version.c: $(PROGRAM).o $(TOPDIR)/Makefile
@$(MAKE) $(MFLAGS) -f $(TOPDIR)/Makefile $@
install: $(PROGRAM)
$(INSTALL) -m 0755 $(PROGRAM) $(MAILBIN)/ta/$(PROGRAM).x
mv $(MAILBIN)/ta/$(PROGRAM).x $(MAILBIN)/ta/$(PROGRAM)
$(INSTALL) -m 0755 manual-expirer $(MAILBIN)/manual-expirer.x
mv $(MAILBIN)/manual-expirer.x $(MAILBIN)/manual-expirer
clean:
-rm -f $(PROGRAM) in.rlockd *.o *.out make.log *~
distclean: clean
-rm -f Makefile manual-expirer
lint: $(LINTLIB)
lint $(DEFS) $(MAILBOXDEFS) $(INCL) $(LINTLIB) $(PROGRAM).c lock.c
../libta/llib-llibta.ln:
cd ../libta ; $(MAKE) $(MFLAGS) lintlib
$(TOPDIR)/libs/libtag:
cd $(TOPDIR)/libs ; $(MAKE) $(MFLAGS) libtag
../libta/libta.a-a:
cd ../libta ; $(MAKE) $(MFLAGS)
$(TOPDIR)/libs/libta.a:
cd $(TOPDIR)/libs ; $(MAKE) $(MFLAGS)
$(TOPDIR)/lib/libzm.a-a:
cd $(TOPDIR)/lib ; $(MAKE) $(MFLAGS)
$(TOPDIR)/libs/libzm.a:
cd $(TOPDIR)/libs ; $(MAKE) $(MFLAGS)
$(TOPDIR)/libc/libzc.a-a:
cd $(TOPDIR)/libc ; $(MAKE) $(MFLAGS)
$(TOPDIR)/libs/libzc.a:
cd $(TOPDIR)/libs ; $(MAKE) $(MFLAGS)
$(TOPDIR)/libs/libmalloc_d.a:
cd $(TOPDIR)/libmalloc ; $(MAKE) $(MFLAGS)
depend:
CPPDEP="${CPPDEP}" CPPOPT="$(CFLAGS)" $(TOPDIR)/bin/mkdep -s $(srcdir) $(SOURCE)
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
syntax highlighted by Code2HTML, v. 0.9.1