1bc165961Seric# 2bc165961Seric# This Makefile is designed to work on the old "make" program. It does 3bc165961Seric# not use the obj subdirectory. It also does not install documentation 4bc165961Seric# automatically -- think of it as a quick start for sites that have the 5bc165961Seric# old make program (I recommend that you get and port the new make if you 6bc165961Seric# are going to be doing any signficant work on sendmail). 7bc165961Seric# 8bc165961Seric# This has been tested on IRIX64 6.0. 9bc165961Seric# Changes from Mark R. Levinson <ml@cvdev.rochester.edu>. 10bc165961Seric# 11*be5d3a0fSeric# @(#)Makefile.IRIX64 8.3 (Berkeley) 06/20/95 12bc165961Seric# 13bc165961SericSHELL= /bin/sh 14bc165961Seric 15bc165961Seric# use O=-O (usual) or O=-g (debugging) 16bc165961SericO= -O 17bc165961SericCC=gcc 18bc165961Seric 19bc165961Seric# define the database mechanisms available for map & alias lookups: 20bc165961Seric# -DNDBM -- use new DBM 21bc165961Seric# -DNEWDB -- use new Berkeley DB (requires -ldb) 22bc165961Seric# -DNIS -- include NIS support (requires -lsun) 23bc165961Seric# The really old (V7) DBM library is no longer supported. 24bc165961Seric# See READ_ME for a description of how these flags interact. 25bc165961Seric# 26bc165961SericDBMDEF= -DNDBM 27bc165961Seric 28bc165961Seric# environment definitions (e.g., -D_AIX3) 29bc165961SericENVDEF= -DIRIX64 30bc165961Seric 31bc165961Seric# see also conf.h for additional compilation flags 32bc165961Seric 33bc165961Seric# include directories 34bc165961SericINCDIRS= 35bc165961Seric 36bc165961Seric# library directories 37bc165961SericLIBDIRS= 38bc165961Seric 39bc165961Seric# libraries required on your system 40bc165961SericLIBS= -lelf -lmalloc 41bc165961Seric 42bc165961Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 43bc165961SericBINDIR= ${DESTDIR}/usr/lib 44bc165961Seric 45bc165961Seric# location of sendmail.st file (usually /var/log or /usr/lib) 46bc165961SericSTDIR= ${DESTDIR}/usr/lib 47bc165961Seric 48bc165961Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 49bc165961SericHFDIR= ${DESTDIR}/usr/lib 50bc165961Seric 51bc165961Seric# additional .o files needed 52bc165961SericOBJADD= 53bc165961Seric 54bc165961Seric################### end of user configuration flags ###################### 55bc165961Seric 56bc165961SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 57bc165961Seric 58bc165961SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 59bc165961Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 60bc165961Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 61bc165961Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 62bc165961Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 63bc165961Seric 64bc165961SericLINKS= ${DESTDIR}/usr/bsd/newaliases ${DESTDIR}/usr/bsd/mailq 65bc165961SericBINOWN= root 66bc165961SericBINGRP= sys 67bc165961SericBINMODE=6555 68bc165961Seric 69bc165961SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 70bc165961Seric 71bc165961Sericall: ${ALL} 72bc165961Seric 73bc165961Sericsendmail: ${BEFORE} ${OBJS} 74bc165961Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 75bc165961Seric 76f112abc8Seric#NROFF= nroff -h 77f112abc8SericNROFF= groff -Tascii 78f112abc8SericMANDOC= -mandoc 79bc165961Seric 80bc165961Sericaliases.0: aliases.5 81f112abc8Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 82bc165961Seric 83bc165961Sericmailq.0: mailq.1 84f112abc8Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 85bc165961Seric 86bc165961Sericnewaliases.0: newaliases.1 87f112abc8Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 88bc165961Seric 89bc165961Sericsendmail.0: sendmail.8 90f112abc8Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 91bc165961Seric 92bc165961Sericinstall: install-sendmail install-docs 93bc165961Seric 94bc165961Sericinstall-sendmail: sendmail 95bc165961Seric install -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail 96bc165961Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 97bc165961Seric cp /dev/null ${STDIR}/sendmail.st 98bc165961Seric chmod 644 ${STDIR}/sendmail.st 99bc165961Seric chown ${BINOWN} ${STDIR}/sendmail.st 100bc165961Seric chgrp ${BINGRP} ${STDIR}/sendmail.st 101bc165961Seric install -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf 102bc165961Seric 103bc165961Seric# doesn't actually install them -- you may want to install pre-nroff versions 104bc165961Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 105bc165961Seric 106bc165961Sericclean: 107bc165961Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 108bc165961Seric 109bc165961Seric# dependencies 110bc165961Seric# gross overkill, and yet still not quite enough.... 111bc165961Seric${OBJS}: sendmail.h conf.h 112*be5d3a0fSeric 113*be5d3a0fSericdepend: 114