166263Seric#
266263Seric#  This Makefile is designed to work on the old "make" program.  It does
366263Seric#  not use the obj subdirectory.  It also does not install documentation
466263Seric#  automatically -- think of it as a quick start for sites that have the
566263Seric#  old make program (I recommend that you get and port the new make if you
666263Seric#  are going to be doing any signficant work on sendmail).
766263Seric#
8*69943Seric#	@(#)Makefile.AUX	8.10 (Berkeley) 06/20/95
966263Seric#
1069900Seric#  Tested on A/UX 3.1.
1169900Seric#
1266263Seric
1366263Seric# use O=-O (usual) or O=-g (debugging)
1466263SericO=	-O
1566263Seric
1666263Seric# define the database mechanisms available for map & alias lookups:
1766263Seric#	-DNDBM -- use new DBM
1866263Seric#	-DNEWDB -- use new Berkeley DB
1966263Seric#	-DNIS -- include NIS support
2066263Seric# The really old (V7) DBM library is no longer supported.
2166263Seric# See READ_ME for a description of how these flags interact.
2269900Seric#   If you are running A/UX prior to 3.1, delete -DNEWDB
2369900SericDBMDEF=	-DNDBM -DNEWDB
2466263Seric
2566263Seric# environment definitions (e.g., -D_AIX3)
2669889SericENVDEF=	-D_POSIX_SOURCE
2766263Seric
2866263Seric# see also conf.h for additional compilation flags
2966263Seric
3066263Seric# include directories
3169891SericINCDIRS=
3266263Seric
3366263Seric# loader options
3466263SericLDOPTS=
3566263Seric
3666263Seric# library directories
3769891SericLIBDIRS=
3866263Seric
3966263Seric# libraries required on your system
4069900Seric#   If you are running A/UX prior to 3.1, delete -ldb
4169900SericLIBS=	-ldbm -ldb -lposix -lmalloc
4266263Seric
4366263Seric# location of sendmail binary (usually /usr/sbin or /usr/lib)
4469891SericBINDIR=	${DESTDIR}/usr/lib
4566263Seric
4666263Seric# location of sendmail.st file (usually /var/log or /usr/lib)
4769891SericSTDIR=	${DESTDIR}/usr/lib
4866263Seric
4966263Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
5069891SericHFDIR=	${DESTDIR}/usr/lib
5166263Seric
5266263Seric# additional .o files needed
5366263SericOBJADD=
5466263Seric
5566263Seric###################  end of user configuration flags  ######################
5666263Seric
5766263SericCFLAGS=	-I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
5866263Seric
5966263SericOBJS=	alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
6066263Seric	deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
6167546Seric	map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
6266263Seric	savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
6366263Seric	trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
6466263Seric
6566263SericLINKS=	${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
6666263SericBINOWN=	root
6766263SericBINGRP=	kmem
6866263SericBINMODE=6555
6966263Seric
7066263SericALL=	sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
7166263Seric
7266263Sericall: ${ALL}
7366263Seric
7466263Sericsendmail: ${BEFORE} ${OBJS}
7566263Seric	${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
7666263Seric
7768774Seric#NROFF=	nroff -h
7868774SericNROFF=	groff -Tascii
7968774SericMANDOC=	-mandoc
8066741Seric
8166263Sericaliases.0: aliases.5
8268774Seric	${NROFF} ${MANDOC} aliases.5 > aliases.0
8366263Seric
8466263Sericmailq.0: mailq.1
8568774Seric	${NROFF} ${MANDOC} mailq.1 > mailq.0
8666263Seric
8766263Sericnewaliases.0: newaliases.1
8868774Seric	${NROFF} ${MANDOC} newaliases.1 > newaliases.0
8966263Seric
9066263Sericsendmail.0: sendmail.8
9168774Seric	${NROFF} ${MANDOC} sendmail.8 > sendmail.0
9266263Seric
9366263Sericinstall: install-sendmail install-docs
9466263Seric
9566263Sericinstall-sendmail: sendmail
9666263Seric	install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
9766263Seric	for i in ${LINKS}; do ; rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
9866263Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
9966263Seric	    ${STDIR}/sendmail.st
10066263Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
10166263Seric
10266263Seric# doesn't actually install them -- you may want to install pre-nroff versions
10366314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
10466263Seric
10566263Sericclean:
10666314Seric	rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
10766263Seric
10866263Seric# dependencies
10966263Seric#   gross overkill, and yet still not quite enough....
11066263Seric${OBJS}: sendmail.h conf.h
111*69943Seric
112*69943Sericdepend:
113