166270Seric# 266270Seric# This Makefile is designed to work on the old "make" program. It does 366270Seric# not use the obj subdirectory. It also does not install documentation 466270Seric# automatically -- think of it as a quick start for sites that have the 566270Seric# old make program (I recommend that you get and port the new make if you 666270Seric# are going to be doing any signficant work on sendmail). 766270Seric# 866270Seric# This has been tested on OSF/1 1.3 966270Seric# 10*69943Seric# @(#)Makefile.OSF1 8.8 (Berkeley) 06/20/95 1166270Seric# 1266270Seric 1366270Seric# use O=-O (usual) or O=-g (debugging) 1466270SericO= -O 1566270Seric 1669564Seric# native compiler requires -Olimit to optimize properly 1769564SericCC= cc -Olimit 1000 1869564Seric 1966270Seric# define the database mechanism used for alias lookups: 2066270Seric# -DNDBM -- use new DBM 2166270Seric# -DNEWDB -- use new Berkeley DB 2266270Seric# -DNIS -- include NIS support 2366270Seric# The really old (V7) DBM library is no longer supported. 2466270Seric# See READ_ME for a description of how these flags interact. 2566270Seric# 2668530SericDBMDEF= -DNDBM -DNEWDB -DNIS 2766270Seric 2866270Seric# environment definitions (e.g., -D_AIX3) 2969564SericENVDEF= 3066270Seric 3166270Seric# see also conf.h for additional compilation flags 3266270Seric 3366270Seric# include directories 3468530SericINCDIRS=-I/usr/sww/include 3566270Seric 3666270Seric# library directories 3766270SericLIBDIRS=-L/usr/sww/lib -L/usr/shlib -L/usr/lib 3866270Seric 3966270Seric# libraries required on your system 4068530Seric# delete -lresolv if you are not running BIND 4.9.x 4168530SericLIBS= -ldbm -ldb -lresolv 4266270Seric 4366270Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4466270SericBINDIR= ${DESTDIR}/usr/sbin 4566270Seric 4666270Seric# location of sendmail.st file (usually /var/log or /usr/lib) 4766270SericSTDIR= ${DESTDIR}/var/adm/sendmail 4866270Seric 4966270Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5066270SericHFDIR= ${DESTDIR}/usr/share/lib 5166270Seric 5266270Seric# additional .o files needed 5366270SericOBJADD= 5466270Seric 5566270Seric# additional link flags 5666270Seric#LDADD= -non_shared 5766270Seric 5866270Seric################### end of user configuration flags ###################### 5966270Seric 6066270SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 6166270Seric 6266270SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6366270Seric 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 \ 6566270Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6666270Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6766270Seric 6866270SericLINKS= ${BINDIR}/newaliases ${BINDIR}/mailq 6966270SericBINOWN= root 7066270SericBINGRP= kmem 7166270SericBINMODE=6555 7266270Seric 7366270SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7466270Seric 7566270Sericall: ${ALL} 7666270Seric 7766270Sericsendmail: ${BEFORE} ${OBJS} 7866270Seric ${CC} -o sendmail ${LDADD} ${OBJS} ${LIBDIRS} ${LIBS} 7966270Seric 8068774Seric#NROFF= nroff -h 8168774SericNROFF= groff -Tascii 8268774SericMANDOC= -mandoc 8366741Seric 8466270Sericaliases.0: aliases.5 8568774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8666270Seric 8766270Sericmailq.0: mailq.1 8868774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 8966270Seric 9066270Sericnewaliases.0: newaliases.1 9168774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 9266270Seric 9366270Sericsendmail.0: sendmail.8 9468774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9566270Seric 9666270Sericinstall: install-sendmail install-docs 9766270Seric 9866270Sericinstall-sendmail: sendmail 9966270Seric installbsd -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 10066270Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 10166270Seric cp /dev/null ${STDIR}/sendmail.st 10266270Seric chmod 644 ${STDIR}/sendmail.st 10366270Seric chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st 10466270Seric installbsd -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 10566270Seric rm -f /usr/sbin/smtpd 10666270Seric 10766270Seric# doesn't actually install them -- you may want to install pre-nroff versions 10866314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10966270Seric 11066270Sericclean: 11166314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 11266270Seric 11366270Seric# dependencies 11466270Seric# gross overkill, and yet still not quite enough.... 11566270Seric${OBJS}: sendmail.h conf.h 116*69943Seric 117*69943Sericdepend: 118