This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / usr.sbin / sendmail / src / Makefile.IRIX
CommitLineData
3a363396
NW
1#
2# This Makefile is designed to work on the old "make" program. It does
3# not use the obj subdirectory. It also does not install documentation
4# automatically -- think of it as a quick start for sites that have the
5# old make program (I recommend that you get and port the new make if you
6# are going to be doing any signficant work on sendmail).
7#
8# This has been tested on IRIX
9#
10# @(#)Makefile.dist 8.1 (Berkeley) 6/7/93
11#
12
13# use O=-O (usual) or O=-g (debugging)
14O= -O
15CC=gcc
16
17# define the database mechanisms available for map & alias lookups:
18# -DNDBM -- use new DBM
19# -DNEWDB -- use new Berkeley DB
20# -DNDBM -DNEWDB -DYPCOMPAT -- use both plus YP compatility
21# -DNIS -- include client NIS support
22# The really old (V7) DBM library is no longer supported.
23# If YPCOMPAT is defined and /var/yp/Makefile exists, sendmail will build
24# both the NEWDB and DBM libraries (the DBM just for YP).
25#
26DBMDEF= -DNDBM
27
28# define the load average calculation on your system: -DLA_TYPE=LA_INT,
29# -DLA_TYPE=LA_FLOAT, -DLA_TYPE=LA_SUBR, or -DLA_TYPE=LA_ZERO
30# leave undefined to use internal guess
31#LADEF= -DLA_TYPE=LA_SUBR
32
33# define UNSETENV if you need to compile in a local version of setenv
34#ENVDEF= -DUNSETENV
35ENVDEF= -DIRIX
36
37# see also conf.h for additional compilation flags
38
39# include directories
40INCDIRS=
41
42# library directories
43LIBDIRS=
44
45# libraries required on your system
46LIBS= -lmld
47
48# location of sendmail binary (usually /usr/sbin or /usr/lib)
49BINDIR= ${DESTDIR}/usr/lib
50
51# location of sendmail.st file (usually /var/log or /usr/lib)
52STDIR= ${DESTDIR}/usr/lib
53
54# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
55HFDIR= ${DESTDIR}/usr/lib
56
57################### end of user configuration flags ######################
58
59CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${LADEF} ${ENVDEF}
60
61OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
62 deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
63 map.o mci.o parseaddr.o queue.o readcf.o recipient.o \
64 savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
65 trace.o udb.o usersmtp.o util.o version.o
66
67LINKS= ${DESTDIR}/usr/bsd/newaliases ${DESTDIR}/usr/bsd/mailq
68BINOWN= root
69BINGRP= sys
70BINMODE=6555
71
72sendmail: ${OBJS}
73 ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
74
75aliases.0: aliases.5
76 nroff -h -mandoc aliases.5 > aliases.0
77
78newaliases.0: newaliases.1
79 nroff -h -mandoc newaliases.1 > newaliases.0
80
81sendmail.0: sendmail.8
82 nroff -h -mandoc sendmail.8 > sendmail.0
83
84install: install-sendmail install-docs
85
86install-sendmail: sendmail
87 install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
88 for i in ${LINKS}; do ; rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
89 install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
90 ${STDIR}/sendmail.st
91 install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
92
93# doesn't actually install them -- you may want to install pre-nroff versions
94install-docs: aliases.0 newaliases.0 sendmail.0
95
96clean:
97 rm -f ${OBJS} sendmail aliases.0 newaliases.0 sendmail.0
98
99# dependencies
100# gross overkill, and yet still not quite enough....
101${OBJS}: sendmail.h conf.h