Commit | Line | Data |
---|---|---|
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) | |
12 | O= -O | |
13 | ||
14 | # location of sendmail source directory | |
15 | SRCDIR= ../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 | # | |
22 | DBMDEF= -DNDBM -DNEWDB | |
23 | ||
24 | # environment definitions (e.g., -D_AIX3) | |
25 | ENVDEF= | |
26 | ||
27 | # see also conf.h for additional compilation flags | |
28 | ||
29 | # include directories | |
30 | INCDIRS=-I${SRCDIR} -I/usr/sww/include/db | |
31 | ||
32 | # loader options | |
33 | LDOPTS= | |
34 | ||
35 | # library directories | |
36 | LIBDIRS=-L/usr/sww/lib | |
37 | ||
38 | # libraries required on your system | |
39 | LIBS= -ldb -ldbm | |
40 | ||
41 | # location of praliases binary (usually /usr/sbin or /usr/etc) | |
42 | BINDIR= ${DESTDIR}/usr/sbin | |
43 | ||
44 | # additional .o files needed | |
45 | OBJADD= | |
46 | ||
47 | ################### end of user configuration flags ###################### | |
48 | ||
49 | CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} | |
50 | ||
51 | OBJS= praliases.o ${OBJADD} | |
52 | ||
53 | LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq | |
54 | BINOWN= bin | |
55 | BINGRP= bin | |
56 | BINMODE=555 | |
57 | ||
58 | ALL= praliases praliases.0 | |
59 | ||
60 | all: ${ALL} | |
61 | ||
62 | praliases: ${BEFORE} ${OBJS} | |
63 | ${CC} -o praliases ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} | |
64 | ||
65 | praliases.0: praliases.8 | |
66 | nroff -h -mandoc praliases.8 > praliases.0 | |
67 | ||
68 | install: install-praliases install-docs | |
69 | ||
70 | install-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 | |
74 | install-docs: praliases.0 | |
75 | ||
76 | clean: | |
77 | rm -f ${OBJS} praliases praliases.0 | |
78 | ||
79 | # dependencies | |
80 | # gross overkill, and yet still not quite enough.... | |
81 | ${OBJS}: ${SRCDIR}/conf.h |