DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: M T

⟦4c9a5bf90⟧ TextFile

    Length: 10940 (0x2abc)
    Types: TextFile
    Names: »Makefile,v«

Derivation

└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
    └─⟦bfebc70e2⟧ »EurOpenD3/mail/sendmail-5.65b+IDA-1.4.3.tar.Z« 
        └─⟦f9e35cd84⟧ 
            └─⟦this⟧ »sendmail/src/RCS/Makefile,v« 

TextFile

head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


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.6
log
@5.65b+1.4.3 release.
@
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
#
HDRS=	conf.h mailstats.h sendmail.h useful.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 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 version.o 
MAN=	sendmail.0 newaliases.0 aliases.0

SHELL=	/bin/sh
CC=	cc
#CC=	gcc -ansi -Dvax -fpcc-struct-return -fstrength-reduce
#
# 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.  getenv.c/setenv.c usually come
# as a pair.
#
# 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.  Add -lBSD to the final
#  link step.
# HP Apollos running >= 10.1 will complain a lot about wrong const char
#  usage since their ANSI include files are wrong.  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.
# 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.  
# 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.
#  /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).
# 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

# One of sendmail or dsendmail to set your local default make target
all:	sendmail

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

dsendmail: ${OBJS}
	echo 'char datecompiled[] = "' `date` '";' >datecompiled.c
	${CC} ${CFLAGS} -o sendmail datecompiled.c ${OBJS} -ldbm -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}/usr/local/lib/mail
#	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}/usr/local/lib/mail/sendmail.st
	install -c -o bin -g bin -m 444 sendmail.hf ${DESTDIR}/usr/local/lib/mail/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
#	ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/newaliases
	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

newaliases.0:	newaliases.1
	nroff -man newaliases.1 > newaliases.0

aliases.0:	aliases.5
	nroff -man aliases.5 > aliases.0

sendmail.0:	sendmail.8
	nroff -man 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}
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

@


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
@