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') 45 46# additional .o files needed 47OBJADD= ifdef(`confOBJADD', `confOBJADD') 48 49undivert(1) 50 51################### end of user configuration flags ###################### 52 53BUILDBIN=confBUILDBIN 54COPTS= -I. ${INCDIRS} ${MAPDEF} ${ENVDEF} 55CFLAGS= $O ${COPTS} 56 57BEFORE= confBEFORE 58OBJS= praliases.o ${OBJADD} 59 60NROFF= ifdef(`confNROFF', `confNROFF', `groff -Tascii') 61MANDOC= ifdef(`confMANDOC', `confMANDOC', `-mandoc') 62 63INSTALL=ifdef(`confINSTALL', `confINSTALL', `install') 64BINOWN= ifdef(`confUBINOWN', `confUBINOWN', `bin') 65BINGRP= ifdef(`confUBINGRP', `confUBINGRP', `bin') 66BINMODE=ifdef(`confUBINMODE', `confUBINMODE', `555') 67 68MANOWN= ifdef(`confMANOWN', `confMANOWN', `bin') 69MANGRP= ifdef(`confMANGRP', `confMANGRP', `bin') 70MANMODE=ifdef(`confMANMODE', `confMANMODE', `444') 71 72MANROOT=${DESTDIR}ifdef(`confMANROOT', `confMANROOT', `/usr/share/man/cat') 73MAN8= ${MANROOT}ifdef(`confMAN8', `confMAN8', `8') 74MAN8EXT=ifdef(`confMAN8EXT', `confMAN8EXT', `8') 75MAN8SRC=ifdef(`confMAN8SRC', `confMAN8SRC', `0') 76 77ALL= praliases praliases.${MAN8SRC} 78 79all: ${ALL} 80 81praliases: ${BEFORE} ${OBJS} 82 ${CC} -o praliases ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 83 84undivert(3) 85 86praliases.${MAN8SRC}: praliases.8 87 ${NROFF} ${MANDOC} praliases.8 > praliases.${MAN8SRC} 88 89install: install-praliases install-docs 90 91install-praliases: praliases 92 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} praliases ${SBINDIR} 93 94install-docs: praliases.${MAN8SRC} 95ifdef(`confNO_MAN_INSTALL', `dnl', 96` ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} praliases.${MAN8SRC} ${MAN8}/praliases.${MAN8EXT}') 97 98clean: 99 rm -f ${OBJS} praliases praliases.${MAN8SRC} 100 101################ Dependency scripts 102include(confBUILDTOOLSDIR/M4/depend/ifdef(`confDEPEND_TYPE', `confDEPEND_TYPE', 103`generic').m4)dnl 104################ End of dependency scripts 105