improve exit status handling for program map code
[unix-history] / usr / src / usr.sbin / sendmail / praliases / Makefile.dist
CommitLineData
f1b65b64
EA
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.1 (Berkeley) %G%
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 praliases 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= praliases.o ${OBJADD}
52
53LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
54BINOWN= bin
55BINGRP= bin
56BINMODE=555
57
58ALL= praliases praliases.0
59
60all: ${ALL}
61
62praliases: ${BEFORE} ${OBJS}
63 ${CC} -o praliases ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
64
65praliases.0: praliases.8
66 nroff -h -mandoc praliases.8 > praliases.0
67
68install: install-praliases install-docs
69
70install-praliases: praliases
71 install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} praliases ${BINDIR}
72
73# doesn't actually install them -- you may want to install pre-nroff versions
74install-docs: praliases.0
75
76clean:
77 rm -f ${OBJS} praliases praliases.0
78
79# dependencies
80# gross overkill, and yet still not quite enough....
81${OBJS}: ${SRCDIR}/conf.h