head	1.38;
access;
symbols
	RELEASE:1.14
	BETA:1.12;
locks; strict;
comment	@# @;


1.38
date	92.08.04.17.21.35;	author paul;	state Exp;
branches;
next	1.37;

1.37
date	92.06.10.19.45.28;	author paul;	state Exp;
branches;
next	1.36;

1.36
date	92.05.28.16.32.16;	author paul;	state Exp;
branches;
next	1.35;

1.35
date	92.05.11.17.05.21;	author paul;	state Exp;
branches;
next	1.34;

1.34
date	92.05.11.17.00.49;	author paul;	state Exp;
branches;
next	1.33;

1.33
date	92.05.06.16.32.34;	author paul;	state Exp;
branches;
next	1.32;

1.32
date	92.03.10.15.18.09;	author paul;	state Exp;
branches;
next	1.31;

1.31
date	92.03.03.16.24.49;	author paul;	state Exp;
branches;
next	1.30;

1.30
date	92.02.29.15.19.10;	author paul;	state Exp;
branches;
next	1.29;

1.29
date	92.02.23.07.17.18;	author paul;	state Exp;
branches;
next	1.28;

1.28
date	92.01.03.18.34.51;	author paul;	state Exp;
branches;
next	1.27;

1.27
date	92.01.02.18.45.32;	author paul;	state Exp;
branches;
next	1.26;

1.26
date	91.12.21.21.45.57;	author paul;	state Exp;
branches;
next	1.25;

1.25
date	91.12.16.02.51.01;	author paul;	state Exp;
branches;
next	1.24;

1.24
date	91.12.15.20.07.34;	author paul;	state Exp;
branches;
next	1.23;

1.23
date	91.11.04.20.21.32;	author paul;	state Exp;
branches;
next	1.22;

1.22
date	91.10.23.17.46.03;	author paul;	state Exp;
branches;
next	1.21;

1.21
date	91.09.24.22.37.45;	author paul;	state Exp;
branches;
next	1.20;

1.20
date	91.09.10.18.49.55;	author paul;	state Exp;
branches;
next	1.19;

1.19
date	91.09.05.01.01.25;	author paul;	state Exp;
branches;
next	1.18;

1.18
date	91.08.19.02.21.26;	author paul;	state Exp;
branches;
next	1.17;

1.17
date	91.08.14.18.28.19;	author paul;	state Exp;
branches;
next	1.16;

1.16
date	91.08.12.02.38.09;	author paul;	state Exp;
branches;
next	1.15;

1.15
date	91.06.27.17.05.33;	author paul;	state Exp;
branches;
next	1.14;

1.14
date	91.06.25.05.26.29;	author paul;	state Exp;
branches;
next	1.13;

1.13
date	91.06.24.20.58.13;	author paul;	state Exp;
branches;
next	1.12;

1.12
date	91.06.02.03.43.03;	author paul;	state Exp;
branches;
next	1.11;

1.11
date	91.05.18.03.31.12;	author paul;	state Exp;
branches;
next	1.10;

1.10
date	91.04.17.18.31.58;	author paul;	state Exp;
branches;
next	1.9;

1.9
date	91.04.05.14.54.09;	author paul;	state Exp;
branches;
next	1.8;

1.8
date	91.04.05.06.33.33;	author paul;	state Exp;
branches;
next	1.7;

1.7
date	91.04.03.05.33.17;	author paul;	state Exp;
branches;
next	1.6;

1.6
date	91.03.08.22.52.49;	author paul;	state Exp;
branches;
next	1.5;

1.5
date	90.12.14.16.58.51;	author paul;	state Exp;
branches;
next	1.4;

1.4
date	90.12.06.15.37.35;	author paul;	state Exp;
branches;
next	1.3;

1.3
date	90.10.17.14.22.58;	author paul;	state Exp;
branches;
next	1.2;

1.2
date	90.10.16.13.29.22;	author paul;	state Exp;
branches;
next	1.1;

1.1
date	90.07.11.17.23.47;	author paul;	state Exp;
branches;
next	;


desc
@IDA sendmail Makefile
@


1.38
log
@*** empty log message ***
@
text
@#
# Copyright (c) 1988 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley.  The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#	@@(#)Makefile	5.11 (Berkeley) 1/3/89
#	@@(#)$Id: Makefile,v 1.37 1992/06/10 19:45:28 paul Exp paul $
#
HDRS=	conf.h mailstats.h sendmail.h useful.h flock.h def.h
SRCS=	alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
	deliver.c domain.c envelope.c err.c getloadavg.c headers.c \
	initgroups.c macro.c main.c malloc.c parseaddr.c queue.c readcf.c \
	recipient.c savemail.c srvrsmtp.c stab.c stats.c sysexits.c trace.c \
	usersmtp.c util.c ../ida/charset/strcnv.c flock.c syslog.c \
	vprintf.c version.c
OBJS=	alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
	deliver.o domain.o envelope.o err.o getloadavg.o headers.o \
	initgroups.o macro.o main.o malloc.o parseaddr.o queue.o readcf.o \
	recipient.o savemail.o srvrsmtp.o stab.o stats.o sysexits.o trace.o \
	usersmtp.o util.o strcnv.o flock.o syslog.o vprintf.o \
	version.o
CONFIGS = \
	config/3b1.h      config/epix.h     config/s5r4.h \
	config/aix3.h     config/hpux7.h    config/sunos3.h \
	config/aixrt.h    config/hpux8.h    config/sunos4.h \
	config/bsd43.h    config/irix.h     config/ultrix3.h \
	config/bsd44.h    config/isc.h      config/ultrix4.h \
	config/convex.h   config/newsos5.h  config/umax.h \
	config/dgux.h     config/next.h     config/unisoft.h \
	config/domainos.h config/osx.h      config/usg.h \
	config/dynix.h    config/ptx.h      config/xenix.h \
	config/epix.h     config/riscos.h   config/esix.h

MAN=	sendmail.0 newaliases.0 aliases.0
MACROS=	-mandoc
#MACROS=	-man

SHELL=	/bin/sh

# Reasonable defaults.  A CPU type must usually be specified with ANSI C
# compilers in order to select the correct byte-ordering in <arpa/nameser.h>
# and to use the right getloadavg() routine.  IT'S LIKELY THAT THE -Dvax
# BELOW WILL BE WRONG FOR YOUR MACHINE.
CC=	cc -O
#CC=	gcc -Dvax -ansi -fpcc-struct-return -O2
DEFS=	
CFLAGS=	${DEFS} -I. 
LDFLAGS= 

