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).
8 # @(#)Makefile.dist 8.4 (Berkeley) 9/1/95
11 # use O=-O (usual) or O=-g (debugging)
14 # location of sendmail source directory
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.
22 DBMDEF= -DNDBM -DNEWDB
24 # environment definitions (e.g., -D_AIX3)
27 # see also conf.h for additional compilation flags
30 INCDIRS=-I${SRCDIR} -I/usr/sww/include
36 LIBDIRS=-L/usr/sww/lib
38 # libraries required on your system
41 # location of makemap binary (usually /usr/sbin or /usr/etc)
42 BINDIR= ${DESTDIR}/usr/sbin
44 # additional .o files needed
47 ################### end of user configuration flags ######################
49 CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
51 OBJS= makemap.o ${OBJADD}
53 LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
58 ALL= makemap makemap.0
62 makemap: ${BEFORE} ${OBJS}
63 ${CC} -o makemap ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
70 ${NROFF} ${MANDOC} makemap.8 > makemap.0
72 install: install-makemap install-docs
74 install-makemap: makemap
75 install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} makemap ${BINDIR}
77 # doesn't actually install them -- you may want to install pre-nroff versions
78 install-docs: makemap.0
81 rm -f ${OBJS} makemap makemap.0
84 # gross overkill, and yet still not quite enough....
85 ${OBJS}: ${SRCDIR}/conf.h