168038Seric#
268038Seric#  This Makefile is designed to work on the old "make" program.  It does
368038Seric#  not use the obj subdirectory.  It also does not install documentation
468038Seric#  automatically -- think of it as a quick start for sites that have the
568038Seric#  old make program (I recommend that you get and port the new make if you
668038Seric#  are going to be doing any signficant work on sendmail).
768038Seric#
868038Seric#  This has been tested on Altos System V.
968038Seric#
10*69943Seric#	@(#)Makefile.Altos	8.3 (Berkeley) 06/20/95
1168038Seric#
1268038Seric
1368038Seric# use O=-O (usual) or O=-g (debugging)
1468038SericO=	-O
1568038Seric
1668038Seric# define the database mechanisms available for map & alias lookups:
1768038Seric#	-DNDBM -- use new DBM
1868038Seric#	-DNEWDB -- use new Berkeley DB
1968038Seric#	-DNIS -- include NIS support
2068038Seric# The really old (V7) DBM library is no longer supported.
2168038Seric# See READ_ME for a description of how these flags interact.
2268038Seric#
2368038SericDBMDEF=
2468038Seric
2568038Seric# environment definitions (e.g., -D_AIX3)
2668038SericENVDEF=	-DALTOS_SYS_V
2768038Seric
2868038Seric# see also conf.h for additional compilation flags
2968038Seric
3068038Seric# include directories
3168038SericINCDIRS=
3268038Seric
3368038Seric# library directories
3468038SericLIBDIRS=
3568038Seric
3668038Seric# libraries required on your system
3768038SericLIBS=	-lsocket -lrpc
3868038Seric
3968038Seric# location of sendmail binary (usually /usr/sbin or /usr/lib)
4068038SericBINDIR=	${DESTDIR}/usr/lib
4168038Seric
4268038Seric# location of sendmail.st file (usually /var/log or /usr/lib)
4368038SericSTDIR=	${DESTDIR}/usr/lib
4468038Seric
4568038Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
4668038SericHFDIR=	${DESTDIR}/usr/lib
4768038Seric
4868038Seric# additional .o files needed
4968038SericOBJADD=
5068038Seric
5168038Seric###################  end of user configuration flags  ######################
5268038Seric
5368038SericCFLAGS=	-I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
5468038Seric
5568038SericOBJS=	alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
5668038Seric	deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
5768038Seric	map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
5868038Seric	savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
5968038Seric	trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
6068038Seric
6168038SericLINKS=	${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
6268038SericBINOWN=	root
6368038SericBINGRP=	kmem
6468038SericBINMODE=6555
6568038Seric
6668038SericALL=	sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
6768038Seric
6868038Sericall: ${ALL}
6968038Seric
7068038Sericsendmail: ${BEFORE} ${OBJS}
7168038Seric	${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
7268038Seric
7368774Seric#NROFF=	nroff -h
7468774SericNROFF=	groff -Tascii
7568774SericMANDOC=	-mandoc
7668038Seric
7768038Sericaliases.0: aliases.5
7868774Seric	${NROFF} ${MANDOC} aliases.5 > aliases.0
7968038Seric
8068038Sericmailq.0: mailq.1
8168774Seric	${NROFF} ${MANDOC} mailq.1 > mailq.0
8268038Seric
8368038Sericnewaliases.0: newaliases.1
8468774Seric	${NROFF} ${MANDOC} newaliases.1 > newaliases.0
8568038Seric
8668038Sericsendmail.0: sendmail.8
8768774Seric	${NROFF} ${MANDOC} sendmail.8 > sendmail.0
8868038Seric
8968038Sericinstall: install-sendmail install-docs
9068038Seric
9168038Sericinstall-sendmail: sendmail
9268038Seric	install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
9368038Seric	for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
9468038Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
9568038Seric	    ${STDIR}/sendmail.st
9668038Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
9768038Seric
9868038Seric# doesn't actually install them -- you may want to install pre-nroff versions
9968038Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
10068038Seric
10168038Sericclean:
10268038Seric	rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
10368038Seric
10468038Seric# dependencies
10568038Seric#   gross overkill, and yet still not quite enough....
10668038Seric${OBJS}: sendmail.h conf.h
107*69943Seric
108*69943Sericdepend:
109