1# 2# This Makefile is designed to work on the old "make" program. 3# 4# @(#)Makefile.m4 8.22 (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# environment definitions (e.g., -D_AIX3) 20ENVDEF= -DNOT_SENDMAIL ifdef(`confENVDEF', `confENVDEF') 21 22# see also conf.h for additional compilation flags 23 24# include directories 25INCDIRS=-I${SRCDIR} confINCDIRS 26 27# loader options 28LDOPTS= ifdef(`confLDOPTS', `confLDOPTS') 29 30# library directories 31LIBDIRS=confLIBDIRS 32 33# libraries required on your system 34LIBS= ifdef(`confLIBS', `confLIBS') 35 36# location of mail.local binary (usually /usr/sbin or /usr/etc) 37EBINDIR=${DESTDIR}ifdef(`confEBINDIR', `confEBINDIR', `/usr/libexec') 38 39# additional .o files needed 40OBJADD= ifdef(`confOBJADD', `confOBJADD') 41 42undivert(1) 43 44################### end of user configuration flags ###################### 45 46BUILDBIN=confBUILDBIN 47COPTS= -I. ${INCDIRS} ${ENVDEF} 48CFLAGS= $O ${COPTS} 49 50BEFORE= snprintf.c confBEFORE 51OBJS= mail.local.o snprintf.o ${OBJADD} 52 53NROFF= ifdef(`confNROFF', `confNROFF', `groff -Tascii') 54MANDOC= ifdef(`confMANDOC', `confMANDOC', `-mandoc') 55 56INSTALL=ifdef(`confINSTALL', `confINSTALL', `install') 57BINOWN= ifdef(`confSBINOWN', `confSBINOWN', `root') 58BINGRP= ifdef(`confSBINGRP', `confSBINGRP', `bin') 59BINMODE=ifdef(`confSBINMODE', `confSBINMODE', `4555') 60 61MANOWN= ifdef(`confMANOWN', `confMANOWN', `bin') 62MANGRP= ifdef(`confMANGRP', `confMANGRP', `bin') 63MANMODE=ifdef(`confMANMODE', `confMANMODE', `444') 64 65MANROOT=${DESTDIR}ifdef(`confMANROOT', `confMANROOT', `/usr/share/man/cat') 66MAN8= ${MANROOT}ifdef(`confMAN8', `confMAN8', `8') 67MAN8EXT=ifdef(`confMAN8EXT', `confMAN8EXT', `8') 68MAN8SRC=ifdef(`confMAN8SRC', `confMAN8SRC', `0') 69 70ALL= mail.local mail.local.${MAN8SRC} 71 72all: ${ALL} 73 74mail.local: ${BEFORE} ${OBJS} 75 ${CC} -o mail.local ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 76 77snprintf.c: ${SRCDIR}/snprintf.c 78 -ln -s ${SRCDIR}/snprintf.c snprintf.c 79 80undivert(3) 81 82mail.local.${MAN8SRC}: mail.local.8 83 ${NROFF} ${MANDOC} mail.local.8 > mail.local.${MAN8SRC} 84 85install: 86 @echo "NOTE: This version of mail.local is not suited for some operating" 87 @echo " systems such as HP-UX and Solaris. Please consult the" 88 @echo " README file in the mail.local directory. You can force" 89 @echo " the install using '${MAKE} force-install'." 90 91force-install: install-mail.local install-docs 92 93install-mail.local: mail.local 94 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} mail.local ${EBINDIR} 95 96install-docs: mail.local.${MAN8SRC} 97ifdef(`confNO_MAN_INSTALL', `dnl', 98` ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} mail.local.${MAN8SRC} ${MAN8}/mail.local.${MAN8EXT}') 99 100clean: 101 rm -f ${OBJS} mail.local mail.local.${MAN8SRC} 102 103################ Dependency scripts 104include(confBUILDTOOLSDIR/M4/depend/ifdef(`confDEPEND_TYPE', `confDEPEND_TYPE', 105`generic').m4)dnl 106################ End of dependency scripts 107