169457Seric # 269457Seric # This Makefile is designed to work on the old "make" program. It does 369457Seric # not use the obj subdirectory. It also does not install documentation 469457Seric # automatically -- think of it as a quick start for sites that have the 569457Seric # old make program (I recommend that you get and port the new make if you 669457Seric # are going to be doing any signficant work on sendmail). 769457Seric # 869457Seric # This has been tested on NEWS-OS 6.0.3 969457Seric # 10*69943Seric # @(#)Makefile.NEWS-OS.6.x 8.3 (Berkeley) 06/20/95 1169457Seric # 1269457Seric 1369457Seric # use O=-O (usual) or O=-g (debugging) 1469457Seric O= 1569457Seric 1669457Seric # make sure that /bin/cc is used (do not use /usr/ucb/cc). 1769457Seric CC= /bin/cc 1869457Seric 1969457Seric # define the database mechanism used for alias lookups: 2069457Seric # -DNDBM -- use new DBM 2169457Seric # -DNEWDB -- use new Berkeley DB 2269457Seric # -DNIS -- include NIS support 2369457Seric # The really old (V7) DBM library is no longer supported. 2469457Seric # See READ_ME for a description of how these flags interact. 2569457Seric # 2669457Seric DBMDEF= -DNDBM -DNIS 2769457Seric 2869457Seric # environment definitions (e.g., -D_AIX3) 2969647Seric # define SYSLOG_BUFSIZE=256 if you have a problem on syslog buffer size 3069647Seric # define SPT_TYPE=SPT_NONE if you are using NEWS-OS 6.0.1 3169647Seric ENVDEF= -DSYSLOG_BUFSIZE=256 # -DSPT_TYPE=SPT_NONE 3269457Seric 3369457Seric # see also conf.h for additional compilation flags 3469457Seric 3569457Seric # include directories 3669457Seric INCDIRS=-I/usr/sww/include 3769457Seric 3869457Seric # library directories 3969457Seric LIBDIRS=-L/usr/sww/lib 4069457Seric 4169457Seric # libraries required on your system 4269457Seric # delete -l44bsd if you are not running BIND 4.9.x 4369457Seric # -lndbm can be used instead of ndbm.o with NEWS-OS 6.1 or later 4469457Seric LIBS= ndbm.o -lelf -lsocket -lnsl -lresolv # -l44bsd # with NDBM 4569457Seric #LIBS= -lelf -lsocket -lnsl -ldb -lresolv # -l44bsd # with NEWDB 4669457Seric 4769457Seric # location of sendmail binary (usually /usr/sbin or /usr/lib) 4869457Seric BINDIR= ${DESTDIR}/usr/lib 4969457Seric 5069457Seric # location of sendmail.st file (usually /var/log or /usr/lib) 5169457Seric STDIR= ${DESTDIR}/etc 5269457Seric 5369457Seric # location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5469457Seric HFDIR= ${DESTDIR}/usr/lib 5569457Seric 5669457Seric # additional .o files needed 5769457Seric OBJADD= 5869457Seric 5969457Seric # things to be made before compilation begins 6069457Seric BEFORE= sysexits.h ndbm.o 6169457Seric 6269457Seric ################### end of user configuration flags ###################### 6369457Seric 6469457Seric CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 6569457Seric 6669457Seric OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6769457Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 6869457Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6969457Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 7069457Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 7169457Seric 7269457Seric LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 7369457Seric BINOWN= root 7469457Seric BINGRP= sys 7569457Seric BINMODE=6555 7669457Seric INSTALL=/usr/ucb/install 7769457Seric 7869457Seric ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7969457Seric 8069457Seric all: ${ALL} 8169457Seric 8269457Seric sendmail: ${BEFORE} ${OBJS} 8369457Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 8469457Seric 8569457Seric sysexits.h: 8669457Seric ln -s /usr/ucbinclude/sysexits.h . 8769457Seric 8869457Seric ndbm.o: 8969457Seric if [ ! -f /usr/include/ndbm.h ]; then \ 9069647Seric ln -s /usr/ucbinclude/ndbm.h .; \ 9169457Seric fi; \ 9269457Seric if [ -f /usr/lib/libndbm.a ]; then \ 9369457Seric ar x /usr/lib/libndbm.a ndbm.o; \ 9469457Seric else \ 9569457Seric ar x /usr/ucblib/libucb.a ndbm.o; \ 9669457Seric fi; \ 9769457Seric 9869647Seric #NROFF= nroff -h 9969647Seric NROFF= groff -Tascii 10069647Seric MANDOC= -mandoc 10169457Seric 10269457Seric aliases.0: aliases.5 10369647Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 10469457Seric 10569457Seric mailq.0: mailq.1 10669647Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 10769457Seric 10869457Seric newaliases.0: newaliases.1 10969647Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 11069457Seric 11169457Seric sendmail.0: sendmail.8 11269647Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 11369457Seric 11469457Seric install: install-sendmail install-docs 11569457Seric 11669457Seric install-sendmail: sendmail 11769457Seric ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 11869457Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 11969457Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 12069457Seric ${STDIR}/sendmail.st 12169457Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 12269457Seric 12369457Seric # doesn't actually install them -- you may want to install pre-nroff versions 12469457Seric install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 12569457Seric 12669457Seric clean: 12769457Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 12869457Seric 12969457Seric # dependencies 13069457Seric # gross overkill, and yet still not quite enough.... 13169457Seric ${OBJS}: sendmail.h conf.h 132*69943Seric 133*69943Seric depend: 134