169931Seric# 269931Seric# This Makefile is designed to work on the old "make" program. It does 369931Seric# not use the obj subdirectory. It also does not install documentation 469931Seric# automatically -- think of it as a quick start for sites that have the 569931Seric# old make program (I recommend that you get and port the new make if you 669931Seric# are going to be doing any signficant work on sendmail). 769931Seric# 869931Seric# This has been tested on NEXTSTEP 3.3. 969931Seric# 10*69943Seric# @(#)Makefile.NEXTSTEP 8.2 (Berkeley) 06/20/95 1169931Seric# 1269931Seric 1369931Seric# use O=-O (usual) or O=-g (debugging) 1469931SericO= -O 1569931Seric 1669931Seric# NEXTSTEP 3.1 and 3.2 only support m68k and i386 1769931SericARCH= -arch m68k -arch i386 -arch hppa -arch sparc 1869931Seric#ARCH= -arch m68k -arch i386 1969931Seric 2069931SericCOPTS= -Wno-precomp 2169931Seric 2269931Seric# define the database mechanisms available for map & alias lookups: 2369931Seric# -DNDBM -- use new DBM 2469931Seric# -DNEWDB -- use new Berkeley DB 2569931Seric# -DNIS -- include NIS support 2669931Seric# The really old (V7) DBM library is no longer supported. 2769931Seric# See READ_ME for a description of how these flags interact. 2869931Seric# 2969931SericDBMDEF= -DNDBM -DNIS -DNETINFO 3069931Seric#DBMDEF= -DNDBM -DNEWDB -DNIS -DNETINFO 3169931Seric 3269931Seric# environment definitions (e.g., -D_AIX3) 3369931SericENVDEF= -DNeXT 3469931Seric 3569931Seric# see also conf.h for additional compilation flags 3669931Seric 3769931Seric# include directories 3869931SericINCDIRS=-I/usr/local/include 3969931Seric 4069931Seric# library directories 4169931SericLIBDIRS=-L/usr/local/lib 4269931Seric 4369931Seric# libraries required on your system 4469931SericLIBS= -ldbm 4569931Seric#LIBS= -ldbm -ldb 4669931Seric 4769931Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4869931SericBINDIR= ${DESTDIR}/usr/lib 4969931Seric 5069931Seric# location of sendmail.st file (usually /var/log or /usr/lib) 5169931SericSTDIR= ${DESTDIR}/etc/sendmail 5269931Seric 5369931Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5469931SericHFDIR= ${DESTDIR}/usr/lib 5569931Seric 5669931Seric# additional .o files needed 5769931SericOBJADD= 5869931Seric 5969931Seric# additional pseudo-sources needed 6069931SericBEFORE= unistd.h dirent.h 6169931Seric 6269931Seric################### end of user configuration flags ###################### 6369931Seric 6469931SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} ${COPTS} ${ARCH} 6569931Seric 6669931SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6769931Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 6869931Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6969931Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 7069931Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 7169931Seric 7269931SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 7369931SericBINOWN= root 7469931SericBINGRP= kmem 7569931SericBINMODE=6555 7669931Seric 7769931SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7869931Seric 7969931Sericall: ${ALL} 8069931Seric 8169931Sericsendmail: ${BEFORE} ${OBJS} 8269931Seric ${CC} ${ARCH} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 8369931Seric 8469931Sericunistd.h: 8569931Seric cp /dev/null unistd.h 8669931Seric 8769931Sericdirent.h: 8869931Seric echo "#include <sys/dir.h>" > dirent.h 8969931Seric echo "#define dirent direct" >> dirent.h 9069931Seric 9169931Seric#NROFF= nroff -h 9269931SericNROFF= groff -Tascii 9369931SericMANDOC= -mandoc 9469931Seric 9569931Sericaliases.0: aliases.5 9669931Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 9769931Seric 9869931Sericmailq.0: mailq.1 9969931Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 10069931Seric 10169931Sericnewaliases.0: newaliases.1 10269931Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 10369931Seric 10469931Sericsendmail.0: sendmail.8 10569931Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 10669931Seric 10769931Sericinstall: install-sendmail install-docs 10869931Seric 10969931Sericinstall-sendmail: sendmail 11069931Seric install -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 11169931Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 11269931Seric cp /dev/null ${STDIR}/sendmail.st 11369931Seric chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st 11469931Seric chmod 644 ${STDIR}/sendmail.st 11569931Seric install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 11669931Seric 11769931Seric# doesn't actually install them -- you may want to install pre-nroff versions 11869931Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 11969931Seric 12069931Sericclean: 12169931Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 12269931Seric 12369931Seric# dependencies 12469931Seric# gross overkill, and yet still not quite enough.... 12569931Seric${OBJS}: sendmail.h conf.h 126*69943Seric 127*69943Sericdepend: 128