169456Seric # 269456Seric # This Makefile is designed to work on the old "make" program. It does 369456Seric # not use the obj subdirectory. It also does not install documentation 469456Seric # automatically -- think of it as a quick start for sites that have the 569456Seric # old make program (I recommend that you get and port the new make if you 669456Seric # are going to be doing any signficant work on sendmail). 769456Seric # 8*69943Seric # @(#)Makefile.NEWS-OS.4.x 8.3 (Berkeley) 06/20/95 969456Seric # 1069456Seric 1169456Seric # use O=-O (usual) or O=-g (debugging) 1269456Seric O= -O 1369456Seric 1469456Seric # define the database mechanisms available for map & alias lookups: 1569456Seric # -DNDBM -- use new DBM 1669456Seric # -DNEWDB -- use new Berkeley DB 1769456Seric # -DNIS -- include NIS support 1869456Seric # The really old (V7) DBM library is no longer supported. 1969456Seric # See READ_ME for a description of how these flags interact. 2069456Seric # 2169456Seric DBMDEF= -DNDBM 2269456Seric 2369456Seric # environment definitions (e.g., -D_AIX3) 2469456Seric ENVDEF= 2569456Seric 2669456Seric # see also conf.h for additional compilation flags 2769456Seric 2869456Seric # include directories 2969456Seric INCDIRS=-I/usr/sww/include 3069456Seric 3169456Seric # loader options 3269456Seric LDOPTS= 3369456Seric 3469456Seric # library directories 3569456Seric LIBDIRS=-L/usr/sww/lib 3669456Seric 3769456Seric # libraries required on your system 3869456Seric LIBS= -lmld 3969456Seric 4069456Seric # location of sendmail binary (usually /usr/sbin or /usr/lib) 4169456Seric BINDIR= ${DESTDIR}/usr/lib 4269456Seric 4369456Seric # location of sendmail.st file (usually /var/log or /usr/lib) 4469456Seric STDIR= ${DESTDIR}/usr/lib 4569456Seric 4669456Seric # location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 4769456Seric HFDIR= ${DESTDIR}/usr/lib 4869456Seric 4969456Seric # additional .o files needed 5069456Seric OBJADD= 5169456Seric 5269456Seric ################### end of user configuration flags ###################### 5369456Seric 5469456Seric CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 5569456Seric 5669456Seric OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 5769456Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 5869456Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 5969456Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6069456Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6169456Seric 6269456Seric LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 6369456Seric BINOWN= root 6469456Seric BINGRP= kmem 6569456Seric BINMODE=6555 6669456Seric 6769456Seric ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 6869456Seric 6969456Seric all: ${ALL} 7069456Seric 7169456Seric sendmail: ${BEFORE} ${OBJS} 7269456Seric ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 7369456Seric 7469647Seric #NROFF= nroff -h 7569647Seric NROFF= groff -Tascii 7669647Seric MANDOC= -mandoc 7769456Seric 7869456Seric aliases.0: aliases.5 7969647Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8069456Seric 8169456Seric mailq.0: mailq.1 8269647Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 8369456Seric 8469456Seric newaliases.0: newaliases.1 8569647Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 8669456Seric 8769456Seric sendmail.0: sendmail.8 8869647Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 8969456Seric 9069456Seric INSTALL=install 9169456Seric 9269456Seric install: install-sendmail install-docs 9369456Seric 9469456Seric install-sendmail: sendmail 9569456Seric ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 9669456Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 9769456Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 9869456Seric ${STDIR}/sendmail.st 9969456Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 10069456Seric 10169456Seric # doesn't actually install them -- you may want to install pre-nroff versions 10269456Seric install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10369456Seric 10469456Seric clean: 10569456Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 10669456Seric 10769456Seric # dependencies 10869456Seric # gross overkill, and yet still not quite enough.... 10969456Seric ${OBJS}: sendmail.h conf.h 110*69943Seric 111*69943Seric depend: 112