166268Seric# 266268Seric# This Makefile is designed to work on the old "make" program. It does 366268Seric# not use the obj subdirectory. It also does not install documentation 466268Seric# automatically -- think of it as a quick start for sites that have the 566268Seric# old make program (I recommend that you get and port the new make if you 666268Seric# are going to be doing any signficant work on sendmail). 766268Seric# 866268Seric# This has been tested on IRIX 4.0.4. 966268Seric# 10*69943Seric# @(#)Makefile.IRIX 8.9 (Berkeley) 06/20/95 1166268Seric# 1266333SericSHELL= /bin/sh 1366268Seric 1466268Seric# use O=-O (usual) or O=-g (debugging) 1566268SericO= -O 1666268SericCC=gcc 1766268Seric 1866268Seric# define the database mechanisms available for map & alias lookups: 1966268Seric# -DNDBM -- use new DBM 2066333Seric# -DNEWDB -- use new Berkeley DB (requires -ldb) 2166333Seric# -DNIS -- include NIS support (requires -lsun) 2266268Seric# The really old (V7) DBM library is no longer supported. 2366268Seric# See READ_ME for a description of how these flags interact. 2466268Seric# 2568523SericDBMDEF= -DNDBM -DNIS 2666268Seric 2766268Seric# environment definitions (e.g., -D_AIX3) 2866268SericENVDEF= -DIRIX 2966268Seric 3066268Seric# see also conf.h for additional compilation flags 3166268Seric 3266268Seric# include directories 3366268SericINCDIRS= 3466268Seric 3566268Seric# library directories 3666268SericLIBDIRS= 3766268Seric 3866268Seric# libraries required on your system 3968523SericLIBS= -lmld -lmalloc -lsun 4066268Seric 4166268Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4266268SericBINDIR= ${DESTDIR}/usr/lib 4366268Seric 4466268Seric# location of sendmail.st file (usually /var/log or /usr/lib) 4566268SericSTDIR= ${DESTDIR}/usr/lib 4666268Seric 4766268Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 4866268SericHFDIR= ${DESTDIR}/usr/lib 4966268Seric 5066268Seric# additional .o files needed 5166268SericOBJADD= 5266268Seric 5366268Seric################### end of user configuration flags ###################### 5466268Seric 5566268SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 5666268Seric 5766268SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 5866268Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 5967546Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6066268Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6166268Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6266268Seric 6366268SericLINKS= ${DESTDIR}/usr/bsd/newaliases ${DESTDIR}/usr/bsd/mailq 6466268SericBINOWN= root 6566268SericBINGRP= sys 6666268SericBINMODE=6555 6766268Seric 6866268SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 6966268Seric 7066268Sericall: ${ALL} 7166268Seric 7266268Sericsendmail: ${BEFORE} ${OBJS} 7366268Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 7466268Seric 7568774Seric#NROFF= nroff -h 7668774SericNROFF= groff -Tascii 7768774SericMANDOC= -mandoc 7866741Seric 7966268Sericaliases.0: aliases.5 8068774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8166268Seric 8266268Sericmailq.0: mailq.1 8368774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 8466268Seric 8566268Sericnewaliases.0: newaliases.1 8668774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 8766268Seric 8866268Sericsendmail.0: sendmail.8 8968774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9066268Seric 9166268Sericinstall: install-sendmail install-docs 9266268Seric 9366268Sericinstall-sendmail: sendmail 9466333Seric install -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail 9566268Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 9666333Seric cp /dev/null ${STDIR}/sendmail.st 9766333Seric chmod 644 ${STDIR}/sendmail.st 9866333Seric chown ${BINOWN} ${STDIR}/sendmail.st 9966333Seric chgrp ${BINGRP} ${STDIR}/sendmail.st 10066333Seric install -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf 10166268Seric 10266268Seric# doesn't actually install them -- you may want to install pre-nroff versions 10366314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10466268Seric 10566268Sericclean: 10666314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 10766268Seric 10866268Seric# dependencies 10966268Seric# gross overkill, and yet still not quite enough.... 11066268Seric${OBJS}: sendmail.h conf.h 111*69943Seric 112*69943Sericdepend: 113