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


1.22
date	94.04.24.21.27.34;	author md;	state Exp;
branches;
next	1.21;

1.21
date	94.03.27.19.45.45;	author roger;	state Exp;
branches;
next	1.20;

1.20
date	93.03.22.22.20.30;	author md;	state Exp;
branches;
next	1.19;

1.19
date	93.03.18.22.14.30;	author md;	state Exp;
branches;
next	1.18;

1.18
date	92.12.10.23.21.46;	author md;	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.22
log
@$WHAT was never defined, replace with just what.
@
text
@#       @@(#)Makefile    5.3 (Berkeley) 5/11/90

PROG=   sendmail
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 \
	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 flock.c setenv.c syslog.c vprintf.c version.c 
OBJS+=	strcnv.o
MAN1=	newaliases.0
MAN5=	aliases.0
MAN8=	sendmail.0
LINKS=	/usr/sbin/sendmail /usr/bin/newaliases \
	/usr/sbin/sendmail /usr/bin/mailq
CFLAGS+=-I${.CURDIR}

#CC=	gcc -Dvax -ansi -fpcc-struct-return -fstrength-reduce 
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=	
LIBS=	${DBMLIB}
LIBDIR=	/usr/libdata/mail
BINDIR= /usr/sbin
BINOWN=	root
BINGRP=	kmem
BINMODE=6555

# 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

strcnv.o: ${.CURDIR}/../ida/charset/conv/strcnv.c
	${CC} ${CFLAGS} -c $(.IMPSRC)
#	${CC} ${CFLAGS} -DMAPDIR=\"${DESTDIR}/${LIBDIR}/char\" -c $(.IMPSRC)

beforeinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
	    ${DESTDIR}/etc/sendmail.fc
	install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
	    ${DESTDIR}/var/log/sendmail.st
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
	    ${DESTDIR}/usr/share/misc

.include <bsd.prog.mk>
@


1.21
log
@LINKS files should not have DESTDIR ar part of the path.
@
text
@d35 1
a35 1
	size sendmail; ls -l sendmail; ${WHAT} < version.o
@


1.20
log
@strcnv.c now has reasonable defaults.
@
text
@d14 2
a15 2
LINKS=	${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/newaliases \
	${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/mailq
@


1.19
log
@convert to reno standards.
@
text
@d14 3
a16 1
CFLAGS+=-I$(.CURDIR)
d26 3
d38 10
a47 1
	${CC} ${CFLAGS} -DMAPDIR=\"${DESTDIR}/${LIBDIR}/char\" -c $(.IMPSRC)
@


1.18
log
@reno mods
@
text
@d1 3
a3 19
#
# 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.17 1991/08/14 18:28:19 paul Exp $
#
d9 6
a14 17
	usersmtp.c util.c ../ida/charset/strcnv.c flock.c setenv.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 \
	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 strcnv.o flock.o setenv.o syslog.o vprintf.o \
	version.o
CONFIGS = \
	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 
MAN=	sendmail.0 newaliases.0 aliases.0
a15 7
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
a16 2
DEFS=	
CFLAGS=	-O -w -I$(.CURDIR) ${DEFS} 
d22 2
a23 1
LIBDIR=	/usr/lib/mail
a24 80
#
# 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 systems will need strcasecmp.c and sysexits.h from ../support.
#
# 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=	-A ansi -O -I. ${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=	-q host_is_target -q optimize=time -O -I. ${DEFS}
# PARALLEL=	4
#
# Sequents running Dynix can use the defaults above.  Systems running PTX
#  will need
# LIBS= -lsocket -linet -lnsl
#  Uncommenting the next line will result in faster compilation with both.
# PAR=	&
#
# Mips running RISC/os.
# CFLAGS=	-systype bsd43 -O -Olimit 600 -I. ${DEFS} 
# LIBS=	-ldbm -lmld
#
# Silicon Graphics Iris systems.  SGI broke vfork() for some mysterious reason.
#  Add -lsun if #define YP is set in conf.h .
# LIBS=	-lmld -lsun
#
# Interactive Systems Corp UNIX systems
# LIBS=	-linet -ldbm -lc -lPW
#
# Next systems cannot use sendmail.fc as Mach lacks sbrk().  Don't use
#  -fpcc-struct-return!
# CFLAGS=	-fstrength-reduce -ansi -DNeXT -bsd -O -I. ${DEFS}
#
# 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=	-ldbm -lshare
#
# 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.
# CFLAGS=	-qlanglvl=ansi -O -I. ${DEFS}	# AIX on both RS/6000 and PC/RT
# LDFLAGS=	-bnso -bI:/lib/syscalls.exp	# AIX on RS/6000 only
# LIBS=	-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).  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}
# CFLAGS= -Bstatic -O -I. ${DEFS} 
#
# 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
all:	sendmail

d32 1
a32 26
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: ${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 $(.CURDIR)/sendmail.hf ${DESTDIR}/${LIBDIR}/sendmail.hf
	install -c -o bin -g bin -m 444 sendmail.0 ${DESTDIR}/usr/share/man/cat8
	install -c -o bin -g bin -m 444 aliases.0 ${DESTDIR}/usr/share/man/cat5
	install -c -o bin -g bin -m 444 newaliases.0 ${DESTDIR}/usr/share/man/cat1
	-mkdir ${DESTDIR}/var/spool/mqueue
	chown root.wheel ${DESTDIR}/var/spool/mqueue
	chmod 755 ${DESTDIR}/var/spool/mqueue
#	rm -f ${DESTDIR}/usr/ucb/newaliases
#	ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/newaliases
#	rm -f ${DESTDIR}/usr/ucb/mailq
#	ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/mailq
	cd ${DESTDIR}/usr/sbin; rm -f newaliases mailq; ln sendmail mailq; ln sendmail newaliases

strcnv.o:	../ida/charset/strcnv.c
d35 1
a35 36
newaliases.0:	newaliases.1
	nroff -man $(.CURDIR)/newaliases.1 > newaliases.0

aliases.0:	aliases.5
	nroff -man $(.CURDIR)/aliases.5 > aliases.0

sendmail.0:	sendmail.8
	nroff -man $(.CURDIR)/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}
	cd ..;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.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 $
d52 1
a52 1
CFLAGS=	-O -I. ${DEFS} 
d58 1
a58 1
LIBDIR=	/usr/local/lib/mail
d159 8
a166 8
	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
	-mkdir ${DESTDIR}/usr/spool/mqueue
	chown root.wheel ${DESTDIR}/usr/spool/mqueue
	chmod 755 ${DESTDIR}/usr/spool/mqueue
	rm -f ${DESTDIR}/usr/ucb/newaliases
d168 2
a170 2
	rm -f ${DESTDIR}/usr/ucb/mailq
	ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/mailq
d173 1
a173 2
	${CC} ${CFLAGS} -DMAPDIR=\"${DESTDIR}/${LIBDIR}/char\" -c \
		../ida/charset/strcnv.c
d176 1
a176 1
	nroff -man newaliases.1 > newaliases.0
d179 1
a179 1
	nroff -man aliases.5 > aliases.0
d182 1
a182 1
	nroff -man sendmail.8 > sendmail.0
d191 1
a191 1
	mkdep ${CFLAGS} ${SRCS}
@


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
@
