Makefile.m4 revision 38032
138032Speter# 238032Speter# This Makefile is designed to work on the old "make" program. 338032Speter# 438032Speter# @(#)Makefile.m4 8.21 (Berkeley) 6/4/98 538032Speter# 638032Speter 738032Speter# C compiler 838032SpeterCC= confCC 938032Speter 1038032Speter# Shell 1138032SpeterSHELL= confSHELL 1238032Speter 1338032Speter# use O=-O (usual) or O=-g (debugging) 1438032SpeterO= ifdef(`confOPTIMIZE', `confOPTIMIZE', `-O') 1538032Speter 1638032Speter# location of sendmail source directory 1738032SpeterSRCDIR= ifdef(`confSRCDIR', `confSRCDIR', `../../src') 1838032Speter 1938032Speter# environment definitions (e.g., -D_AIX3) 2038032SpeterENVDEF= -DNOT_SENDMAIL ifdef(`confENVDEF', `confENVDEF') 2138032Speter 2238032Speter# see also conf.h for additional compilation flags 2338032Speter 2438032Speter# include directories 2538032SpeterINCDIRS=-I${SRCDIR} confINCDIRS 2638032Speter 2738032Speter# loader options 2838032SpeterLDOPTS= ifdef(`confLDOPTS', `confLDOPTS') 2938032Speter 3038032Speter# library directories 3138032SpeterLIBDIRS=confLIBDIRS 3238032Speter 3338032Speter# libraries required on your system 3438032SpeterLIBS= ifdef(`confLIBS', `confLIBS') 3538032Speter 3638032Speter# location of mail.local binary (usually /usr/sbin or /usr/etc) 3738032SpeterBINDIR= ${DESTDIR}ifdef(`confEBINDIR', `confEBINDIR', `/usr/libexec') 3838032Speter 3938032Speter# additional .o files needed 4038032SpeterOBJADD= ifdef(`confOBJADD', `confOBJADD') 4138032Speter 4238032Speterundivert(1) 4338032Speter 4438032Speter################### end of user configuration flags ###################### 4538032Speter 4638032SpeterBUILDBIN=confBUILDBIN 4738032SpeterCOPTS= -I. ${INCDIRS} ${ENVDEF} 4838032SpeterCFLAGS= $O ${COPTS} 4938032Speter 5038032SpeterBEFORE= snprintf.c confBEFORE 5138032SpeterOBJS= mail.local.o snprintf.o ${OBJADD} 5238032Speter 5338032SpeterNROFF= ifdef(`confNROFF', `confNROFF', `groff -Tascii') 5438032SpeterMANDOC= ifdef(`confMANDOC', `confMANDOC', `-mandoc') 5538032Speter 5638032SpeterINSTALL=ifdef(`confINSTALL', `confINSTALL', `install') 5738032SpeterBINOWN= ifdef(`confSBINOWN', `confSBINOWN', `root') 5838032SpeterBINGRP= ifdef(`confSBINGRP', `confSBINGRP', `bin') 5938032SpeterBINMODE=ifdef(`confSBINMODE', `confSBINMODE', `4555') 6038032Speter 6138032SpeterMANOWN= ifdef(`confMANOWN', `confMANOWN', `bin') 6238032SpeterMANGRP= ifdef(`confMANGRP', `confMANGRP', `bin') 6338032SpeterMANMODE=ifdef(`confMANMODE', `confMANMODE', `444') 6438032Speter 6538032SpeterMANROOT=${DESTDIR}ifdef(`confMANROOT', `confMANROOT', `/usr/share/man/cat') 6638032SpeterMAN8= ${MANROOT}ifdef(`confMAN8', `confMAN8', `8') 6738032SpeterMAN8EXT=ifdef(`confMAN8EXT', `confMAN8EXT', `8') 6838032SpeterMAN8SRC=ifdef(`confMAN8SRC', `confMAN8SRC', `0') 6938032Speter 7038032SpeterALL= mail.local mail.local.${MAN8SRC} 7138032Speter 7238032Speterall: ${ALL} 7338032Speter 7438032Spetermail.local: ${BEFORE} ${OBJS} 7538032Speter ${CC} -o mail.local ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 7638032Speter 7738032Spetersnprintf.c: ${SRCDIR}/snprintf.c 7838032Speter -ln -s ${SRCDIR}/snprintf.c snprintf.c 7938032Speter 8038032Speterundivert(3) 8138032Speter 8238032Spetermail.local.${MAN8SRC}: mail.local.8 8338032Speter ${NROFF} ${MANDOC} mail.local.8 > mail.local.${MAN8SRC} 8438032Speter 8538032Speterinstall: 8638032Speter @echo "NOTE: This version of mail.local is not suited for some operating" 8738032Speter @echo " systems such as HP-UX and Solaris. Please consult the" 8838032Speter @echo " README file in the mail.local directory. You can force" 8938032Speter @echo " the install using '${MAKE} force-install'." 9038032Speter 9138032Speterforce-install: install-mail.local install-docs 9238032Speter 9338032Speterinstall-mail.local: mail.local 9438032Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} mail.local ${BINDIR} 9538032Speter 9638032Speterinstall-docs: mail.local.${MAN8SRC} 9738032Speterifdef(`confNO_MAN_INSTALL', `dnl', 9838032Speter` ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} mail.local.${MAN8SRC} ${MAN8}/mail.local.${MAN8EXT}') 9938032Speter 10038032Speterclean: 10138032Speter rm -f ${OBJS} mail.local mail.local.${MAN8SRC} 10238032Speter 10338032Speter################ Dependency scripts 10438032Speterinclude(confBUILDTOOLSDIR/M4/depend/ifdef(`confDEPEND_TYPE', `confDEPEND_TYPE', 10538032Speter`generic').m4)dnl 10638032Speter################ End of dependency scripts 107