1b7088b41Seric# 2b7088b41Seric# This Makefile is designed to work on the old "make" program. It does 3b7088b41Seric# not use the obj subdirectory. It also does not install documentation 4b7088b41Seric# automatically -- think of it as a quick start for sites that have the 5b7088b41Seric# old make program (I recommend that you get and port the new make if you 6b7088b41Seric# are going to be doing any signficant work on sendmail). 7b7088b41Seric# 8*be5d3a0fSeric# @(#)Makefile.Mach386 8.6 (Berkeley) 06/20/95 9b7088b41Seric# 10b7088b41Seric 11b7088b41SericCC= gcc 12b7088b41Seric 13b7088b41Seric# use O=-O (usual) or O=-g (debugging) 14b7088b41SericO= -O 15b7088b41Seric 16b7088b41Seric# define the database mechanisms available for map & alias lookups: 17b7088b41Seric# -DNDBM -- use new DBM 18b7088b41Seric# -DNEWDB -- use new Berkeley DB 19b7088b41Seric# -DNIS -- include NIS support 20b7088b41Seric# The really old (V7) DBM library is no longer supported. 21b7088b41Seric# See READ_ME for a description of how these flags interact. 22b7088b41Seric# 23b7088b41SericDBMDEF= -DNDBM 24b7088b41Seric 25b7088b41Seric# environment definitions (e.g., -D_AIX3) 26b7088b41SericENVDEF= 27b7088b41Seric 28b7088b41Seric# see also conf.h for additional compilation flags 29b7088b41Seric 30b7088b41Seric# include directories 31b7088b41SericINCDIRS= 32b7088b41Seric 33b7088b41Seric# loader options 34b7088b41SericLDOPTS= 35b7088b41Seric 36b7088b41Seric# library directories 37b7088b41SericLIBDIRS= 38b7088b41Seric 39b7088b41Seric# libraries required on your system 40b7088b41SericLIBS= -ldbm 41b7088b41Seric 42b7088b41Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 43b7088b41SericBINDIR= ${DESTDIR}/usr/lib 44b7088b41Seric 45b7088b41Seric# location of sendmail.st file (usually /var/log or /usr/lib) 46b7088b41SericSTDIR= ${DESTDIR}/usr/lib 47b7088b41Seric 48b7088b41Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 49b7088b41SericHFDIR= ${DESTDIR}/usr/lib 50b7088b41Seric 51b7088b41Seric# additional .o files needed 52b7088b41SericOBJADD= 53b7088b41Seric 54b7088b41Seric################### end of user configuration flags ###################### 55b7088b41Seric 56b7088b41SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 57b7088b41Seric 58b7088b41SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 59b7088b41Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 60a6ce3008Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 61b7088b41Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 62b7088b41Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 63b7088b41Seric 64b7088b41SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 65b7088b41SericBINOWN= root 66b7088b41SericBINGRP= kmem 67b7088b41SericBINMODE=6555 68b7088b41Seric 69b7088b41SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 70b7088b41Seric 71b7088b41Sericall: ${ALL} 72b7088b41Seric 73b7088b41Sericsendmail: ${BEFORE} ${OBJS} 74b7088b41Seric ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 75b7088b41Seric 76f112abc8Seric#NROFF= nroff -h 77f112abc8SericNROFF= groff -Tascii 78f112abc8SericMANDOC= -mandoc 790bcbc569Seric 80b7088b41Sericaliases.0: aliases.5 81f112abc8Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 82b7088b41Seric 83b7088b41Sericmailq.0: mailq.1 84f112abc8Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 85b7088b41Seric 86b7088b41Sericnewaliases.0: newaliases.1 87f112abc8Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 88b7088b41Seric 89b7088b41Sericsendmail.0: sendmail.8 90f112abc8Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 91b7088b41Seric 92b7088b41Sericinstall: install-sendmail install-docs 93b7088b41Seric 94b7088b41Sericinstall-sendmail: sendmail 95b7088b41Seric install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 96b7088b41Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 97b7088b41Seric install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 98b7088b41Seric ${STDIR}/sendmail.st 99b7088b41Seric install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 100b7088b41Seric 101b7088b41Seric# doesn't actually install them -- you may want to install pre-nroff versions 1021e3d75cbSericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 103b7088b41Seric 104b7088b41Sericclean: 1051e3d75cbSeric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 106b7088b41Seric 107b7088b41Seric# dependencies 108b7088b41Seric# gross overkill, and yet still not quite enough.... 109b7088b41Seric${OBJS}: sendmail.h conf.h 110*be5d3a0fSeric 111*be5d3a0fSericdepend: 112