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