# Choose the dbm library based on the setting in conf.h.
# GDBM: -lndbm, SDBM: -lsdbm, HDBM: -lhash, MDBM: -lmdbm, else: -ldbm or none
DBMLIB=	
# Uncomment if AUTH is defined in conf.h
# AUTHLIB=	-lauthuser
LIBS=	${DBMLIB} ${AUTHLIB}

# Installation locations
#  Location of external sendmail files (not sendmail.{cf,fc})
LIBDIR=	/usr/local/libdata/mail
#LIBDIR= /usr/lib
#  Location of sendmail executable
BINDIR= /usr/sbin
#BINDIR= /usr/lib
#  Location of symlinks to sendmail
LINKDIR= /usr/sbin
#LINKDIR= /usr/ucb
#  Location of man pages
MANDIR= /usr/local/src/man
#MANDIR= /usr/man

# Look for any missing routines in ../support and add them as needed to the
# SRCS/OBJS after copying them over to .  Also be sure that the pathnames
# in conf.h reflect reality for your system.  Platform-specific settings
# are located in config/foo.h where foo is the OS name.
#
# HP-UX v7.0 systems will need strcasecmp.c and sysexits.h from ../support.
#  Delete the -Wl,-z option from CFLAGS on Series 300/400 machines
# CFLAGS= ${DEFS} -I. -Wl,-z
# LIBS= ${AUTHLIB} -lndbm -lBSD
#
# HP-UX v8.0 no longer requires -lBSD for compilation but is required to
#  ensure Berkeley signal semantics. The alternative means that zombies
#  are left hanging around.  Delete the -Wl,-z option from CFLAGS on
#  Series 300/400 machines
# CC= cc
# CFLAGS= ${DEFS} -I. -Aa -Wc,-O3 -Wl,-z -D_HPUX_SOURCE -D__hpux
# LIBS= ${AUTHLIB} -lndbm -lBSD
#
# HP Apollos must be running >= 10.3.  Don't use -A nansi or -A ansi.
#  You may need the stdarg.h file from the ../support directory.  The 10.3
#  libresolv file does not seem to work, best results are obtained by
#  installing libresolv.a from Bind 4.8.3 sources (uxc has them).
#  You must take care to not freeze the sendmail.fc file from two different
#  nodes at the same time. Alias autorebuild is disabled for the same reason
#  but cannot be controlled. See the top-level INSTALL file for comments 
#  about /bin/mail as well as README_APOLLO.
# CFLAGS= -I. -W0,-runtype,BSD4.3,-systype,any ${DEFS}
# CFLAGS= -I. -a -r -W0,-runtype,BSD4.3,-systype,any,-exp ${DEFS}
# CFLAGS= -I. -Y0,//scatter/usr/apollo/lib -W0,-runtype,BSD4.3,-systype,any ${DEFS}
#
# Encore MultiMax will need a more recent version of the Bind software if
#  the vendor libresolv.a file is missing the res_search() call.  
# CFLAGS=	${DEFS} -q host_is_target -q optimize=time -I.
# PARALLEL=	4
#
# Sequents running Dynix can use the defaults above.  Systems running PTX
#  will need
# CC= cc
# CFLAGS=	${DEFS} -Wc,-O3 -I.
# LIBS= ${AUTHLIB} -lseq -lsocket -linet -lnsl -lmalloc
#  Uncommenting the next line will result in faster compilation with both.
# PAR=	&
#
# Sony NEWS machines need malloc(3X) instead of malloc(3C) for frozen config
#  files to work.
#
# Sony NEWS machines running SVR4 can use following and choose
#  config/newsos5.h configuration file
#CFLAGS= ${DEFS} -I. -I/usr/ucbinclude
# If not running NAMED (or not wishing to use it)
#LIBS=   -lucb -lsocket -lnsl -lmld -lmalloc
# If running named
#LIBS=  -lucb -lresolv -lsocket -lnsl -lmld -lmalloc
#
# Mips running RISC/os or EP/IX (CDC brand).
# CFLAGS=	${DEFS} -systype bsd43 -Olimit 600 -I.
# LIBS=	${AUTHLIB} -ldbm -lmld
#
# System 5 Release 3 systems can try the following.  Tested only on Unisoft
#  systems at present.  Most will probably need one of the ndbm replacements
#  listed in conf.h installed.  N.B., sdbm will need -DBSD changed to
#  -DSEEK_SET=0 in the makefile.
# CFLAGS=       ${DEFS} -I. -I../../../lib/sdbm
# DBMLIB=       -L../../../lib/sdbm -lsdbm
#
# System 5 Release 4 systems can try the following.  Tested only on UHC systems
#  at present.  Copy sysexits.h from ../support.
# CFLAGS=	${DEFS} -I. -I/usr/ucbinclude
# DBMLIB=	-L/usr/ucblib -lucb
# LIBS=	${DBMLIB} ${AUTHLIB} -lsocket -lnsl -lelf -lc
#
# SCO Xenix systems will need one of the ndbm replacements listed in conf.h
#  installed.  N.B., sdbm will need -DBSD changed to -DSEEK_SET=0 in the
#  makefile.
# CC= cc
# CFLAGS= ${DEFS} -I. -Oacls -w
# DBMLIB=       -L../../../lib/sdbm -lsdbm
# LIBS= ${DBMLIB} ${AUTHLIB} -lsocket -lc_s
#
# Interactive Systems Corp SVR3.2 UNIX systems (untested)
# LIBS=	${AUTHLIB} -linet -ldbm -lc -lPW
#
# Silicon Graphics Iris systems.  SGI broke vfork() for some mysterious reason.
#  Add -lsun if #define YP is set in conf.h .
# LIBS=	${AUTHLIB} -lmld -lsun
#
# Next systems cannot use sendmail.fc as Mach lacks sbrk().  Don't use
#  -fpcc-struct-return!
# CFLAGS=	${DEFS} -fstrength-reduce -ansi -DNeXT -bsd -I.
#
# Convexen will need to add -DSHARE to DEFS and -lshare to LIBS if the share
#  scheduler is used.  -pcc is no longer required. /usr/include/arpa/nameser.h
#  should have the bit field type changed from u_char to u_int and
#  "|| defined(__convex__)" added to the #if clause for
#  BIT_ZERO_ON_LEFT (BIG_ENDIAN).
# DEFS=	-DSHARE
# LIBS=	${AUTHLIB} -lshare
#
# AIX 3.0 systems can now use sendmail.fc with the LDFLAGS below.  If sendmail
#  still core dumps with frozen config files, add LACK_MALLOC to the 
#  config/aix3.h file.  RTs under AIX can now use sendmail.fc and will
#  also need a ndbm replacement.
# LDFLAGS=	-bnso -bI:/lib/syscalls.exp	# AIX on RS/6000 only
# LIBS=	${AUTHLIB} -lc -lbsd -lm		# AIX on RS/6000 only
#
# Suns with shared libraries need to be linked with -Bstatic for reliable
#  operation.  If when sendmail.fc is used and the executable either complains
#  when re-building the alias database or spawns runaway child processes,
#  then you have the localtime() bug introduced in SUNOS 4.1 (it stomps
#  on byte 9 of an 8 byte malloc).  Add NEED_MALLOC to the config/sunos4.h
#  file or get the fix from SUN.  If your SUN has more 8 Mbytes of memory
#  and running sendmail crashes it, you have the 'pmeg' bug.  Get patch
#  100092-03 and install it.  It's available via anon-FTP from princeton.edu
#  in pub/sun-fixes/sunos4.1/{100092-03.tar.Z,README.100092-03}
#
#  (from the GCC info entry on Incompatibilities)
#  On the Sparc, GNU CC uses an incompatible calling convention for
#  structures.  It passes them by including their contents in the argument
#  list, whereas the standard compiler passes them effectively by reference.
#  The convention for structure returning is also incompatible, and
#  `-fpcc-struct-return' does not help.  Will be fixed in gcc V2.00.
#
#  Suns will also need to link with -lresolv.  The vendor version should
#  be replaced (what else is new) as it can't fail-over to backup DNS
#  servers.
# CFLAGS= ${DEFS} -Bstatic -I.
#
# Suns running V3.5 will need libresolv.a built from the Bind 4.8.3 sources.
#  Sendmail must be built using the include files from those sources as well.
#  The pathname below is just an example unless you arrange your source tree
#  the same way I do.
# CFLAGS= ${DEFS} -I. -I../../../services/bind/include
# 
# Get and install Bind 4.8.3 if your libc.a || libresolv.a lack the 
# res_search() call.
#

