166272Seric# 266272Seric# This Makefile is designed to work on the old "make" program. It does 366272Seric# not use the obj subdirectory. It also does not install documentation 466272Seric# automatically -- think of it as a quick start for sites that have the 566272Seric# old make program (I recommend that you get and port the new make if you 669795Seric# are going to be doing any significant work on sendmail). 766272Seric# 867186Seric# This has been tested on Solaris 2.1 and 2.2. If you are compiling 967186Seric# for Solaris 2.3, use Makefile.SunOS.5.x. 1066272Seric# 11*69943Seric# @(#)Makefile.Solaris 8.14 (Berkeley) 06/20/95 1266272Seric# 1366272Seric 1466272Seric# use O=-O (usual) or O=-g (debugging) 1569890Seric# warning: do not use -O with versions of gcc prior to 2.6 1669890SericO= -O 1766272Seric 1866272SericCC= gcc 1966272Seric 2066272Seric# define the database mechanism used for alias lookups: 2166272Seric# -DNDBM -- use new DBM 2266272Seric# -DNEWDB -- use new Berkeley DB 2366272Seric# -DNIS -- include NIS support 2466272Seric# The really old (V7) DBM library is no longer supported. 2566272Seric# See READ_ME for a description of how these flags interact. 2666272Seric# 2766272SericDBMDEF= -DNDBM -DNIS 2866272Seric 2966272Seric# environment definitions (e.g., -D_AIX3) 3066272Seric# include -DSOLARIS_2_3 for version 2.3 and higher 3166272SericENVDEF= -DSOLARIS 3266272Seric 3366272Seric# see also conf.h for additional compilation flags 3466272Seric 3566272Seric# include directories 3668530SericINCDIRS=-I/usr/sww/include 3766272Seric 3866272Seric# library directories 3966272SericLIBDIRS=-L/usr/sww/lib 4066272Seric 4166272Seric# libraries required on your system 4268530Seric# delete -l44bsd if you are not running BIND 4.9.x 4368530SericLIBS= -lresolv -l44bsd -lsocket -lnsl -lelf 4466272Seric 4566272Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4666272SericBINDIR= ${DESTDIR}/usr/lib 4766272Seric 4866272Seric# location of sendmail.st file (usually /var/log or /usr/lib) 4966272SericSTDIR= ${DESTDIR}/var/log 5066272Seric 5166272Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5266272SericHFDIR= ${DESTDIR}/etc/mail 5366272Seric 5466272Seric# additional .o files needed 5566272SericOBJADD= 5666272Seric 5766758Seric# things to be made before compilation begins 5866758SericBEFORE= sysexits.h 5966758Seric 6066272Seric################### end of user configuration flags ###################### 6166272Seric 6266272SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 6366272Seric 6466272SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6566272Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 6667546Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6766272Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6866272Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6966272Seric 7066272SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 7166272SericBINOWN= root 7266272SericBINGRP= sys 7366272SericBINMODE=6555 7466272SericINSTALL=/usr/ucb/install 7566272Seric 7666272SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7766272Seric 7866272Sericall: ${ALL} 7966272Seric 8066272Sericsendmail: ${BEFORE} ${OBJS} 8166272Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 8266272Seric 8368235Sericsysexits.h: 8468235Seric if [ -r /usr/ucbinclude/sysexits.h ]; \ 8568235Seric then \ 8668235Seric ln -s /usr/ucbinclude/sysexits.h; \ 8768235Seric fi 8866758Seric 8968774Seric#NROFF= nroff -h 9068774SericNROFF= groff -Tascii 9168774SericMANDOC= -mandoc 9266741Seric 9366272Sericaliases.0: aliases.5 9468774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 9566272Seric 9666272Sericmailq.0: mailq.1 9768774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 9866272Seric 9966272Sericnewaliases.0: newaliases.1 10068774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 10166272Seric 10266272Sericsendmail.0: sendmail.8 10368774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 10466272Seric 10566272Sericinstall: install-sendmail install-docs 10666272Seric 10766272Sericinstall-sendmail: sendmail 10866272Seric ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 10966272Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 11066272Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 11166272Seric ${STDIR}/sendmail.st 11266272Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 11366272Seric 11466272Seric# doesn't actually install them -- you may want to install pre-nroff versions 11566314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 11666272Seric 11766272Sericclean: 11866314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 11966272Seric 12066272Seric# dependencies 12166272Seric# gross overkill, and yet still not quite enough.... 12266272Seric${OBJS}: sendmail.h conf.h 123*69943Seric 124*69943Sericdepend: 125