167965Seric# 267965Seric# This Makefile is designed to work on the old "make" program. It does 367965Seric# not use the obj subdirectory. It also does not install documentation 467965Seric# automatically -- think of it as a quick start for sites that have the 567965Seric# old make program (I recommend that you get and port the new make if you 667965Seric# are going to be doing any signficant work on sendmail). 767965Seric# 867965Seric# This has been tested on IRIX64 6.0. 967965Seric# Changes from Mark R. Levinson <ml@cvdev.rochester.edu>. 1067965Seric# 11*69943Seric# @(#)Makefile.IRIX64 8.3 (Berkeley) 06/20/95 1267965Seric# 1367965SericSHELL= /bin/sh 1467965Seric 1567965Seric# use O=-O (usual) or O=-g (debugging) 1667965SericO= -O 1767965SericCC=gcc 1867965Seric 1967965Seric# define the database mechanisms available for map & alias lookups: 2067965Seric# -DNDBM -- use new DBM 2167965Seric# -DNEWDB -- use new Berkeley DB (requires -ldb) 2267965Seric# -DNIS -- include NIS support (requires -lsun) 2367965Seric# The really old (V7) DBM library is no longer supported. 2467965Seric# See READ_ME for a description of how these flags interact. 2567965Seric# 2667965SericDBMDEF= -DNDBM 2767965Seric 2867965Seric# environment definitions (e.g., -D_AIX3) 2967965SericENVDEF= -DIRIX64 3067965Seric 3167965Seric# see also conf.h for additional compilation flags 3267965Seric 3367965Seric# include directories 3467965SericINCDIRS= 3567965Seric 3667965Seric# library directories 3767965SericLIBDIRS= 3867965Seric 3967965Seric# libraries required on your system 4067965SericLIBS= -lelf -lmalloc 4167965Seric 4267965Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4367965SericBINDIR= ${DESTDIR}/usr/lib 4467965Seric 4567965Seric# location of sendmail.st file (usually /var/log or /usr/lib) 4667965SericSTDIR= ${DESTDIR}/usr/lib 4767965Seric 4867965Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 4967965SericHFDIR= ${DESTDIR}/usr/lib 5067965Seric 5167965Seric# additional .o files needed 5267965SericOBJADD= 5367965Seric 5467965Seric################### end of user configuration flags ###################### 5567965Seric 5667965SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 5767965Seric 5867965SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 5967965Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 6067965Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6167965Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6267965Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6367965Seric 6467965SericLINKS= ${DESTDIR}/usr/bsd/newaliases ${DESTDIR}/usr/bsd/mailq 6567965SericBINOWN= root 6667965SericBINGRP= sys 6767965SericBINMODE=6555 6867965Seric 6967965SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7067965Seric 7167965Sericall: ${ALL} 7267965Seric 7367965Sericsendmail: ${BEFORE} ${OBJS} 7467965Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 7567965Seric 7668774Seric#NROFF= nroff -h 7768774SericNROFF= groff -Tascii 7868774SericMANDOC= -mandoc 7967965Seric 8067965Sericaliases.0: aliases.5 8168774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8267965Seric 8367965Sericmailq.0: mailq.1 8468774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 8567965Seric 8667965Sericnewaliases.0: newaliases.1 8768774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 8867965Seric 8967965Sericsendmail.0: sendmail.8 9068774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9167965Seric 9267965Sericinstall: install-sendmail install-docs 9367965Seric 9467965Sericinstall-sendmail: sendmail 9567965Seric install -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail 9667965Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 9767965Seric cp /dev/null ${STDIR}/sendmail.st 9867965Seric chmod 644 ${STDIR}/sendmail.st 9967965Seric chown ${BINOWN} ${STDIR}/sendmail.st 10067965Seric chgrp ${BINGRP} ${STDIR}/sendmail.st 10167965Seric install -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf 10267965Seric 10367965Seric# doesn't actually install them -- you may want to install pre-nroff versions 10467965Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10567965Seric 10667965Sericclean: 10767965Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 10867965Seric 10967965Seric# dependencies 11067965Seric# gross overkill, and yet still not quite enough.... 11167965Seric${OBJS}: sendmail.h conf.h 112*69943Seric 113*69943Sericdepend: 114