# One of sendmail or dsendmail to set your local default make target
#all:	dsendmail $(MAN)
all:	sendmail $(MAN)

# The date sendmail was compiled is written to the freeze file,
# to avoid reading in a .fc file created by a different version.
sendmail:${PAR} ${OBJS}
	echo 'char datecompiled[] = "' `date` '";' >datecompiled.c
	${CC} ${CFLAGS} ${LDFLAGS} -o $@@ datecompiled.c ${OBJS} ${LIBS}
	size sendmail; ls -l sendmail; ${WHAT} < version.o

dsendmail:${PAR} ${OBJS}
	echo 'char datecompiled[] = "' `date` '";' >datecompiled.c
	${CC} ${CFLAGS} ${LDFLAGS} -o sendmail datecompiled.c ${OBJS} ${LIBS} -lresolv
	size sendmail; ls -l sendmail; ${WHAT} < version.o

install: sendmail ${MAN}
	install -c -s -o root -m 4511 sendmail ${BINDIR}
	-mkdir ${LIBDIR}
	-mkdir ${LIBDIR}/char
	install -c -o bin -g bin -m 666 /dev/null ${LIBDIR}/sendmail.st
	install -c -o bin -g bin -m 444 sendmail.hf ${LIBDIR}/sendmail.hf
	install -c -o bin -g bin -m 444 sendmail.8 ${MANDIR}/man8
	install -c -o bin -g bin -m 444 aliases.5 ${MANDIR}/man5
	install -c -o bin -g bin -m 444 newaliases.1 ${MANDIR}/man1
	-mkdir /usr/spool/mqueue
	chown root.wheel /usr/spool/mqueue
	chmod 755 /usr/spool/mqueue
	cd ${LINKDIR}; rm -f newaliases mailq bsmtp smtpd runq
	ln -s ${BINDIR}/sendmail ${LINKDIR}/mailq;
	ln -s ${BINDIR}/sendmail ${LINKDIR}/newaliases;
	ln -s ${BINDIR}/sendmail ${LINKDIR}/bsmtp;
	ln -s ${BINDIR}/sendmail ${LINKDIR}/smtpd;
	ln -s ${BINDIR}/sendmail ${LINKDIR}/runq;

strcnv.o:	../ida/charset/strcnv.c
	${CC} ${CFLAGS} -DMAPDIR=\"${DESTDIR}/${LIBDIR}/char\" -c \
		../ida/charset/strcnv.c

man:	$(MAN)

newaliases.0:	newaliases.1
	nroff ${MACROS} newaliases.1 > newaliases.0

aliases.0:	aliases.5
	nroff ${MACROS} aliases.5 > aliases.0

sendmail.0:	sendmail.8
	nroff ${MACROS} sendmail.8 > sendmail.0

clean: ${SRCS}
	rm -f ${OBJS} core sendmail a.out Version.o datecompiled.*

cleandir: clean
	rm -f ${MAN} tags .depend

depend: ${SRCS} ${HDRS}
	mkdep ${CFLAGS} ${SRCS}

prt:
	@@(pr -f READ_ME NOTES Makefile; pr -f -b *.h ${SRCS}) | \
		out -dest 3800 -bin 38 -pagedef L66 -font gt12

tags: ${SRCS}
	ctags ${SRCS}

lint: ${SRCS}
	lint -chpb -I. ${DEFS} ${SRCS}

# However we put in one default dependency, to minimize the problems of those
# who don't do a 'make depend'

$(OBJS):	$(HDRS) $(CONFIGS)

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

@


1.37
log
@SCO hints
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.36 1992/05/28 16:32:16 paul Exp paul $
d45 3
a47 2
MAN=	sendmail.0 newaliases.0 aliases.0 mailq.0
MACROS=	-mdoc
d157 1
a157 1
# CFLAGS= ${DEFS} -Di386 -Ox -I.
d159 1
a159 1
# LIBS= ${DBMLIB} ${AUTHLIB} -lmalloc -lsocket -lx
d220 2
a221 2
#all:	dsendmail
all:	sendmail
d257 2
@


1.36
log
@AIX V3.2 changes.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.35 1992/05/11 17:05:21 paul Exp paul $
d156 1
a156 1
# CFLAGS= ${DEFS} -Ox -I.
@


1.35
log
@Again none.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.34 1992/05/11 17:00:49 paul Exp paul $
a182 1
# CFLAGS=	${DEFS} -qlanglvl=ansi -I.	# AIX on both RS/6000 and PC/RT
@


1.34
log
@None.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.33 1992/05/06 16:32:34 paul Exp paul $
d43 1
a43 1
	config/epix.h     config/riscos.h
@


