167431Seric# 267431Seric# This Makefile is designed to work on the old "make" program. It does 367431Seric# not use the obj subdirectory. It also does not install documentation 467431Seric# automatically -- think of it as a quick start for sites that have the 567431Seric# old make program (I recommend that you get and port the new make if you 667431Seric# are going to be doing any signficant work on sendmail). 767431Seric# 867431Seric# Tandem Support from Rick McCarty <mccarty@mpd.tandem.com>. 967434Seric# (I don't think this actually compiles cleanly -- I had trouble 1067434Seric# integrating Rick's changes. EPA 6/94) 1167431Seric# 12*69943Seric# @(#)Makefile.NonStop-UX 8.5 (Berkeley) 06/20/95 1367431Seric# 1467431Seric 1567431Seric# make sure the shell constructs below use the right shell 1667431SericSHELL= /bin/sh 1767431Seric 1867431Seric# use O=-O (usual) or O=-g (debugging) 1967431SericO= -O 2067431Seric 2167431SericCC= gcc 2267431Seric 2367431Seric# define the database mechanism used for alias lookups: 2467431Seric# -DNDBM -- use new DBM 2567431Seric# -DNEWDB -- use new Berkeley DB 2667431Seric# -DNIS -- include NIS support 2767431Seric# The really old (V7) DBM library is no longer supported. 2867431Seric# See READ_ME for a description of how these flags interact. 2967431Seric# 3067431SericDBMDEF= -DNDBM 3167431Seric 3267431Seric# environment definitions (e.g., -D_AIX3) 3367431SericENVDEF= -DNonStop_UX_BXX -D_SVID 3467431Seric 3567431Seric# see also conf.h for additional compilation flags 3667431Seric 3767431Seric# include directories 3867431SericINCDIRS=-I/usr/include -I/usr/ucbinclude 3967431Seric 4067431Seric# library directories 4167431SericLIBDIRS=-L/usr/ucblib 4267431Seric 4367431Seric# libraries required on your system 4467431SericLIBS= -lresolv -lsocket -lnsl -lelf -lucb 4567431Seric 4667431Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4767431SericBINDIR= ${DESTDIR}/usr/ucblib 4867431Seric 4967431Seric# location of sendmail.st file (usually /var/log or /usr/lib) 5067431SericSTDIR= ${DESTDIR}/usr/ucblib 5167431Seric 5267431Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5367431SericHFDIR= ${DESTDIR}/usr/ucblib 5467431Seric 5567431Seric# additional .o files needed 5667431SericOBJADD= 5767431Seric 5867431Seric################### end of user configuration flags ###################### 5967431Seric 6067431SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 6167431Seric 6267431SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6367431Seric 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 \ 6567431Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6667431Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6767431Seric 6867431SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 6967431SericBINOWN= root 7067431SericBINGRP= mail 7167431SericBINMODE=6555 7267431SericINSTALL=/usr/ucb/install 7367431Seric 7467431SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7567431Seric 7667431Sericall: ${ALL} 7767431Seric 7867431Sericsendmail: ${BEFORE} ${OBJS} 7967431Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 8067431Seric 8168774Seric#NROFF= nroff -h 8268774SericNROFF= groff -Tascii 8368774SericMANDOC= -mandoc 8467431Seric 8567431Sericaliases.0: aliases.5 8668774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8767431Seric 8867431Sericmailq.0: mailq.1 8968774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 9067431Seric 9167431Sericnewaliases.0: newaliases.1 9268774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 9367431Seric 9467431Sericsendmail.0: sendmail.8 9568774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9667431Seric 9767431Sericinstall: install-sendmail install-docs 9867431Seric 9967431Sericinstall-sendmail: sendmail 10067431Seric ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 10167431Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 10267431Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 10367431Seric ${STDIR}/sendmail.st 10467431Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 10567431Seric 10667431Seric# doesn't actually install them -- you may want to install pre-nroff versions 10767431Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10867431Seric 10967431Sericclean: 11067431Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 11167431Seric 11267431Seric# dependencies 11367431Seric# gross overkill, and yet still not quite enough.... 11467431Seric${OBJS}: sendmail.h conf.h 115*69943Seric 116*69943Sericdepend: 117