1# 2# This Makefile is designed to work on the old "make" program. It does 3# not use the obj subdirectory. It also does not install documentation 4# automatically -- think of it as a quick start for sites that have the 5# old make program (I recommend that you get and port the new make if you 6# are going to be doing any signficant work on sendmail). 7# 8# This has been tested on Ultrix. 9# 10# @(#)Makefile.dist 6.5 (Berkeley) 02/26/93 11# 12 13# use O=-O (usual) or O=-g (debugging) 14O= -O 15 16# define the database mechanism used for alias lookups: 17# -DNDBM -- use new DBM 18# -DNEWDB -- use new Berkeley DB 19# -DNDBM -DNEWDB -- use both new DBM and new Berkeley DB 20# -DNDBM -DNEWDB -DYPCOMPAT -- use both plus YP compatility 21# The really old (V7) DBM library is no longer supported. 22# If YPCOMPAT is defined and /var/yp/Makefile exists, sendmail will build 23# both the NEWDB and DBM libraries (the DBM just for YP). 24# 25DBMDEF= -DNDBM -DNEWDB 26 27# define the load average calculation on your system: -DLA_TYPE=LA_INT, 28# -DLA_TYPE=LA_FLOAT, -DLA_TYPE=LA_SUBR, or -DLA_TYPE=LA_ZERO 29# leave undefined to use internal guess 30#LADEF= -DLA_TYPE=LA_SUBR 31 32# define UNSETENV if you need to compile in a local version of setenv 33#ENVDEF= -DUNSETENV 34 35# see also conf.h for additional compilation flags 36 37# include directories 38INCDIRS=-I/usr/sww/include/db 39 40# library directories 41LIBDIRS=-L/usr/sww/lib 42 43# libraries required on your system 44LIBS= -ldb -ldbm 45 46# location of sendmail binary (usually /usr/sbin or /usr/lib) 47BINDIR= ${DESTDIR}/usr/sbin 48 49# location of sendmail.st file (usually /var/log or /usr/lib) 50STDIR= ${DESTDIR}/var/log 51 52# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 53HFDIR= ${DESTDIR}/usr/share/misc 54 55################### end of user configuration flags ###################### 56 57CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${LADEF} ${ENVDEF} 58 59OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 60 deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 61 map.o mci.o parseaddr.o queue.o readcf.o recipient.o \ 62 savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 63 trace.o udb.o usersmtp.o util.o version.o 64 65LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 66BINOWN= root 67BINGRP= kmem 68BINMODE=6555 69 70sendmail: ${OBJS} 71 ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 72 73aliases.0: aliases.5 74 nroff -h -mandoc aliases.5 > aliases.0 75 76newaliases.0: newaliases.1 77 nroff -h -mandoc newaliases.1 > newaliases.0 78 79sendmail.0: sendmail.8 80 nroff -h -mandoc sendmail.8 > sendmail.0 81 82install: install-sendmail install-docs 83 84install-sendmail: sendmail 85 install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 86 for i in ${LINKS}; do ; rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 87 install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \ 88 ${STDIR}/sendmail.st 89 install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 90 91# doesn't actually install them -- you may want to install pre-nroff versions 92install-docs: aliases.0 newaliases.0 sendmail.0 93 94clean: 95 rm -f ${OBJS} sendmail aliases.0 newaliases.0 sendmail.0 96 97# dependencies 98# gross overkill, and yet still not quite enough.... 99${OBJS}: sendmail.h conf.h 100