166266Seric# 266266Seric# Tested on Dynix 3.2.0. 366266Seric# 466266Seric# From Jim Davis <jdavis@cs.arizona.edu>. 566266Seric# 666266Seric# ``There is no strtol in libc (well there is in the 'att universe' 766266Seric# libc, but I couldn't figure out how to link that in), so I 866266Seric# got the Chris Torek strtol.c from bsd-sources on uunet and 966266Seric# compiled that. There is no native ndbm either; I couldn't 1066266Seric# get db 1.72 to pass it's regression test, so I used gdbm-1.7 1166266Seric# instead. I compiled it with gcc 1.40a. The -lseq is to pick 1266266Seric# up getopt.'' 1366266Seric# 14*69943Seric# @(#)Makefile.Dynix 8.6 (Berkeley) 06/20/95 1566266Seric# 1666266Seric 1766266SericCC= gcc 1866266Seric 1966266Seric# use O=-O (usual) or O=-g (debugging) 2066266SericO= -O -g 2166266Seric 2266266Seric# define the database mechanisms available for map & alias lookups: 2366266Seric# -DNDBM -- use new DBM 2466266Seric# -DNEWDB -- use new Berkeley DB 2566266Seric# -DNIS -- include NIS support 2666266Seric# The really old (V7) DBM library is no longer supported. 2766266Seric# See READ_ME for a description of how these flags interact. 2866266Seric# 2966266SericDBMDEF= -DNDBM 3066266Seric 3166266Seric# environment definitions (e.g., -D_AIX3) 3266266SericENVDEF= 3366266Seric 3466266Seric# see also conf.h for additional compilation flags 3566266Seric 3666266Seric# include directories 3766266SericINCDIRS= 3866266Seric 3966266Seric# loader options 4066266SericLDOPTS= 4166266Seric 4266266Seric# library directories 4366266SericLIBDIRS= 4466266Seric 4566266Seric# libraries required on your system 4666266SericLIBS= -lseq -lgdbm 4766266Seric 4866266Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4966266SericBINDIR= ${DESTDIR}/usr/lib 5066266Seric 5166266Seric# location of sendmail.st file (usually /var/log or /usr/lib) 5266266SericSTDIR= ${DESTDIR}/usr/lib 5366266Seric 5466266Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5566266SericHFDIR= ${DESTDIR}/usr/lib 5666266Seric 5766266Seric# additional .o files needed 5866266SericOBJADD=strtol.o 5966266Seric 6066266Seric################### end of user configuration flags ###################### 6166266Seric 6266266SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 6366266Seric 6466266SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6566266Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 6667546Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6766266Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6866266Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6966266Seric 7066266SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 7166266SericBINOWN= root 7266266SericBINGRP= staff # no kmem group, 7366266SericBINMODE=4555 # so not setgid 7466266Seric 7566266SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7666266Seric 7766266Sericall: ${ALL} 7866266Seric 7966266Sericsendmail: ${BEFORE} ${OBJS} 8066266Seric ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 8166266Seric 8268774Seric#NROFF= nroff -h 8368774SericNROFF= groff -Tascii 8468774SericMANDOC= -mandoc 8566741Seric 8666266Sericaliases.0: aliases.5 8768774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8866266Seric 8966266Sericmailq.0: mailq.1 9068774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 9166266Seric 9266266Sericnewaliases.0: newaliases.1 9368774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 9466266Seric 9566266Sericsendmail.0: sendmail.8 9668774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9766266Seric 9866266Sericinstall: install-sendmail install-docs 9966266Seric 10066266Sericinstall-sendmail: sendmail 10166266Seric install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 10266266Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 10366266Seric install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 10466266Seric ${STDIR}/sendmail.st 10566266Seric install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 10666266Seric 10766266Seric# doesn't actually install them -- you may want to install pre-nroff versions 10866314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10966266Seric 11066266Sericclean: 11166314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 11266266Seric 11366266Seric# dependencies 11466266Seric# gross overkill, and yet still not quite enough.... 11566266Seric${OBJS}: sendmail.h conf.h 116*69943Seric 117*69943Sericdepend: 118