166272Seric# 266272Seric# This Makefile is designed to work on the old "make" program. It does 366272Seric# not use the obj subdirectory. It also does not install documentation 466272Seric# automatically -- think of it as a quick start for sites that have the 566272Seric# old make program (I recommend that you get and port the new make if you 666272Seric# are going to be doing any signficant work on sendmail). 766272Seric# 866272Seric# This has been tested on SunOS 4.1.[12]. 966272Seric# For SunOS 4.0.3, add -DSUNOS403 to the ENVDEF macro, and 1066272Seric# create empty files stdlib.h and stddef.h in your 1166272Seric# compile directory. 1266272Seric# 13*69943Seric# @(#)Makefile.SunOS 8.7 (Berkeley) 06/20/95 1466272Seric# 1566272Seric 1666272Seric# use O=-O (usual) or O=-g (debugging) 1766272SericO= -O 1866272Seric 1966272Seric# define the database mechanisms available for map & alias lookups: 2066272Seric# -DNDBM -- use new DBM 2166272Seric# -DNEWDB -- use new Berkeley DB 2266272Seric# -DNIS -- include NIS support 2366272Seric# The really old (V7) DBM library is no longer supported. 2466272Seric# See READ_ME for a description of how these flags interact. 2566272Seric# 2666272SericDBMDEF= -DNDBM -DNEWDB -DNIS 2766272Seric 2866272Seric# environment definitions (e.g., -D_AIX3) 2966272Seric# need to add -DSUNOS403 if you are on a SunOS 4.0.3 system 3066272SericENVDEF= 3166272Seric 3266272Seric# see also conf.h for additional compilation flags 3366272Seric 3466272Seric# include directories 3568530SericINCDIRS=-I/usr/sww/include 3666272Seric 3766272Seric# loader options 3866272SericLDOPTS= -Bstatic 3966272Seric 4066272Seric# library directories 4166272SericLIBDIRS=-L/usr/sww/lib 4266272Seric 4366272Seric# libraries required on your system 4466272SericLIBS= -ldb -ldbm -lresolv 4566272Seric 4666272Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4766272SericBINDIR= ${DESTDIR}/usr/lib 4866272Seric 4966272Seric# location of sendmail.st file (usually /var/log or /usr/lib) 5066272SericSTDIR= ${DESTDIR}/etc 5166272Seric 5266272Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5366272SericHFDIR= ${DESTDIR}/usr/lib 5466272Seric 5566272Seric# additional .o files needed 5666272SericOBJADD= 5766272Seric 5866272Seric################### end of user configuration flags ###################### 5966272Seric 6066272SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 6166272Seric 6266272SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6366272Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 6467546Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6566272Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6666272Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6766272Seric 6866272SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 6966272SericBINOWN= root 7066272SericBINGRP= kmem 7166272SericBINMODE=6555 7266272Seric 7366272SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7466272Seric 7566272Sericall: ${ALL} 7666272Seric 7766272Sericsendmail: ${BEFORE} ${OBJS} 7866272Seric ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 7966272Seric 8068774Seric#NROFF= nroff -h 8168774SericNROFF= groff -Tascii 8268774SericMANDOC= -mandoc 8366741Seric 8466272Sericaliases.0: aliases.5 8568774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8666272Seric 8766272Sericmailq.0: mailq.1 8868774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 8966272Seric 9066272Sericnewaliases.0: newaliases.1 9168774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 9266272Seric 9366272Sericsendmail.0: sendmail.8 9468774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9566272Seric 9666272Sericinstall: install-sendmail install-docs 9766272Seric 9866272Sericinstall-sendmail: sendmail 9966272Seric install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 10066272Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 10166272Seric install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 10266272Seric ${STDIR}/sendmail.st 10366272Seric install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 10466272Seric 10566272Seric# doesn't actually install them -- you may want to install pre-nroff versions 10666314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10766272Seric 10866272Sericclean: 10966314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 11066272Seric 11166272Seric# dependencies 11266272Seric# gross overkill, and yet still not quite enough.... 11366272Seric${OBJS}: sendmail.h conf.h 114*69943Seric 115*69943Sericdepend: 116