source: trunk/third/sendmail/praliases/Makefile.m4 @ 13553

Revision 13553, 2.9 KB checked in by ghudson, 25 years ago (diff)
Create install directories.
Line 
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
8CC=     confCC
9
10# Shell
11SHELL=  confSHELL
12
13# use O=-O (usual) or O=-g (debugging)
14O=      ifdef(`confOPTIMIZE', `confOPTIMIZE', `-O')
15
16# location of sendmail source directory
17SRCDIR= 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#
24MAPDEF= ifdef(`confMAPDEF', `confMAPDEF')
25
26# environment definitions (e.g., -D_AIX3)
27ENVDEF= ifdef(`confENVDEF', `confENVDEF')
28
29# see also conf.h for additional compilation flags
30
31# include directories
32INCDIRS=-I${SRCDIR} confINCDIRS
33
34# loader options
35LDOPTS= ifdef(`confLDOPTS', `confLDOPTS')
36
37# library directories
38LIBDIRS=confLIBDIRS
39
40# libraries required on your system
41LIBS=   ifdef(`confLIBS', `confLIBS')
42
43# location of praliases binary (usually /usr/sbin or /usr/etc)
44SBINDIR=${DESTDIR}ifdef(`confSBINDIR', `confSBINDIR', `/usr/sbin')
45ATHSBINDIR=athSBINDIR
46
47# additional .o files needed
48OBJADD= ifdef(`confOBJADD', `confOBJADD')
49
50undivert(1)
51
52###################  end of user configuration flags  ######################
53
54BUILDBIN=confBUILDBIN
55COPTS=  -I. ${INCDIRS} ${MAPDEF} ${ENVDEF}
56CFLAGS= $O ${COPTS}
57
58BEFORE= confBEFORE
59OBJS=   praliases.o ${OBJADD}
60
61NROFF=  ifdef(`confNROFF', `confNROFF', `groff -Tascii')
62MANDOC= ifdef(`confMANDOC', `confMANDOC', `-mandoc')
63
64INSTALL=ifdef(`confINSTALL', `confINSTALL', `install')
65BINOWN= ifdef(`confUBINOWN', `confUBINOWN', `bin')
66BINGRP= ifdef(`confUBINGRP', `confUBINGRP', `bin')
67BINMODE=ifdef(`confUBINMODE', `confUBINMODE', `555')
68
69MANOWN= ifdef(`confMANOWN', `confMANOWN', `bin')
70MANGRP= ifdef(`confMANGRP', `confMANGRP', `bin')
71MANMODE=ifdef(`confMANMODE', `confMANMODE', `444')
72
73MANROOT=${DESTDIR}ifdef(`confMANROOT', `confMANROOT', `/usr/share/man/cat')
74MAN8=   ${MANROOT}ifdef(`confMAN8', `confMAN8', `8')
75MAN8EXT=ifdef(`confMAN8EXT', `confMAN8EXT', `8')
76MAN8SRC=ifdef(`confMAN8SRC', `confMAN8SRC', `0')
77
78ALL=    praliases praliases.${MAN8SRC}
79
80all: ${ALL}
81
82praliases: ${BEFORE} ${OBJS}
83        ${CC} -o praliases ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
84
85undivert(3)
86
87praliases.${MAN8SRC}: praliases.8
88        ${NROFF} ${MANDOC} praliases.8 > praliases.${MAN8SRC}
89
90install: install-praliases install-docs
91
92install-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
98install-docs: praliases.${MAN8SRC}
99ifdef(`confNO_MAN_INSTALL', `dnl',
100`       mkdir -p ${MAN8}
101        ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} praliases.${MAN8SRC} ${MAN8}/praliases.${MAN8EXT}')
102
103clean:
104        rm -f ${OBJS} praliases
105
106################  Dependency scripts
107include(confBUILDTOOLSDIR/M4/depend/ifdef(`confDEPEND_TYPE', `confDEPEND_TYPE',
108`generic').m4)dnl
109################  End of dependency scripts
Note: See TracBrowser for help on using the repository browser.