164953Seric#
264953Seric#  This Makefile is designed to work on the old "make" program.  It does
364953Seric#  not use the obj subdirectory.  It also does not install documentation
464953Seric#  automatically -- think of it as a quick start for sites that have the
564953Seric#  old make program (I recommend that you get and port the new make if you
664953Seric#  are going to be doing any signficant work on sendmail).
764953Seric#
8*64955Seric#	@(#)Makefile.dist	8.2 (Berkeley) 11/27/93
964953Seric#
1064953Seric
1164953Seric# use O=-O (usual) or O=-g (debugging)
1264953SericO=	-O
1364953Seric
1464953Seric# location of sendmail source directory
1564953SericSRCDIR=	../src
1664953Seric
1764953Seric# define the database mechanisms available for map & alias lookups:
1864953Seric#	-DNDBM -- use new DBM
1964953Seric#	-DNEWDB -- use new Berkeley DB
2064953Seric# The really old (V7) DBM library is no longer supported.
2164953Seric#
2264953SericDBMDEF=	-DNDBM -DNEWDB
2364953Seric
2464953Seric# environment definitions (e.g., -D_AIX3)
2564953SericENVDEF=
2664953Seric
2764953Seric# see also conf.h for additional compilation flags
2864953Seric
2964953Seric# include directories
3064953SericINCDIRS=-I${SRCDIR} -I/usr/sww/include/db
3164953Seric
3264953Seric# loader options
3364953SericLDOPTS=
3464953Seric
3564953Seric# library directories
3664953SericLIBDIRS=-L/usr/sww/lib
3764953Seric
3864953Seric# libraries required on your system
3964953SericLIBS=	-ldb -ldbm
4064953Seric
4164953Seric# location of makemap binary (usually /usr/sbin or /usr/etc)
4264953SericBINDIR=	${DESTDIR}/usr/sbin
4364953Seric
4464953Seric# additional .o files needed
4564953SericOBJADD=
4664953Seric
4764953Seric###################  end of user configuration flags  ######################
4864953Seric
4964953SericCFLAGS=	-I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
5064953Seric
5164953SericOBJS=	makemap.o ${OBJADD}
5264953Seric
5364953SericLINKS=	${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
54*64955SericBINOWN=	bin
55*64955SericBINGRP=	bin
56*64955SericBINMODE=555
5764953Seric
5864953SericALL=	makemap makemap.0
5964953Seric
6064953Sericall: ${ALL}
6164953Seric
6264953Sericmakemap: ${BEFORE} ${OBJS}
6364953Seric	${CC} -o makemap ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
6464953Seric
6564953Sericmakemap.0: makemap.8
6664953Seric	nroff -h -mandoc makemap.8 > makemap.0
6764953Seric
6864953Sericinstall: install-makemap install-docs
6964953Seric
7064953Sericinstall-makemap: makemap
7164953Seric	install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} makemap ${BINDIR}
7264953Seric
7364953Seric# doesn't actually install them -- you may want to install pre-nroff versions
7464953Sericinstall-docs: makemap.0
7564953Seric
7664953Sericclean:
7764953Seric	rm -f ${OBJS} makemap makemap.0
7864953Seric
7964953Seric# dependencies
8064953Seric#   gross overkill, and yet still not quite enough....
8164953Seric${OBJS}: ${SRCDIR}/conf.h
82