166274Seric#
266274Seric#  This Makefile is designed to work on the old "make" program.  It does
366274Seric#  not use the obj subdirectory.  It also does not install documentation
466274Seric#  automatically -- think of it as a quick start for sites that have the
566274Seric#  old make program (I recommend that you get and port the new make if you
666274Seric#  are going to be doing any signficant work on sendmail).
766274Seric#
866274Seric#	This has been tested on Encore UMAX V
966274Seric#
10*69943Seric#	@(#)Makefile.UMAX	8.6 (Berkeley) 06/20/95
1166274Seric#
1266274Seric
1366274Seric# use O=-O (usual) or O=-g (debugging)
1466274SericO=	-O
1566274Seric
1666274Seric# define the database mechanisms available for map & alias lookups:
1766274Seric#	-DNDBM -- use new DBM
1866274Seric#	-DNEWDB -- use new Berkeley DB
1966274Seric#	-DNIS -- include NIS support
2066274Seric# The really old (V7) DBM library is no longer supported.
2166274Seric# See READ_ME for a description of how these flags interact.
2266274Seric#
2366274SericDBMDEF=	-DNIS
2466274Seric
2566274Seric# environment definitions (e.g., -D_AIX3)
2666274SericENVDEF=	-DUMAXV
2766274Seric
2866274Seric# see also conf.h for additional compilation flags
2966274Seric
3066274Seric# include directories
3166274SericINCDIRS=
3266274Seric
3366274Seric# loader options
3466274SericLDOPTS=
3566274Seric
3666274Seric# library directories
3766274SericLIBDIRS=
3866274Seric
3966274Seric# libraries required on your system
4066274SericLIBS=	-lyp -lrpc
4166274Seric
4266274Seric# location of sendmail binary (usually /usr/sbin or /usr/lib)
4366274SericBINDIR=	${DESTDIR}/usr/lib
4466274Seric
4566274Seric# location of sendmail.st file (usually /var/log or /usr/lib)
4666274SericSTDIR=	${DESTDIR}/var/log
4766274Seric
4866274Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
4966274SericHFDIR=	${DESTDIR}/usr/lib
5066274Seric
5166274Seric# additional .o files needed
5266274SericOBJADD=
5366274Seric
5466274Seric# things to do before compilation
5566274SericBEFORE=	stddef.h
5666274Seric
5766274Sericstddef.h:
5866274Seric	echo "#define _STDDEF_H" > stddef.h
5966274Seric	chmod 444 stddef.h
6066274Seric
6166274Seric###################  end of user configuration flags  ######################
6266274Seric
6366274SericCFLAGS=	-I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
6466274Seric
6566274SericOBJS=	alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
6666274Seric	deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
6767546Seric	map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
6866274Seric	savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
6966274Seric	trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
7066274Seric
7166274SericLINKS=	${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
7266274SericBINOWN=	root
7366274SericBINGRP=	kmem
7466274SericBINMODE=6555
7566274Seric
7666274SericALL=	sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
7766274Seric
7866274Sericall: ${ALL}
7966274Seric
8066274Sericsendmail: ${BEFORE} ${OBJS}
8166274Seric	${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
8266274Seric
8368774Seric#NROFF=	nroff -h
8468774SericNROFF=	groff -Tascii
8568774SericMANDOC=	-mandoc
8666741Seric
8766274Sericaliases.0: aliases.5
8868774Seric	${NROFF} ${MANDOC} aliases.5 > aliases.0
8966274Seric
9066274Sericmailq.0: mailq.1
9168774Seric	${NROFF} ${MANDOC} mailq.1 > mailq.0
9266274Seric
9366274Sericnewaliases.0: newaliases.1
9468774Seric	${NROFF} ${MANDOC} newaliases.1 > newaliases.0
9566274Seric
9666274Sericsendmail.0: sendmail.8
9768774Seric	${NROFF} ${MANDOC} sendmail.8 > sendmail.0
9866274Seric
9966274Sericinstall: install-sendmail install-docs
10066274Seric
10166274Sericinstall-sendmail: sendmail
10266274Seric	install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
10366274Seric	for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
10466274Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
10566274Seric	    ${STDIR}/sendmail.st
10666274Seric	install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
10766274Seric
10866274Seric# doesn't actually install them -- you may want to install pre-nroff versions
10966314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
11066274Seric
11166274Sericclean:
11266314Seric	rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
11366274Seric
11466274Seric# dependencies
11566274Seric#   gross overkill, and yet still not quite enough....
11666274Seric${OBJS}: sendmail.h conf.h
117*69943Seric
118*69943Sericdepend:
119