168083Seric#
268083Seric#  This Makefile is designed to work on the old "make" program.  It does
368083Seric#  not use the obj subdirectory.  It also does not install documentation
468083Seric#  automatically -- think of it as a quick start for sites that have the
568083Seric#  old make program (I recommend that you get and port the new make if you
668083Seric#  are going to be doing any signficant work on sendmail).
768083Seric#
868083Seric#  This has been tested on OSF/1 1.3
968083Seric#
10*69943Seric#	@(#)Makefile.Paragon	8.4 (Berkeley) 06/20/95
1168083Seric#
1268083Seric
1368083Seric# use O=-O (usual) or O=-g (debugging)
1468083SericO=	-O
1568083Seric
1668083Seric# define the database mechanism used for alias lookups:
1768083Seric#	-DNDBM -- use new DBM
1868083Seric#	-DNEWDB -- use new Berkeley DB
1968083Seric#	-DNIS -- include NIS support
2068083Seric# The really old (V7) DBM library is no longer supported.
2168083Seric# See READ_ME for a description of how these flags interact.
2268083Seric#
2368083SericDBMDEF=	-DNDBM
2468083Seric
2568083Seric# environment definitions (e.g., -D_AIX3)
2668083SericENVDEF=
2768083Seric
2868083Seric# see also conf.h for additional compilation flags
2968083Seric
3068083Seric# include directories
3168530SericINCDIRS=-I/usr/sww/include
3268083Seric
3368083Seric# library directories
3468083SericLIBDIRS=-L/usr/sww/lib -L/usr/shlib -L/usr/lib
3568083Seric
3668083Seric# libraries required on your system
3768083SericLIBS=	-ldbm
3868083Seric
3968083Seric# location of sendmail binary (usually /usr/sbin or /usr/lib)
4068083SericBINDIR=	${DESTDIR}/usr/sbin
4168083Seric
4268083Seric# location of sendmail.st file (usually /var/log or /usr/lib)
4368083SericSTDIR=	${DESTDIR}/var/adm/sendmail
4468083Seric
4568083Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
4668083SericHFDIR=	${DESTDIR}/usr/share/lib
4768083Seric
4868083Seric# additional .o files needed
4968083SericOBJADD=
5068083Seric
5168083Seric# additional link flags
5268083Seric#LDADD=	-non_shared
5368083Seric
5468083Seric###################  end of user configuration flags  ######################
5568083Seric
5668083SericCFLAGS=	-I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
5768083Seric
5868083SericOBJS=	alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
5968083Seric	deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
6068083Seric	map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
6168083Seric	savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
6268083Seric	trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
6368083Seric
6468083SericLINKS=	${BINDIR}/newaliases ${BINDIR}/mailq
6568083SericBINOWN=	root
6668083SericBINGRP=	kmem
6768083SericBINMODE=6555
6868083Seric
6968083SericALL=	sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
7068083Seric
7168083Sericall: ${ALL}
7268083Seric
7368083Sericsendmail: ${BEFORE} ${OBJS}
7468083Seric	${CC} -o sendmail ${LDADD} ${OBJS} ${LIBDIRS} ${LIBS}
7568083Seric
7668774Seric#NROFF=	nroff -h
7768774SericNROFF=	groff -Tascii
7868774SericMANDOC=	-mandoc
7968083Seric
8068083Sericaliases.0: aliases.5
8168774Seric	${NROFF} ${MANDOC} aliases.5 > aliases.0
8268083Seric
8368083Sericmailq.0: mailq.1
8468774Seric	${NROFF} ${MANDOC} mailq.1 > mailq.0
8568083Seric
8668083Sericnewaliases.0: newaliases.1
8768774Seric	${NROFF} ${MANDOC} newaliases.1 > newaliases.0
8868083Seric
8968083Sericsendmail.0: sendmail.8
9068774Seric	${NROFF} ${MANDOC} sendmail.8 > sendmail.0
9168083Seric
9268083Sericinstall: install-sendmail install-docs
9368083Seric
9468083Sericinstall-sendmail: sendmail
9568083Seric	installbsd -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
9668083Seric	for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
9768083Seric	cp /dev/null ${STDIR}/sendmail.st
9868083Seric	chmod 644 ${STDIR}/sendmail.st
9968083Seric	chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st
10068083Seric	installbsd -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
10168083Seric	rm -f /usr/sbin/smtpd
10268083Seric
10368083Seric# doesn't actually install them -- you may want to install pre-nroff versions
10468083Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
10568083Seric
10668083Sericclean:
10768083Seric	rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
10868083Seric
10968083Seric# dependencies
11068083Seric#   gross overkill, and yet still not quite enough....
11168083Seric${OBJS}: sendmail.h conf.h
112*69943Seric
113*69943Sericdepend:
114