1 | # |
---|
2 | # This Makefile is designed to work on the old "make" program. |
---|
3 | # |
---|
4 | # @(#)Makefile.m4 8.16 (Berkeley) 7/12/1998 |
---|
5 | # |
---|
6 | |
---|
7 | # C compiler |
---|
8 | CC= confCC |
---|
9 | |
---|
10 | # Shell |
---|
11 | SHELL= confSHELL |
---|
12 | |
---|
13 | # use O=-O (usual) or O=-g (debugging) |
---|
14 | O= ifdef(`confOPTIMIZE', `confOPTIMIZE', `-O') |
---|
15 | |
---|
16 | # location of sendmail source directory |
---|
17 | SRCDIR= ifdef(`confSRCDIR', `confSRCDIR', `../../src') |
---|
18 | |
---|
19 | # define the database mechanisms available for map & alias lookups: |
---|
20 | # -DNDBM -- use new DBM |
---|
21 | # -DNEWDB -- use new Berkeley DB |
---|
22 | # The really old (V7) DBM library is no longer supported. |
---|
23 | # |
---|
24 | MAPDEF= ifdef(`confMAPDEF', `confMAPDEF') |
---|
25 | |
---|
26 | # environment definitions (e.g., -D_AIX3) |
---|
27 | ENVDEF= ifdef(`confENVDEF', `confENVDEF') |
---|
28 | |
---|
29 | # see also conf.h for additional compilation flags |
---|
30 | |
---|
31 | # include directories |
---|
32 | INCDIRS=-I${SRCDIR} confINCDIRS |
---|
33 | |
---|
34 | # loader options |
---|
35 | LDOPTS= ifdef(`confLDOPTS', `confLDOPTS') |
---|
36 | |
---|
37 | # library directories |
---|
38 | LIBDIRS=confLIBDIRS |
---|
39 | |
---|
40 | # libraries required on your system |
---|
41 | LIBS= ifdef(`confLIBS', `confLIBS') |
---|
42 | |
---|
43 | # location of praliases binary (usually /usr/sbin or /usr/etc) |
---|
44 | SBINDIR=${DESTDIR}ifdef(`confSBINDIR', `confSBINDIR', `/usr/sbin') |
---|
45 | ATHSBINDIR=athSBINDIR |
---|
46 | |
---|
47 | # additional .o files needed |
---|
48 | OBJADD= ifdef(`confOBJADD', `confOBJADD') |
---|
49 | |
---|
50 | undivert(1) |
---|
51 | |
---|
52 | ################### end of user configuration flags ###################### |
---|
53 | |
---|
54 | BUILDBIN=confBUILDBIN |
---|
55 | COPTS= -I. ${INCDIRS} ${MAPDEF} ${ENVDEF} |
---|
56 | CFLAGS= $O ${COPTS} |
---|
57 | |
---|
58 | BEFORE= confBEFORE |
---|
59 | OBJS= praliases.o ${OBJADD} |
---|
60 | |
---|
61 | NROFF= ifdef(`confNROFF', `confNROFF', `groff -Tascii') |
---|
62 | MANDOC= ifdef(`confMANDOC', `confMANDOC', `-mandoc') |
---|
63 | |
---|
64 | INSTALL=ifdef(`confINSTALL', `confINSTALL', `install') |
---|
65 | BINOWN= ifdef(`confUBINOWN', `confUBINOWN', `bin') |
---|
66 | BINGRP= ifdef(`confUBINGRP', `confUBINGRP', `bin') |
---|
67 | BINMODE=ifdef(`confUBINMODE', `confUBINMODE', `555') |
---|
68 | |
---|
69 | MANOWN= ifdef(`confMANOWN', `confMANOWN', `bin') |
---|
70 | MANGRP= ifdef(`confMANGRP', `confMANGRP', `bin') |
---|
71 | MANMODE=ifdef(`confMANMODE', `confMANMODE', `444') |
---|
72 | |
---|
73 | MANROOT=${DESTDIR}ifdef(`confMANROOT', `confMANROOT', `/usr/share/man/cat') |
---|
74 | MAN8= ${MANROOT}ifdef(`confMAN8', `confMAN8', `8') |
---|
75 | MAN8EXT=ifdef(`confMAN8EXT', `confMAN8EXT', `8') |
---|
76 | MAN8SRC=ifdef(`confMAN8SRC', `confMAN8SRC', `0') |
---|
77 | |
---|
78 | ALL= praliases praliases.${MAN8SRC} |
---|
79 | |
---|
80 | all: ${ALL} |
---|
81 | |
---|
82 | praliases: ${BEFORE} ${OBJS} |
---|
83 | ${CC} -o praliases ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} |
---|
84 | |
---|
85 | undivert(3) |
---|
86 | |
---|
87 | praliases.${MAN8SRC}: praliases.8 |
---|
88 | ${NROFF} ${MANDOC} praliases.8 > praliases.${MAN8SRC} |
---|
89 | |
---|
90 | install: install-praliases install-docs |
---|
91 | |
---|
92 | install-praliases: praliases |
---|
93 | mkdir -p ${DESTDIR}${ATHSBINDIR} |
---|
94 | mkdir -p ${SBINDIR} |
---|
95 | ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} praliases ${DESTDIR}${ATHSBINDIR} |
---|
96 | ln -s ${ATHSBINDIR}/praliases ${SBINDIR}/praliases |
---|
97 | |
---|
98 | install-docs: praliases.${MAN8SRC} |
---|
99 | ifdef(`confNO_MAN_INSTALL', `dnl', |
---|
100 | ` mkdir -p ${MAN8} |
---|
101 | ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} praliases.${MAN8SRC} ${MAN8}/praliases.${MAN8EXT}') |
---|
102 | |
---|
103 | clean: |
---|
104 | rm -f ${OBJS} praliases |
---|
105 | |
---|
106 | ################ Dependency scripts |
---|
107 | include(confBUILDTOOLSDIR/M4/depend/ifdef(`confDEPEND_TYPE', `confDEPEND_TYPE', |
---|
108 | `generic').m4)dnl |
---|
109 | ################ End of dependency scripts |
---|