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


1.2
date	93.03.18.22.10.51;	author md;	state Exp;
branches;
next	1.1;

1.1
date	91.08.14.18.13.24;	author md;	state Exp;
branches;
next	;


desc
@@


1.2
log
@make to work with "obj" structure
@
text
@#
#  MAKEFILE -- The IDA Sendmail Enhancement Kit.
#  Copyright (c) 1987 Lennart Lovstrand
#  CIS Dept, Univ of Linkoping, Sweden
#
#  Use it, abuse it, but don't sell it.
#

#  Global definitions in mk.defs; will be imported by all Makefiles
.include "mk.defs"

SUBDIR= aux charset doc
#SUBDIR+=cf		# you can try using this but I like custom sendmail.cf's
#SUBDIR+=lib		# this directory contains only sample config stuff

.include <bsd.prog.mk>
@


1.1
log
@Initial revision
@
text
@d9 2
a10 20
#  Global definitions; will be exported to all Makefiles
SHELL=		/bin/sh
#CC=		gcc -ansi -Dvax -fpcc-struct-return -fstrength-reduce
CC=		cc
MAN8DIR=	/usr/man/cat8		# Place for the section 8 manuals
MAN8EXT=	.0			# Extension for section 8 manuals
MAN1DIR=	/usr/man/cat1		# Place for the section 1 manuals
MAN1EXT=	.0			# Extension for section 1 manuals
BINDIR=		/usr/local/bin		# Where the binary aux files should go
LIBDIR=		/usr/local/lib/mail	# Where the data files should be
SRCDIR=		../../src		# The sendmail src subdirectory
INCLUDEDIR=	../../src		# The sendmail include subdirectory
DOCDIR=		../../doc		# The sendmail doc subdirctory
CFDIR=		/etc			# The sendmail.cf directory
GDBM=		#-DGDBM			# Only defined to use gdbm
SDBM=		#-DSDBM 		# Only defined to use sdbm
MDBM=		#-DMDBM 		# Only defined to use mdbm
HDBM=		#-DHDBM 		# Only defined to use Berkeley hash pkg
DBMLIB=		-ldbm	# GDBM: -lndbm, SDBM: -lsdbm, HDBM: -lhash, else: -ldbm
TROFF=		rditroff		# The [nt]roff program of your choice
d12 3
a14 5
configure:	config.ed
		@@echo ">>> Propagating changes to subdirectories."
		for M in */Makefile; do \
			ed $$M <config.ed; \
		done
d16 1
a16 15
config.ed:	Makefile
		egrep '^[A-Z].*=' Makefile | \
		sed -e 's/[ 	]*#.*$$//' -e 's/#.*$$//' \
			-e 's/^\([^=]*\).*$$/g\/^\1\/c\\;&\\;./' | \
		tr ';' '\012' >$@@
		echo w >>$@@
		echo q >>$@@

clean:
		-rm -f \#* *~ config.ed

spotless:	clean
		for d in */.; do \
			(cd $$d; make clean); \
		done
@
