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#
8*69943Seric#	@(#)Makefile.Titan	8.6 (Berkeley) 06/20/95
966274Seric#
1066274Seric
1166274Seric# put the compiler in BSD mode
1266274SericCC=	cc -43
1366274Seric
1466274Seric# use O=-O (usual) or O=-g (debugging)
1566274SericO=	-O
1666274Seric
1766274Seric# define the database mechanisms available for map & alias lookups:
1866274Seric#	-DNDBM -- use new DBM
1966274Seric#	-DNEWDB -- use new Berkeley DB
2066274Seric#	-DNIS -- include NIS support
2166274Seric# The really old (V7) DBM library is no longer supported.
2266274Seric# See READ_ME for a description of how these flags interact.
2366274Seric#
2466274SericDBMDEF=	-DNDBM
2566274Seric
2666274Seric# environment definitions (e.g., -D_AIX3)
2766274SericENVDEF=
2866274Seric
2966274Seric# see also conf.h for additional compilation flags
3066274Seric
3166274Seric# include directories
3266274SericINCDIRS=
3366274Seric
3466274Seric# loader options
3566274SericLDOPTS=
3666274Seric
3766274Seric# library directories
3866274SericLIBDIRS=
3966274Seric
4066274Seric# libraries required on your system
4166274SericLIBS=	-ldbm
4266274Seric
4366274Seric# location of sendmail binary (usually /usr/sbin or /usr/lib)
4466274SericBINDIR=	${DESTDIR}/usr/lib
4566274Seric
4666274Seric# location of sendmail.st file (usually /var/log or /usr/lib)
4766274SericSTDIR=	${DESTDIR}/var/log
4866274Seric
4966274Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
5066274SericHFDIR=	${DESTDIR}/usr/share/misc
5166274Seric
5266274Seric# additional .o files needed
5366274SericOBJADD=
5466274Seric
5566274Seric# additional pseudo-sources needed
5666274SericBEFORE=	stddef.h stdlib.h
5766274Seric
5866274Seric###################  end of user configuration flags  ######################
5966274Seric
6066274SericCFLAGS=	-I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
6166274Seric
6266274SericOBJS=	alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
6366274Seric	deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
6467546Seric	map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
6566274Seric	savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
6666274Seric	trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
6766274Seric
6866274SericLINKS=	${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
6966274SericBINOWN=	root
7066274SericBINGRP=	kmem
7166274SericBINMODE=6555
7266274Seric
7366274SericALL=	sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
7466274Seric
7566274Sericall: ${ALL}
7666274Seric
7766274Sericsendmail: ${BEFORE} ${OBJS}
7866274Seric	${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
7966274Seric
8066274Sericstddef.h stdlib.h:
8166274Seric	cp /dev/null $@
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