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