1*64954Seric# 2*64954Seric# This Makefile is designed to work on the old "make" program. It does 3*64954Seric# not use the obj subdirectory. It also does not install documentation 4*64954Seric# automatically -- think of it as a quick start for sites that have the 5*64954Seric# old make program (I recommend that you get and port the new make if you 6*64954Seric# are going to be doing any signficant work on sendmail). 7*64954Seric# 8*64954Seric# @(#)Makefile.dist 8.1 (Berkeley) 11/27/93 9*64954Seric# 10*64954Seric 11*64954Seric# use O=-O (usual) or O=-g (debugging) 12*64954SericO= -O 13*64954Seric 14*64954Seric# location of sendmail source directory 15*64954SericSRCDIR= ../src 16*64954Seric 17*64954Seric# define the database mechanisms available for map & alias lookups: 18*64954Seric# -DNDBM -- use new DBM 19*64954Seric# -DNEWDB -- use new Berkeley DB 20*64954Seric# The really old (V7) DBM library is no longer supported. 21*64954Seric# 22*64954SericDBMDEF= -DNDBM -DNEWDB 23*64954Seric 24*64954Seric# environment definitions (e.g., -D_AIX3) 25*64954SericENVDEF= 26*64954Seric 27*64954Seric# see also conf.h for additional compilation flags 28*64954Seric 29*64954Seric# include directories 30*64954SericINCDIRS=-I${SRCDIR} -I/usr/sww/include/db 31*64954Seric 32*64954Seric# loader options 33*64954SericLDOPTS= 34*64954Seric 35*64954Seric# library directories 36*64954SericLIBDIRS=-L/usr/sww/lib 37*64954Seric 38*64954Seric# libraries required on your system 39*64954SericLIBS= -ldb -ldbm 40*64954Seric 41*64954Seric# location of praliases binary (usually /usr/sbin or /usr/etc) 42*64954SericBINDIR= ${DESTDIR}/usr/sbin 43*64954Seric 44*64954Seric# additional .o files needed 45*64954SericOBJADD= 46*64954Seric 47*64954Seric################### end of user configuration flags ###################### 48*64954Seric 49*64954SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 50*64954Seric 51*64954SericOBJS= praliases.o ${OBJADD} 52*64954Seric 53*64954SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 54*64954SericBINOWN= bin 55*64954SericBINGRP= bin 56*64954SericBINMODE=555 57*64954Seric 58*64954SericALL= praliases praliases.0 59*64954Seric 60*64954Sericall: ${ALL} 61*64954Seric 62*64954Sericpraliases: ${BEFORE} ${OBJS} 63*64954Seric ${CC} -o praliases ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 64*64954Seric 65*64954Sericpraliases.0: praliases.8 66*64954Seric nroff -h -mandoc praliases.8 > praliases.0 67*64954Seric 68*64954Sericinstall: install-praliases install-docs 69*64954Seric 70*64954Sericinstall-praliases: praliases 71*64954Seric install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} praliases ${BINDIR} 72*64954Seric 73*64954Seric# doesn't actually install them -- you may want to install pre-nroff versions 74*64954Sericinstall-docs: praliases.0 75*64954Seric 76*64954Sericclean: 77*64954Seric rm -f ${OBJS} praliases praliases.0 78*64954Seric 79*64954Seric# dependencies 80*64954Seric# gross overkill, and yet still not quite enough.... 81*64954Seric${OBJS}: ${SRCDIR}/conf.h 82