1# @(#)Makefile 8.15 (Berkeley) 9/21/96
| 1# @(#)Makefile 8.8 (Berkeley) 3/28/97
|
2
| 2
|
3VER= XX 4SUBDIR= src mailstats makemap praliases smrsh cf/cf 5FTPDIR= mastodon:/disks/barad-dur/ftp/sendmail/. 6DISTFILES=sendmail.${VER}.tar.Z sendmail.${VER}.tar.gz \ 7 RELEASE_NOTES FAQ KNOWNBUGS 8FILES= Files.base Files.cf Files.misc Files.xdoc
| 3SMDIR= ${.CURDIR}/../../contrib/sendmail/src 4.PATH: ${SMDIR}
|
9
| 5
|
10tar: sccs-check compile-world run-pax
| 6PROG= sendmail
|
11
| 7
|
12sccs-check: 13 sccs check 14 (cd src; sccs check) 15 (cd mail.local; sccs check) 16 (cd mailstats; sccs check) 17 (cd makemap; sccs check) 18 (cd praliases; sccs check) 19 (cd smrsh; sccs check) 20 (cd doc/op; sccs check) 21 (cd doc/intro; sccs check) 22 (cd doc/usenix; sccs check) 23 (cd cf; sccs check) 24 (cd cf/m4; sccs check) 25 (cd cf/mailer; sccs check) 26 (cd cf/feature; sccs check) 27 (cd cf/cf; sccs check) 28 (cd cf/ostype; sccs check) 29 (cd cf/domain; sccs check)
| 8# Define the database format to use for aliases et al. 9DBMDEF= -DNEWDB
|
30
| 10
|
31compile-world: 32 (cd src; sh makesendmail) 33 (cd mail.local; ${MAKE}) 34 (cd mailstats; ${MAKE}) 35 (cd makemap; ${MAKE}) 36 (cd praliases; ${MAKE}) 37 (cd smrsh; ${MAKE}) 38 (cd doc; PRINTER=ps ${MAKE}) 39 (cd doc; chmod 444 op/op.ps intro/intro.ps usenix/usenix.ps) 40 (cd cf/cf; ${MAKE})
| 11# If you don't want NIS alias/map support, comment out this line 12NIS= -DNIS
|
41
| 13
|
42run-pax: Files.base Files.cf Files.misc Files.xdoc 43 chmod +x src/makesendmail 44 pax -w -x tar -L \ 45 -s ",cf/domain/unspecified-domain,sendmail-${VER}/cf/domain/berkeley-only,p" \ 46 -s ",^,sendmail-${VER}/," \ 47 -f sendmail.${VER}.tar \ 48 `cat ${FILES} | grep -v ^#` 49 gzip -c sendmail.${VER}.tar > sendmail.${VER}.tar.gz 50 compress sendmail.${VER}.tar
| 14# Map extensions 15MAPS= -DMAP_REGEX
|
51
| 16
|
52ftp: sendmail.${VER}.tar.Z 53 rcp ${DISTFILES} ${FTPDIR}
| 17# If you want tcp wrapper support, uncomment the following two lines 18#TCPWRAPPERSBASEDIR= /usr/local 19#TCPWRAPPERS= -DTCPWRAPPERS -I${TCPWRAPPERSBASEDIR}/include
|
54
| 20
|
55.include <bsd.subdir.mk>
| 21CFLAGS+=-I${SMDIR} ${DBMDEF} ${NIS} ${TCPWRAPPERS} ${MAPS} 22 23SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ 24 deliver.c domain.c envelope.c err.c headers.c macro.c main.c \ 25 map.c mci.c mime.c parseaddr.c queue.c readcf.c recipient.c \ 26 safefile.c savemail.c snprintf.c srvrsmtp.c stab.c stats.c \ 27 sysexits.c trace.c udb.c usersmtp.c util.c version.c 28DPADD= ${LIBUTIL} 29LDADD= -lutil 30.if defined(TCPWRAPPERS) 31LDADD+= -L${TCPWRAPPERSBASEDIR}/lib -lwrap 32.endif 33MAN1= mailq.1 newaliases.1 34MAN5= aliases.5 35MAN8= sendmail.8 36LINKS= ${BINDIR}/sendmail /usr/bin/newaliases \ 37 ${BINDIR}/sendmail /usr/bin/mailq \ 38 ${BINDIR}/sendmail /usr/bin/hoststat \ 39 ${BINDIR}/sendmail ${BINDIR}/purgestat 40BINOWN= root 41BINMODE=4555 42 43beforeinstall: 44 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 45 ${DESTDIR}/var/log/sendmail.st 46 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/sendmail.hf \ 47 ${DESTDIR}/usr/share/misc 48 49.include <bsd.prog.mk>
|
| |