1.33
log
@Move setting of -O from CFLAGS to CC.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.32 1992/03/10 15:18:09 paul Exp paul $
d34 1
a34 1
	config/3b1.h      config/esix.h     config/s5r4.h \
@


1.32
log
@Support for EP/IX (CDC?) UNIX.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.31 1992/03/03 16:24:49 paul Exp paul $
d54 1
a54 1
CC=	cc
d57 1
a57 1
CFLAGS=	${DEFS} -O -I. 
d88 1
a88 1
# CFLAGS= ${DEFS} -O -I. -Wl,-z
d95 1
d107 3
a109 3
# CFLAGS= -O -I. -W0,-runtype,BSD4.3,-systype,any ${DEFS}
# CFLAGS= -O -I. -a -r -W0,-runtype,BSD4.3,-systype,any,-exp ${DEFS}
# CFLAGS= -O -I. -Y0,//scatter/usr/apollo/lib -W0,-runtype,BSD4.3,-systype,any ${DEFS}
d113 1
a113 1
# CFLAGS=	${DEFS} -q host_is_target -q optimize=time -O -I.
d118 1
d129 1
a129 1
#CFLAGS= ${DEFS} -O -I. -I/usr/ucbinclude
d136 1
a136 1
# CFLAGS=	${DEFS} -systype bsd43 -O -Olimit 600 -I.
d143 1
a143 1
# CFLAGS=       ${DEFS} -O -I. -I../../../lib/sdbm
d148 1
a148 1
# CFLAGS=	${DEFS} -O -I. -I/usr/ucbinclude
d155 1
d169 1
a169 1
# CFLAGS=	${DEFS} -fstrength-reduce -ansi -DNeXT -bsd -O -I.
d183 1
a183 1
# CFLAGS=	${DEFS} -qlanglvl=ansi -O -I.	# AIX on both RS/6000 and PC/RT
d207 1
a207 1
# CFLAGS= ${DEFS} -Bstatic -O -I.
d213 1
a213 1
# CFLAGS= ${DEFS} -O -I. -I../../../services/bind/include
@


1.31
log
@Neww list of config files.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.30 1992/02/29 15:19:10 paul Exp paul $
d34 10
a43 7
	config/3b1.h      config/domainos.h config/newsos5.h  config/sunos4.h \
	config/aix3.h     config/dynix.h    config/next.h     config/ultrix3.h \
	config/aixrt.h    config/esix.h     config/osx.h      config/ultrix4.h \
	config/bsd43.h    config/hpux7.h    config/ptx.h      config/umax.h \
	config/bsd44.h    config/hpux8.h    config/riscos.h   config/unisoft.h \
	config/convex.h   config/irix.h     config/s5r4.h     config/usg.h \
	config/dgux.h     config/isc.h      config/sunos3.h   config/xenix.h
d133 1
a133 1
# Mips running RISC/os.
@


1.30
log
@HP/Apollo fixes from Gary Zaidenweber (gaz@@apollo.COM).
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.29 1992/02/23 07:17:18 paul Exp paul $
d34 8
a41 10
	config/3b1.h          config/esix.h         config/s5r4.h \
	config/aix3.h         config/hpux7.h        config/sunos3.h \
	config/aixrt.h        config/hpux8.h        config/sunos4.h \
	config/bsd43.h        config/irix.h         config/ultrix3.h \
	config/bsd44.h        config/isc.h          config/ultrix4.h \
	config/convex.h       config/next.h         config/umax.h \
	config/dgux.h         config/osx.h          config/unisoft.h \
	config/domainos-6.7.h config/proto.h        config/usg.h \
	config/domainos-6.8.h config/ptx.h          config/xenix.h \
	config/dynix.h        config/riscos.h
@


1.29
log
@accumulated changes to 5.67
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.28 1992/01/03 18:34:51 paul Exp paul $
d54 1
a54 1
#CC=	gcc -Dvax -ansi -fpcc-struct-return  -fstrength-reduce
d97 11
a107 11
# HP Apollos running >= 10.1 will complain a lot about wrong const char
#  usage since their ANSI include files are wrong.  You may need the
#  stdarg.h file from the ../support directory.  The vendor libresolv
#  file does not seem to work, best results are obtained by installing
#  libresolv.a from Bind 4.8.3 sources (uxc has them).  Don't use -A nansi
#  as getloadavg() will seg-fault.  The file /usr/include/apollo/time.h is
#  missing the #ifdef _PROTOTYPE defines (see base.h in the same directory).
#  HP and Apollo are made for each other - neither company really understands
#  software.  The sendmail.fc file doesn't work.  See the top-level install
#  file for comments about /bin/mail as well.  Then trade-in your Apollo.
# CFLAGS=	${DEFS} -A ansi -O -I.
@


1.28
log
@Re-did installation section.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.27 1992/01/02 18:45:32 paul Exp paul $
d34 10
a43 9
	config/3b1.h      config/hpux7.h    config/s5r4.h \
	config/aix3.h     config/hpux8.h    config/sunos4.h \
	config/aixrt.h    config/irix.h     config/ultrix3.h \
	config/bsd43.h    config/isc.h      config/ultrix4.h \
	config/bsd44.h    config/next.h     config/umax.h \
	config/convex.h   config/osx.h      config/usg.h \
	config/domainos.h config/ptx.h      config/dynix.h \
	config/riscos.h   config/dgux.h     config/xenix.h \
	config/esix.h     config/unisoft.h
d45 1
d68 1
a68 1
LIBDIR=	/usr/local/lib/mail
d121 2
a122 2
# Sony NEWS machines are reported to need malloc(3X) instead of malloc(3C)
#  for frozen config files to work.
d124 8
d188 1
a188 1
#  file or get the fix from SUN.  If your SUN has more 16 Mbytes of memory
d193 7
a239 1
	install -c -o bin -g bin -m 444 mailq.1 ${MANDIR}/man1
a253 3
mailq.0:	mailq.1
	nroff -man mailq.1 > mailq.0

d255 1
a255 1
	nroff -man newaliases.1 > newaliases.0
d258 1
a258 1
	nroff -man aliases.5 > aliases.0
d261 1
a261 1
	nroff -man sendmail.8 > sendmail.0
@


1.27
log
@Fixups from latest round of installation testing.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.27 1991/12/22 15:15:00 paul Exp $
d56 1
d63 3
d67 10
a77 1
#
d214 19
a232 19
install: ${MAN}
#	install -c -s -o root -m 4511 sendmail ${DESTDIR}/usr/lib
	install -c -s -o root -m 4511 sendmail ${DESTDIR}/usr/sbin
	-mkdir ${DESTDIR}/${LIBDIR}
	-mkdir ${DESTDIR}/${LIBDIR}/char
