1*69957Seric# 2*69957Seric# This Makefile is designed to work on the old "make" program. It does 3*69957Seric# not use the obj subdirectory. It also does not install documentation 4*69957Seric# automatically -- think of it as a quick start for sites that have the 5*69957Seric# old make program (I recommend that you get and port the new make if you 6*69957Seric# are going to be doing any signficant work on sendmail). 7*69957Seric# 8*69957Seric# This has been tested on KSR OS 1.2.2. Contributed by Todd C. Miller 9*69957Seric# <Todd.Miller@cs.colorado.edu> 10*69957Seric# 11*69957Seric# @(#)Makefile.KSR 8.1 (Berkeley) 06/20/95 12*69957Seric# 13*69957Seric 14*69957Seric# use O=-O (usual) or O=-g (debugging) 15*69957SericO= -O 16*69957Seric 17*69957Seric# define the database mechanism used for alias lookups: 18*69957Seric# -DNDBM -- use new DBM 19*69957Seric# -DNEWDB -- use new Berkeley DB 20*69957Seric# -DNIS -- include NIS support 21*69957Seric# The really old (V7) DBM library is no longer supported. 22*69957Seric# See READ_ME for a description of how these flags interact. 23*69957Seric# 24*69957SericDBMDEF= -DNDBM -DNEWDB -DNIS 25*69957Seric 26*69957Seric# environment definitions (e.g., -D_AIX3) 27*69957SericENVDEF= 28*69957Seric 29*69957Seric# see also conf.h for additional compilation flags 30*69957Seric 31*69957Seric# include directories 32*69957SericINCDIRS=-I/usr/sww/include 33*69957Seric 34*69957Seric# library directories 35*69957SericLIBDIRS=-L/usr/sww/lib -L/usr/shlib -L/usr/lib 36*69957Seric 37*69957Seric# libraries required on your system 38*69957Seric# delete -lresolv if you are not running BIND 4.9.x 39*69957SericLIBS= -ldbm -ldb -lresolv 40*69957Seric 41*69957Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 42*69957SericBINDIR= ${DESTDIR}/usr/sbin 43*69957Seric 44*69957Seric# location of sendmail.st file (usually /var/log or /usr/lib) 45*69957SericSTDIR= ${DESTDIR}/var/adm/sendmail 46*69957Seric 47*69957Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 48*69957SericHFDIR= ${DESTDIR}/usr/share/lib 49*69957Seric 50*69957Seric# additional .o files needed 51*69957SericOBJADD= 52*69957Seric 53*69957Seric 54*69957Seric################### end of user configuration flags ###################### 55*69957Seric 56*69957SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 57*69957Seric 58*69957SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 59*69957Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 60*69957Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 61*69957Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 62*69957Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 63*69957Seric 64*69957SericLINKS= ${BINDIR}/newaliases ${BINDIR}/mailq 65*69957SericBINOWN= root 66*69957SericBINGRP= kmem 67*69957SericBINMODE=6555 68*69957Seric 69*69957SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 70*69957Seric 71*69957Sericall: ${ALL} 72*69957Seric 73*69957Sericsendmail: ${BEFORE} ${OBJS} 74*69957Seric ${CC} -o sendmail ${LDADD} ${OBJS} ${LIBDIRS} ${LIBS} 75*69957Seric 76*69957Seric#NROFF= nroff -h 77*69957SericNROFF= groff -Tascii 78*69957SericMANDOC= -mandoc 79*69957Seric 80*69957Sericaliases.0: aliases.5 81*69957Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 82*69957Seric 83*69957Sericmailq.0: mailq.1 84*69957Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 85*69957Seric 86*69957Sericnewaliases.0: newaliases.1 87*69957Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 88*69957Seric 89*69957Sericsendmail.0: sendmail.8 90*69957Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 91*69957Seric 92*69957Sericinstall: install-sendmail install-docs 93*69957Seric 94*69957Sericinstall-sendmail: sendmail 95*69957Seric installbsd -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 96*69957Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 97*69957Seric cp /dev/null ${STDIR}/sendmail.st 98*69957Seric chmod 644 ${STDIR}/sendmail.st 99*69957Seric chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st 100*69957Seric installbsd -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 101*69957Seric rm -f /usr/sbin/smtpd 102*69957Seric 103*69957Seric# doesn't actually install them -- you may want to install pre-nroff versions 104*69957Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 105*69957Seric 106*69957Sericclean: 107*69957Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 108*69957Seric 109*69957Seric# dependencies 110*69957Seric# gross overkill, and yet still not quite enough.... 111*69957Seric${OBJS}: sendmail.h conf.h 112