166267Seric# 266267Seric# This Makefile is designed to work on the old "make" program. It does 366267Seric# not use the obj subdirectory. It also does not install documentation 466267Seric# automatically -- think of it as a quick start for sites that have the 566267Seric# old make program (I recommend that you get and port the new make if you 666267Seric# are going to be doing any signficant work on sendmail). 766267Seric# 868871Seric# This has been tested on HP-UX 9.05 on 7xx series and HP-UX 9.04 968871Seric# on 8xx series. 1066267Seric# 11*69943Seric# @(#)Makefile.HP-UX 8.12 (Berkeley) 06/20/95 1266267Seric# 1366267Seric 1469901Seric# if running the unbundled compiler, uncomment the following 1569901Seric#CC= cc -Ae 1669846Seric 1766267Seric# use O=-O (usual) or O=-g (debugging) 1866267Seric# +O is OK on 7xx, and 300xx at 9.0 1966267SericO= +O1 2066267Seric 2166267Seric# define the database mechanism used for alias lookups: 2266267Seric# -DNDBM -- use new DBM 2366267Seric# -DNEWDB -- use new Berkeley DB 2466267Seric# -DNIS -- include NIS support 2566267Seric# The really old (V7) DBM library is no longer supported. 2666267Seric# See READ_ME for a description of how these flags interact. 2766267Seric# 2866267SericDBMDEF= -DNDBM -DNEWDB -DNIS 2966267Seric 3066267Seric# environment definitions (e.g., -D_AIX3) 3169884SericENVDEF= 3266267Seric 3366267Seric# see also conf.h for additional compilation flags 3466267Seric 3566267Seric# include directories 3668530SericINCDIRS=-I/usr/sww/include 3766267Seric 3866267Seric# library directories 3966267SericLIBDIRS=-L/usr/sww/lib 4066267Seric 4166267Seric# libraries required on your system 4268530Seric# delete -lresolv if you are not running BIND 4.9.x 4368871SericLIBS= -ldb -lndbm -lresolv 4466267Seric 4566267Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4666267SericBINDIR= ${DESTDIR}/usr/lib 4766267Seric 4866267Seric# location of sendmail.st file (usually /var/log or /usr/lib) 4966267SericSTDIR= ${DESTDIR}/usr/lib 5066267Seric 5166267Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5266267SericHFDIR= ${DESTDIR}/usr/lib 5366267Seric 5466267Seric# additional .o files needed 5566267SericOBJADD= 5666267Seric 5766267Seric 5866267Seric################### end of user configuration flags ###################### 5966267Seric 6066267SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 6166267Seric 6266267SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6366267Seric 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 \ 6566267Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6666267Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6766267Seric 6866267SericLINKS= ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq 6966267SericBINOWN= root 7066267SericBINGRP= mail 7166267SericBINMODE=6555 7266267Seric 7366267SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7466267Seric 7566267Sericall: ${ALL} 7666267Seric 7766267Sericsendmail: ${BEFORE} ${OBJS} 7866267Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 7966267Seric 8068774Seric#NROFF= nroff -h 8168774SericNROFF= groff -Tascii 8268774SericMANDOC= -mandoc 8366741Seric 8466267Sericaliases.0: aliases.5 8568774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8666267Seric 8766267Sericmailq.0: mailq.1 8868774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 8966267Seric 9066267Sericnewaliases.0: newaliases.1 9168774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 9266267Seric 9366267Sericsendmail.0: sendmail.8 9468774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9566267Seric 9666267Sericinstall: install-sendmail install-docs 9766267Seric 9866267Sericinstall-sendmail: sendmail 9966267Seric cpset sendmail ${BINDIR} ${BINMODE} ${BINOWN} ${BINGRP} 10066267Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 10166267Seric cpset /dev/null ${STDIR}/sendmail.st 644 ${BINOWN} ${BINGRP} 10266267Seric cpset sendmail.hf ${HFDIR} 444 ${BINOWN} ${BINGRP} 10366267Seric 10466267Seric# doesn't actually install them -- you may want to install pre-nroff versions 10566314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10666267Seric 10766267Sericclean: 10866314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 10966267Seric 11066267Seric# dependencies 11166267Seric# gross overkill, and yet still not quite enough.... 11266267Seric${OBJS}: sendmail.h conf.h 113*69943Seric 114*69943Sericdepend: 115