166263Seric# 266263Seric# This Makefile is designed to work on the old "make" program. It does 366263Seric# not use the obj subdirectory. It also does not install documentation 466263Seric# automatically -- think of it as a quick start for sites that have the 566263Seric# old make program (I recommend that you get and port the new make if you 666263Seric# are going to be doing any signficant work on sendmail). 766263Seric# 866263Seric# This has been tested on AIX 3.1.5 and 3.2.3e. 966263Seric# 10*69943Seric# @(#)Makefile.AIX 8.9 (Berkeley) 06/20/95 1166263Seric# 1266263Seric 1366263Seric# use O=-O (usual) or O=-g (debugging) 1466263Seric# you can use -O3 on AIX 3.2.4 or greater ONLY! 1566263SericO= -g 1666263Seric 1766263Seric# define the database mechanism used for alias lookups: 1866263Seric# -DNDBM -- use new DBM 1966263Seric# -DNEWDB -- use new Berkeley DB 2066263Seric# -DNIS -- include NIS support 2166263Seric# The really old (V7) DBM library is no longer supported. 2266263Seric# See READ_ME for a description of how these flags interact. 2366263Seric# 2466263SericDBMDEF= -DNDBM -DNEWDB -DNIS 2566263Seric# 2666263Seric# If you did not install the NEWDB on your AIX platform, use: 2766263Seric#DBMDEF=-DNDBM 2866263Seric 2966263Seric# environment definitions (e.g., -D_AIX3) 3066263SericENVDEF= -D_AIX3 3166263Seric 3266263Seric# see also conf.h for additional compilation flags 3366263Seric 3466263Seric# include directories 3568530Seric#INCDIRS=-I/usr/sww/include 3666263Seric 3766263Seric# library directories 3866263Seric#LIBDIRS=-L/usr/sww/lib 3966263Seric 4069768Seric# libraries required on your system -- add -ls if you define USEGETCONFATTR 4169768SericLIBS= -ldbm -ldb 4266263Seric# 4366263Seric# If you did not install the NEWDB on your AIX platform, use: 4466263Seric#LIBS= -ldbm 4566263Seric 4666263Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4766263SericBINDIR= ${DESTDIR}/usr/sbin 4866263Seric 4966263Seric# location of sendmail.st file (usually /var/log or /usr/lib) 5066263SericSTDIR= ${DESTDIR}/etc 5166263Seric 5266263Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5366263SericHFDIR= ${DESTDIR}/usr/lib 5466263Seric 5566263Seric# additional .o files needed 5666263SericOBJADD= 5766263Seric 5866263SericINSTALL=/usr/ucb/install 5966263Seric 6066263Seric################### end of user configuration flags ###################### 6166263Seric 6266263SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 6366263Seric 6466263SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6566263Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 6667546Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6766263Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6866263Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6966263Seric 7066263SericLINKS= ${DESTDIR}/usr/sbin/newaliases ${DESTDIR}/usr/sbin/mailq 7166263SericBINOWN= root 7266263SericBINGRP= system 7366263SericBINMODE=6555 7466263Seric 7566263SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7666263Seric 7766263Sericall: ${ALL} 7866263Seric 7966263Sericsendmail: ${BEFORE} ${OBJS} 8066263Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 8166263Seric 8268774Seric#NROFF= nroff -h 8368774SericNROFF= groff -Tascii 8468774SericMANDOC= -mandoc 8566741Seric 8666263Sericaliases.0: aliases.5 8768774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8866263Seric 8966263Sericmailq.0: mailq.1 9068774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 9166263Seric 9266263Sericnewaliases.0: newaliases.1 9368774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 9466263Seric 9566263Sericsendmail.0: sendmail.8 9668774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9766263Seric 9866263Sericinstall: install-sendmail install-docs 9966263Seric 10066263Sericinstall-sendmail: sendmail 10166263Seric ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 10266263Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 10366263Seric ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 10466263Seric ${STDIR}/sendmail.st 10566263Seric ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 10666263Seric 10766263Seric# doesn't actually install them -- you may want to install pre-nroff versions 10866314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10966263Seric 11066263Sericclean: 11166314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 11266263Seric 11366263Seric# dependencies 11466263Seric# gross overkill, and yet still not quite enough.... 11566263Seric${OBJS}: sendmail.h conf.h 116*69943Seric 117*69943Sericdepend: 118