#	install -c -o bin -g bin -m 644 /dev/null ${DESTDIR}/etc/sendmail.fc
	install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/${LIBDIR}/sendmail.st
	install -c -o bin -g bin -m 444 sendmail.hf ${DESTDIR}/${LIBDIR}/sendmail.hf
	install -c -o bin -g bin -m 444 sendmail.0 ${DESTDIR}/usr/man/cat8
	install -c -o bin -g bin -m 444 aliases.0 ${DESTDIR}/usr/man/cat5
	install -c -o bin -g bin -m 444 newaliases.0 ${DESTDIR}/usr/man/cat1
	install -c -o bin -g bin -m 444 mailq.0 ${DESTDIR}/usr/man/cat1
	-mkdir ${DESTDIR}/usr/spool/mqueue
	chown root.wheel ${DESTDIR}/usr/spool/mqueue
	chmod 755 ${DESTDIR}/usr/spool/mqueue
	rm -f ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
	cd ${DESTDIR}/usr/sbin; rm -f newaliases mailq; ln sendmail mailq; ln sendmail newaliases
	rm -f ${DESTDIR}/usr/ucb/mailq
	ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/mailq
@


1.26
log
@Hook for new mailq man page.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.25 1991/12/16 02:51:01 paul Exp paul $
d54 1
a54 1
CFLAGS=	-O -I. ${DEFS} 
d59 3
a61 3
# Uncomment if AUTHD is defined in conf.h
# AUTH=	-lauthuser
LIBS=	${DBMLIB} ${AUTH}
d71 3
a73 2
# CFLAGS= -O -I.
# LIBS= ${AUTH} -lndbm -lBSD
d75 1
a75 1
# HP-UX v8.0 no longer require -lBSD for compilation but is required to
d77 4
a80 3
#  are left hanging around.
# CFLAGS= -O -I. -Aa -D_HPUX_SOURCE
# LIBS= ${AUTH} -lndbm -lBSD
d92 1
a92 1
# CFLAGS=	-A ansi -O -I. ${DEFS} 
d96 1
a96 1
# CFLAGS=	-q host_is_target -q optimize=time -O -I. ${DEFS}
d101 2
a102 1
# LIBS= ${DBMLIB} ${AUTH} -lseq -lsocket -linet -lnsl -lmalloc
d110 2
a111 2
# CFLAGS=	-systype bsd43 -O -Olimit 600 -I. ${DEFS} 
# LIBS=	${AUTH} -ldbm -lmld
d115 3
a117 3
#  listed in conf.h installed (adjust DBMLIB above as needed).
#  N.B., sdbm will need
# CFLAGS=       -O -I. -I../../../lib/sdbm ${DEFS}
d122 1
a122 1
# CFLAGS=	-O -I. -I/usr/ucbinclude ${DEFS} 
d124 1
a124 1
# LIBS=	${DBMLIB} ${AUTH} -lsocket -lnsl -lelf -lc
d127 5
a131 4
#  installed (adjust DBMLIB above as needed).  N.B., sdbm will need -DBSD
#  changed to -DSEEK_SET=0 in the makefile.
# CFLAGS= -Ox -I. ${DEFS} 
# LIBS= ${DBMLIB} ${AUTH} -lsocket
d134 1
a134 1
# LIBS=	${DBMLIB} ${AUTH} -linet -ldbm -lc -lPW
d138 1
a138 1
# LIBS=	${AUTH} -lmld -lsun
d142 1
a142 1
# CFLAGS=	-fstrength-reduce -ansi -DNeXT -bsd -O -I. ${DEFS}
d150 1
a150 1
# LIBS=	${AUTH} -ldbm -lshare
d156 1
a156 1
# CFLAGS=	-qlanglvl=ansi -O -I. ${DEFS}	# AIX on both RS/6000 and PC/RT
d158 1
a158 1
# LIBS=	${AUTH} -lc -lbsd -lm				# AIX on RS/6000 only
d173 1
a173 1
# CFLAGS= -Bstatic -O -I. ${DEFS} 
d179 1
a179 1
# CFLAGS= -O -I. -I../../../services/bind/include ${DEFS} 
@


1.25
log
@Support added for Dan Bernstein's (brnstnd@@kramden.acf.nyu.edu) RFC 931
authentication server.  Original patches wrapped with #ifdef AUTH.
Requires linking with -lauthuser .
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.24 1991/12/15 20:07:34 paul Exp paul $
d43 1
a43 1
MAN=	sendmail.0 newaliases.0 aliases.0
d208 1
d212 1
a212 2
	rm -f ${DESTDIR}/usr/ucb/newaliases
#	ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/newaliases
d220 3
@


1.24
log
@More HPUX v8 and AIXRT comments.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.23 1991/11/04 20:21:32 paul Exp paul $
d59 3
a61 1
LIBS=	${DBMLIB}
d72 1
a72 1
# LIBS= -lndbm -lBSD
d78 1
a78 1
# LIBS= -lndbm -lBSD
d99 1
a99 1
# LIBS= ${DBMLIB} -lseq -lsocket -linet -lnsl -lmalloc
d108 1
a108 1
# LIBS=	-ldbm -lmld
d121 1
a121 1
# LIBS=	${DBMLIB} -lsocket -lnsl -lelf -lc
d127 1
a127 1
# LIBS= ${DBMLIB} -lsocket
d130 1
a130 1
# LIBS=	${DBMLIB} -linet -ldbm -lc -lPW
d134 1
a134 1
# LIBS=	-lmld -lsun
d146 1
a146 1
# LIBS=	-ldbm -lshare
d154 1
a154 1
# LIBS=	-lc -lbsd -lm				# AIX on RS/6000 only
@


1.23
log
@Further System 5 related changes.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.22 1991/10/23 17:46:03 paul Exp paul $
d42 1
a42 1
	config/esix.h
d52 1
a52 1
#CC=	gcc -Dvax -ansi -fpcc-struct-return  -fstrength-reduce -finline-functions
d72 3
a74 3
# HP-UX v8.0 systems will need strcasecmp.c from ../support.  -lBSD is no
#  longer necessary for compilation but is required to ensure Berkeley signal
#  semantics. The alternative means that zombies are left hanging around.
d108 7
d122 2
a123 2
#  installed (adjust DBMLIB above as needed).  N.B., sdbm will need
#  -DSEEK_SET=0 added to the makefile.
d147 2
a148 2
#  still core dumps with frozen config files, add NEED_MALLOC to the 
#  config/aix3.h file.  #  RTs under AIX can't use sendmail.fc and will
d163 4
@


