168687Seric # 268687Seric # This Makefile is designed to work on the old "make" program. It does 368687Seric # not use the obj subdirectory. It also does not install documentation 468687Seric # automatically -- think of it as a quick start for sites that have the 568687Seric # old make program (I recommend that you get and port the new make if you 668687Seric # are going to be doing any signficant work on sendmail). 768687Seric # 869821Seric # Tested on IRIX 5.3 by Kari E. Hurtta <Kari.Hurtta@fmi.fi>. 968687Seric # 10*69943Seric # @(#)Makefile.IRIX.5.x 8.4 (Berkeley) 06/20/95 1168687Seric # 1268687Seric SHELL= /bin/sh 1368687Seric 1468687Seric # use O=-O (usual) or O=-g (debugging) 1568687Seric O= -O 1668687Seric 1768687Seric # define the database mechanisms available for map & alias lookups: 1868687Seric # -DNDBM -- use new DBM 1968687Seric # -DNEWDB -- use new Berkeley DB (requires -ldb) 2068687Seric # -DNIS -- include NIS support (requires -lsun) 2168687Seric # The really old (V7) DBM library is no longer supported. 2268687Seric # See READ_ME for a description of how these flags interact. 2368687Seric # 2468687Seric DBMDEF= -DNDBM -DNIS 2568687Seric 2668687Seric # environment definitions (e.g., -D_AIX3) 2768687Seric ENVDEF= -DIRIX5 2868687Seric 2968687Seric # see also conf.h for additional compilation flags 3068687Seric 3168687Seric # include directories 3268687Seric INCDIRS= 3368687Seric 3468687Seric # library directories 3568687Seric LIBDIRS= 3668687Seric 3768687Seric # libraries required on your system 3868687Seric LIBS= -lmld -lmalloc -lsun 3968687Seric 4068687Seric # location of sendmail binary (usually /usr/sbin or /usr/lib) 4168687Seric BINDIR= ${DESTDIR}/usr/lib 4268687Seric 4368687Seric # location of sendmail.st file (usually /var/log or /usr/lib) 4468687Seric STDIR= ${DESTDIR}/usr/lib 4568687Seric 4668687Seric # location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 4768687Seric HFDIR= ${DESTDIR}/usr/lib 4868687Seric 4968687Seric # additional .o files needed 5068687Seric OBJADD= 5168687Seric 5268687Seric ################### end of user configuration flags ###################### 5368687Seric 5468687Seric CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 5568687Seric 5668687Seric OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 5768687Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 5868687Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 5968687Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6068687Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6168687Seric 6268687Seric LINKS= ${DESTDIR}/usr/bsd/newaliases ${DESTDIR}/usr/bsd/mailq 6368687Seric BINOWN= root 6468687Seric BINGRP= sys 6568687Seric BINMODE=6555 6668687Seric 6768687Seric ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 6868687Seric 6968687Seric all: ${ALL} 7068687Seric 7168687Seric sendmail: ${BEFORE} ${OBJS} 7268687Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 7368687Seric 7468774Seric #NROFF= nroff -h 7568774Seric NROFF= groff -Tascii 7668774Seric MANDOC= -mandoc 7768687Seric 7868687Seric aliases.0: aliases.5 7968774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8068687Seric 8168687Seric mailq.0: mailq.1 8268774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 8368687Seric 8468687Seric newaliases.0: newaliases.1 8568774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 8668687Seric 8768687Seric sendmail.0: sendmail.8 8868774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 8968687Seric 9068687Seric install: install-sendmail install-docs 9168687Seric 9268687Seric install-sendmail: sendmail 9368687Seric install -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail 9468687Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 9568687Seric cp /dev/null ${STDIR}/sendmail.st 9668687Seric chmod 644 ${STDIR}/sendmail.st 9768687Seric chown ${BINOWN} ${STDIR}/sendmail.st 9868687Seric chgrp ${BINGRP} ${STDIR}/sendmail.st 9968687Seric install -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf 10068687Seric 10168687Seric # doesn't actually install them -- you may want to install pre-nroff versions 10268687Seric install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10368687Seric 10468687Seric clean: 10568687Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 10668687Seric 10768687Seric # dependencies 10868687Seric # gross overkill, and yet still not quite enough.... 10968687Seric ${OBJS}: sendmail.h conf.h 110*69943Seric 111*69943Seric depend: 112