1.22
log
@Added entry for SCO Xenix.  Made malloc.c and initgroups.c dependent on
config file parameters (NEED_MALLOC, NEED_INITGROUPS).
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.21 1991/09/24 22:37:45 paul Exp paul $
d41 2
a42 1
	config/riscos.h   config/dgux.h     config/xenix.h
a67 6
# SCO Xenix systems will need one of the ndbm replacements listed in conf.h
#  installed (adjust DBMLIB above as needed).  N.B., sdbm will need
#  -DSEEK_SET=0 added to the makefile.
# CFLAGS= -Ox -I. ${DEFS} 
# LIBS= ${DBMLIB} -lsocket
#
d97 1
a97 1
# LIBS= ${DBMLIB} -lsocket -linet -lnsl
d109 10
a118 4
#  at present.  Install one of the ndbm replacements listed in conf.h.  N.B.,
#  sdbm will need -DSEEK_SET=0 added to the makefile.  Copy sysexits.h from
#  ../support.
# LIBS=	${DBMLIB} -lresolv -lsocket -lnsl -lelf
d120 3
a126 3
# Interactive Systems Corp UNIX systems
# LIBS=	${DBMLIB} -linet -ldbm -lc -lPW
#
d158 6
@


1.21
log
@*** empty log message ***
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.20 1991/09/10 18:49:55 paul Exp $
d23 2
a24 2
	macro.c main.c parseaddr.c queue.c readcf.c recipient.c \
	savemail.c srvrsmtp.c stab.c stats.c sysexits.c trace.c \
d26 1
a26 1
	vprintf.c version.c # malloc.c
d29 2
a30 2
	macro.o main.o parseaddr.o queue.o readcf.o recipient.o \
	savemail.o srvrsmtp.o stab.o stats.o sysexits.o trace.o \
d32 1
a32 1
	version.o # malloc.o
d41 1
a41 1
	config/riscos.h   config/dgux.h
d67 6
d139 2
a140 2
#  still core dumps with frozen config files, uncomment the malloc.[co] from
#  the SRCS/OBJS lines above.  RTs under AIX can't use sendmail.fc and will
d150 3
a152 3
#  on byte 9 of an 8 byte malloc).  Uncomment malloc.[co] from the SRCS/OBJS
#  lines above or get the fix from SUN.  If your SUN has more 16 Mbytes of
#  memory and running sendmail crashes it, you have the 'pmeg' bug.  Get patch
@


1.20
log
@Added HP V8 support and comments about Sony NEWS install.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.19 1991/09/05 01:01:25 paul Exp paul $
d26 1
a26 1
	vprintf.c version.c 
d31 2
a32 1
	usersmtp.o util.o strcnv.o flock.o syslog.o vprintf.o version.o
d101 1
a101 1
#  for frozen config files to work.  Try it with malloc(3C) first.
d132 4
a135 3
# AIX 3.0 systems can now use sendmail.fc with the LDFLAGS below.  RTs under
#  AIX can't use sendmail.fc and will also need a ndbm replacement.  AIX should
#  really be junked, but that's another story.
d144 5
a148 5
#  on byte 9 of an 8 byte malloc).  Use ../uiuc/malloc.c or get the fix
#  from SUN.  If your SUN has more 16 Mbytes of memory and running sendmail
#  crashes it, you have the 'pmeg' bug.  Get patch 100092-03 and install it.
#  It's available via anon-FTP from princeton.edu in
#  pub/sun-fixes/sunos4.1/{100092-03.tar.Z,README.100092-03}
@


1.19
log
@Deleted setenv.[co] (moved back to support) as unsetenv() no longer used
in main.c and everyone has getenv() already.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.18 1991/08/19 02:21:26 paul Exp paul $
d33 8
a40 7
	config/3b1.h      config/dynix.h    config/ptx.h \
	config/aix3.h     config/hpux.h     config/riscos.h \
	config/aixrt.h    config/irix.h     config/sunos4.h \
	config/bsd43.h    config/isc.h      config/ultrix3.h \
	config/bsd44.h    config/next.h     config/ultrix4.h \
	config/convex.h   config/osx.h      config/umax.h \
	config/domainos.h config/s5r4.h     config/usg.h
d66 9
a74 1
# HP-UX systems will need strcasecmp.c and sysexits.h from ../support.
d98 3
@


1.18
log
@Added UHC System 5 Release 4 comments.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.17 1991/08/14 18:28:19 paul Exp paul $
d25 2
a26 2
	usersmtp.c util.c ../ida/charset/strcnv.c flock.c setenv.c \
	syslog.c vprintf.c version.c 
d31 1
a31 2
	usersmtp.o util.o strcnv.o flock.o setenv.o syslog.o vprintf.o \
	version.o
d49 1
a49 1
#CC=	gcc -Dvax -ansi -fpcc-struct-return -fstrength-reduce 
@


1.17
log
@Added support for the Berkeley hashing package ndbm replacement (HDBM).
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.16 1991/08/12 02:38:09 paul Exp paul $
d40 1
a40 1
	config/domainos.h 
d87 1
a87 1
# LIBS= -lsocket -linet -lnsl
d95 6
d106 1
a106 1
# LIBS=	-linet -ldbm -lc -lPW
@


1.16
log
@Add a default dependency on the config/*.h files and *.h files.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.15 1991/06/27 17:05:33 paul Exp paul $
d54 4
a57 1
LIBS=	-ldbm
@


1.15
log
@Added def.h flock.h to DEFS line.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.14 1991/06/25 05:26:29 paul Exp paul $
d33 8
d200 6
@


1.14
log
@Handle special case of AIX on PC/RT.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.13 1991/06/24 20:58:13 paul Exp paul $
d20 1
a20 1
HDRS=	conf.h mailstats.h sendmail.h useful.h
@


1.13
log
@5.65c release.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.12 1991/06/02 03:43:03 paul Exp $
d41 2
a42 2
#CC=	cc
CC=	gcc -Dvax -ansi -fpcc-struct-return -fstrength-reduce 
d104 1
a104 1
#  AIX can't use those LDFLAGS and will need a ndbm replacement.  AIX should
d106 3
a108 3
# CFLAGS=	-qlanglvl=ansi -O -I. ${DEFS} 
# LDFLAGS=	-bnso -bI:/lib/syscalls.exp
# LIBS=	-lc -lbsd -lm
@


1.12
log
@Modified installation notes.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.11 1991/05/18 03:31:12 paul Exp paul $
d26 1
a26 1
	vprintf.c version.c 
d31 2
a32 1
	usersmtp.o util.o strcnv.o flock.o setenv.o vprintf.o version.o
d38 3
a40 1
# compilers in order to select the correct byte-ordering in <arpa/nameser.h>.
d42 1
a42 1
CC=	gcc -ansi -Dvax -fpcc-struct-return -fstrength-reduce
@


1.11
log
@Created ../support/{getenv,setenv}.c into ./setenv.c with appropriate
#ifdef's for NEED_{GETENV,SETENV,UNSETENV}.  These are set in config/osname.h
and the Makefile now always lists setenv.c.  This simplifies most installs
quite a bit.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.10 1991/04/17 18:31:58 paul Exp $
d25 2
a26 1
	usersmtp.c util.c ../ida/charset/strcnv.c setenv.c version.c 
d31 1
a31 1
	usersmtp.o util.o strcnv.o setenv.o version.o 
d52 1
a52 3
# HP-UX systems will need flock.{c,h}, and sysexits.h from ../support,
#  sendmail.fc does not work with V3.1.
# LIBS=	-lBSD
d55 4
a58 1
#  usage since their ANSI include files are wrong.  Don't use -A nansi
d66 9
a74 8
# Encore MultiMax will need -DUMAX added to DEFS to pick up the right
#  getloadavg() routine.  A more recent version of the Bind software will
#  need to be installed first as the vendor libresolv.a file is missing
#  the res_search() call.  
# DEFS=	-DUMAX
#
# Sequents can use the defaults above.  Uncommenting the next line will
#  result in faster compilation.
d77 1
a77 2
# Mips running RISC.  If #define VSPRINTF is set in conf.h, add -ltermcap to
#  pick up vsprintf().
d79 1
a79 1
# LIBS=	-ldbm -lmld -ltermcap
d81 1
a81 1
# Silicon Graphics IRIS systems.  SGI broke vfork() for some mysterious reason.
d85 3
d90 1
a90 2
# DEFS=	-D'fileno(p)=((p)->_file)'
# CFLAGS=	-fstrength-reduce -ansi -bsd -DNeXT -O -I. ${DEFS}
d92 4
a95 4
# Convexen will need to #define SHARE in config/convex.h and add -lshare 
#  to LIBS if the share scheduler is used.  -pcc is no longer required.
#  /usr/include/arpa/nameser.h should have the bit field type changed from
#  u_char to u_int and "|| defined(__convex__)" added to the #if clause for
d97 1
d100 2
a101 1
# AIX systems can now use sendmail.fc with the LDFLAGS below.  AIX should
a102 1
# DEFS=	-D_IBMESA -D_BSD -Dedata=_edata
d107 1
a107 1
# SUNs with shared #  libraries need to be linked with -Bstatic for reliable
@


1.10
log
@Added flags to support sendmail.fc under AIX.
@
text
@d18 1
a18 1
#	@@(#)$Id: Makefile,v 1.9 1991/04/05 14:54:09 paul Exp paul $
d25 1
a25 1
	usersmtp.c util.c ../ida/charset/strcnv.c version.c 
d30 1
a30 1
	usersmtp.o util.o strcnv.o version.o 
d48 2
a49 2
# in conf.h reflect reality for your system.  getenv.c/setenv.c usually come
# as a pair.
d51 2
a52 2
# HP-UX systems will need flock.{c,h}, getenv.c, setenv.c, and sysexits.h from
#  ../support, sendmail.fc does not work with V3.1.
d62 1
d76 1
a76 1
# CFLAGS=	-systype bsd43 -O -I. ${DEFS} 
d79 2
a80 4
# Silicon Graphics systems will need getenv.c & setenv.c from ../support.
#  They broke vfork() for some mysterious reason.  Add -lsun if #define YP
#  is set in conf.h .
# DEFS=	-Dvfork=fork
d83 2
a84 4
# Next systems will need getenv.c & setenv.c from ../support.  No sendmail.fc
#  support will be configured as Mach lacks sbrk().  -lsys_p is used instead
#  of -lsys (the default) to avoid a problem in linking getenv.o .  Don't
#  use -fpcc-struct-return!
d86 1
a86 3
# CC=	cc -fstrength-reduce
# CFLAGS=	-ansi -bsd -DNeXT -O -I. ${DEFS}
# LIBS=	-lsys_p
d88 2
a89 2
# Convexen will need to #define SHARE in conf.h and add -lshare to LIBS
#  if the share scheduler is used.  -pcc is no longer required.
d95 2
a96 3
# AIX systems will need support/{setenv,getenv}.c .  Operation with
#  sendmail.fc now works with the LDFLAGS below.  AIX should really
#  be junked, but that's another story.
d102 2
a103 3
# SUN systems will need support/{setenv,getenv}.c.  SUNs with shared
#  libraries need to be linked with -Bstatic for reliable operation.
#  If when sendmail.fc is used and the executable either complains
d154 2
a155 1
	${CC} ${CFLAGS} -DMAPDIR=\"${DESTDIR}/${LIBDIR}/char\" -c $<
@


1.9
log
@Added RCS ID string.
@
text
@d18 1
a18 1
#	@@(#)$Id$
d41 1
d101 2
a102 3
#  sendmail.fc still causes core dumps unless the getpwXXX() routines
#  and ../uiuc/malloc.c are compiled together with sendmail.  AIX should
#  really be junked, but that's another story.
d105 2
a106 1
# LIBS=	-ldbm -lbsd -lm
d132 1
a132 1
	${CC} ${CFLAGS} -o $@@ datecompiled.c ${OBJS} ${LIBS}
d137 1
a137 1
	${CC} ${CFLAGS} -o sendmail datecompiled.c ${OBJS} ${LIBS} -lresolv
@


1.8
log
@Character set translation changes adapted from patches from Keld Simonsen
(keld@@dkuug.dk).
@
text
@d18 1
@


1.7
log
@Updated compilation instructions.
@
text
@d24 1
a24 1
	usersmtp.c util.c version.c 
d29 1
a29 1
	usersmtp.o util.o version.o 
d41 1
d141 2
a142 1
	-mkdir ${DESTDIR}/usr/local/lib/mail
d144 2
a145 2
	install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/usr/local/lib/mail/sendmail.st
	install -c -o bin -g bin -m 444 sendmail.hf ${DESTDIR}/usr/local/lib/mail/sendmail.hf
d157 3
@


1.6
log
@5.65b+1.4.3 release.
@
text
@d33 9
a41 2
CC=	cc
#CC=	gcc -ansi -Dvax -fpcc-struct-return -fstrength-reduce
d49 3
a51 2
#  ../support, sendmail.fc does not work with V3.1.  Add -lBSD to the final
#  link step.
d59 1
d64 28
a91 11
# Mips running RISC should add -systype bsd43 to CFLAGS, and -lmld to the
#  final link step.  If #define VSPRINTF is set in conf.h, add -ltermcap as
#  well to pick up vsprintf().
# IRIX systems will need -Dvfork=fork added to DEFS, getenv.c & setenv.c
#  from ../support, and -mld to the final link step.  Add -lsun as well if
#  YP is #define'd in conf.h .
# Next systems will need getenv.c & setenv.c from ../support, and will need
#  to install a more recent version of the Bind software for both the #include
#  files and -lresolv.  No sendmail.fc support will be configured.
# Convexen will need to #define SHARE in conf.h and add -lshare to the final
#  link step if the share scheduler is used.  -pcc is no longer required.
d95 25
a119 23
# AIX systems will need support/{setenv,getenv}.c, add -D_IBMESA -D_BSD
#  -Dedata=_edata to DEFS, -qlanglvl=ansi to CFLAGS, and -lbsd added to the
#  final link step.  Operation with sendmail.fc still causes core dumps.
#  AIX should really be junked, but that's another story.
# SUN systems will need support/{setenv,getenv}.c.
#  SUNs with shared libraries need to be linked with -Bstatic for reliable
#  operation.  If when sendmail.fc is used and the executable either complains
#  when re-building the alias database or spawns runaway child processes, then
#  you have the localtime() bug introduced in SUNOS 4.1 (it stomps on byte 9
#  of an 8 byte malloc).  Get the fix from SUN or use ../uiuc/malloc.c
#
# If you need to make dsendmail, you may also need the new includes.
# Try it w.o. the big -I first and see if any undefined structures turn up,
# or if it bombs horribly when delivering messages.
DEFS=	
#CFLAGS= -O -I. -I../../../services/bind/include ${DEFS} 
# Otherwise life is simple if libc.a or libresolv.a has the res_search() call.
CFLAGS= -O -I. ${DEFS} 

GET=	sccs get
DELTA=	sccs delta
WHAT=	what
PRT=	sccs prt
d122 1
d127 1
a127 1
sendmail: ${OBJS}
d129 1
a129 1
	${CC} ${CFLAGS} -o $@@ datecompiled.c ${OBJS} -ldbm
d132 1
a132 1
dsendmail: ${OBJS}
d134 1
a134 1
	${CC} ${CFLAGS} -o sendmail datecompiled.c ${OBJS} -ldbm -lresolv
@


1.5
log
@Updated directions for HPUX, deleted pathnames.h.
@
text
@d33 2
a34 2
#CC=	cc
CC=	gcc -fpcc-struct-return
d37 3
a39 2
# SRCS/OBJS after copying them over to .  Also be sure that pathnames.h
# reflects reality for your system.  getenv.c/setenv.c usually come as a pair.
a40 1
# Next machines will need -Dconst= added to DEFS.
d44 11
d70 2
a71 2
#  -Dedata=_edata to DEFS, and -lbsd added to the final link step.
#  Operation with sendmail.fc still causes core dumps.
d109 3
a111 2
	install -c -s -o root -m 4511 sendmail ${DESTDIR}/usr/lib
	-mkdir ${DESTDIR}/usr/lib/mail
d113 2
a114 2
	install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/usr/lib/mail/sendmail.st
	install -c -o bin -g bin -m 444 sendmail.hf ${DESTDIR}/usr/lib/mail/sendmail.hf
d122 2
a123 1
	ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/newaliases
@


1.4
log
@Added additional installation notes.  Changed lint flags.
@
text
@d19 1
a19 1
HDRS=	conf.h mailstats.h pathnames.h sendmail.h useful.h
d41 3
a43 3
# HP-UX systems will need flock.{c,h}, getenv.c, setenv.c, sysexits.h from
#  ../support, and #define SYSV in conf.h .  sendmail.fc does not work
#  with V3.1
@


1.3
log
@Added HDRS variable at Neil Rickert's suggestion.
@
text
@d21 4
a24 3
	deliver.c domain.c envelope.c err.c headers.c macro.c main.c \
	parseaddr.c queue.c readcf.c recipient.c savemail.c srvrsmtp.c \
	stab.c stats.c sysexits.c trace.c usersmtp.c util.c version.c 
d26 4
a29 3
	deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
	parseaddr.o queue.o readcf.o recipient.o savemail.o srvrsmtp.o \
	stab.o stats.o sysexits.o trace.o usersmtp.o util.o version.o 
d32 3
a34 1
CC=	cc
d40 1
d42 1
a42 1
#  ../support, and #define SYSTEM5 in conf.h .  sendmail.fc does not work
d47 11
a57 7
# IRIX systems will need getenv.c & setenv.c from ../support, add -DIRIS to
#  DEFS.  The fflush() call in putbody() fails.  Don't use this sendmail until
#  this is fixed.  Please let paul@@uxc.cso.uiuc.edu know about a fix.
# Encore systems will need get_stats.c from ../support and add -DMMAX to the
#  DEFS line.
# Convexen will need to add -pcc to CFLAGS.  If the share scheduler is used,
#  #define SHARE in conf.h and add -lshare to the final link step.
d140 1
a140 1
	lint -chapbx -I. ${DEFS} ${SRCS}
@


1.2
log
@Deleted getloadavg.c since that has been rolled back into conf.c.
Moved definition of SIG_TYPE and VMUNIX into conf.h.  Added commentary
for installing on HP-UX, Mips/RISC, Mips/IRIX, Encore, Convex, AIX, and Sun.
@
text
@d19 1
d120 1
a120 1
depend: ${SRCS}
@


1.1
log
@Initial revision
@
text
@d22 1
a22 2
	stab.c stats.c sysexits.c trace.c usersmtp.c util.c version.c \
	getloadavg.c
d26 1
a26 2
	stab.o stats.o sysexits.o trace.o usersmtp.o util.o version.o \
	getloadavg.o
d33 1
a33 4
# reflects reality for your system.  HP-UX systems will need to use the
# support/hpux.c file to provide flock().  Encore systems should replace
# the getloadavg.{c,o} file with support/get_stats.c and add -DUMAX to the
# DEFS line.  getenv.c/setenv.c come as a pair (need one, need both).
d35 24
d61 3
a63 3
# or if it bombs horribly when delivering messages.  SUNs use void for SIG_TYPE
DEFS=	-DVMUNIX -DSIG_TYPE=int
#CFLAGS= -O -I. -I../../../services/bind/include ${DEFS}
d65 1
a65 1
CFLAGS= -O -I. ${DEFS}
d71 3
@
