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


1.6
date	92.04.28.20.57.46;	author vixie;	state Exp;
branches;
next	1.5;

1.5
date	91.10.28.06.23.30;	author vixie;	state Exp;
branches;
next	1.4;

1.4
date	91.10.28.06.14.53;	author vixie;	state Exp;
branches;
next	1.3;

1.3
date	91.10.13.02.29.40;	author vixie;	state Exp;
branches;
next	1.2;

1.2
date	91.09.23.00.49.46;	author vixie;	state Exp;
branches;
next	1.1;

1.1
date	91.09.02.23.58.25;	author vixie;	state Exp;
branches;
next	;


desc
@utk 1.7beta 10jun90
@


1.6
log
@boyd's hacks for 8-bit transparency
@
text
@DESTROOT = /tmp

# $Header: /wrl/gen/gwsrc/mail11/d-1.7beta/RCS/Makefile,v 1.5 1991/10/28 06:23:30 vixie Exp vixie $
#
# (This program was written for use with gcc but pcc will work fine.)
#
#CC=gcc -ansi -pedantic
CC=cc
#DEBUG = -O
DEBUG = -g
#
# SMTP can be smtp-tcp-bsd or smtp-pipe-sendmail
#
#SMTP=smtp-tcp-bsd
SMTP=smtp-pipe-sendmail
#
# DECNET can be decnet-ultrix or sunlink-dni
#
DECNET=decnet-ultrix
#DECNET=sunlink-dni
#
# if Ultrix 3.x, set LIBS=-ldnet
#
LIBS=-ldnet
#
# SYS will usually be unix
#
SYS=unix
#
# vgrind or equivalent
#
GRIND=igrind
#
# options
#
OPT_DEBUG	= -DDEBUG
OPT_STRIPQUOTES	= -DSTRIP_QUOTES_IN_SENDER
OPT_TRUSTRCVD	= -DTRUST_RECEIVED_HEADER
OPT_DFLTSUFFIX	= -DDEFAULT_SUFFIX='".enet"'
#OPT_DFLTSUFFIX	= -DDEFAULT_SUFFIX='".DECnet"'
#OPT_MULTIRCVD	= -DMULTILINE_RECEIVED
#OPT_FAKE_TO_CC	= -DFAKE_TO_AND_CC
#OPT_NODEDOMAIN	= -DNODE_DOMAIN_LOOKUP
#OPT_SENDMAIL	= -DCAN_REDEFINE_SENDMAIL
OPT_FAKE_NMAIL	= -DFAKEOUT_NMAIL
#OPT_PERCENTIFY	= -DPERCENTIFY
OPT_BITS_8_SMTP	= -DBITS_8_SMTP
#
DEFS = $(OPT_DEBUG) $(OPT_STRIPQUOTES) $(OPT_TRUSTRCVD) $(OPT_DFLTSUFFIX) \
	$(OPT_MULTIRCVD) $(FAKE_TO_AND_CC) $(OPT_NODEDOMAIN) \
	$(OPT_SENDMAIL) $(OPT_FAKE_NMAIL) $(OPT_PERCENTIFY) $(OPT_BITS_8_SMTP)
#
# no user-servicable parts beyond this point
#
CFLAGS = $(DEBUG) $(DEFS)
OBJS = debug.o $(DECNET).o mail11.o mail11d.o rfc822.o $(SMTP).o string.o \
	text.o $(SYS).o vfformat.o
SRCS = MANIFEST README PROBLEMS ChangeLog \
	mail11d.sh.utk mail11d.sh.dec mail11d.man \
	Makefile $(CFILES) $(HFILES)
CFILES = mail11d.c mail11.c \
	smtp-tcp-bsd.c smtp-pipe-sendmail.c rfc822.c \
	decnet-ultrix.c sunlink-dni.c \
	debug.c string.c text.c unix.c vfformat.c
HFILES = mail11.h defs.h smtp.h decnet.h rfc822.h debug.h string.h text.h

all: utk-mail11d

utk-mail11d: mail11d.o $(OBJS)
	$(CC) $(DEBUG) -o utk-mail11d $(OBJS) $(LIBS)

$(OBJS): Makefile

saber:;	#load $(CFLAGS) $(CFILES) $(LIBS)

debug.o: debug.c 

decnet-ultrix.o: decnet-ultrix.c decnet.h mail11.h

#
# sunlink-dni.c requires gcc -traditional (or vanilla cc)
# because of ansi incompatibility in sys/ioctl.h and netdni/dni.h
#
sunlink-dni.o: sunlink-dni.c decnet.h mail11.h
	-if [ -r /usr/include/netdni/dni.h ]; then \
	    $(CC) -c sunlink-dni.c ; \
	else \
	    $(CC) -DOLD_SUNLINK_DNI -c sunlink-dni.c ; \
	fi

mail11d.o: mail11d.c text.h smtp.h decnet.h debug.h rfc822.h mail11.h

mail11.o: mail11.c mail11.h

rfc822.o: rfc822.c

$(SMTP).o: $(SMTP).c smtp.h text.h

string.o: string.c

$(SYS).o: $(SYS).c

text.o: text.c text.h

vfformat.o: vfformat.c

install: utk-mail11d
	install -c utk-mail11d $(DESTROOT)/usr/etc/utk-mail11d

lint: sysdep.h
	lint $(DEFS) mail11.c

diffs: FRC
	-rcsdiff -c2 -r1.1 $(SRCS) >diffs

clean:
	rm -f $(OBJS) utk-mail11d mail11d.tar mail11d.shar *~ *.CKP *.BAK

mail11d.tar: $(SRCS)
	tar cf mail11d.tar $(SRCS)

mail11d.shar: $(SRCS)
	shar $(SRCS) > mail11d.shar

listings:
	$(GRIND) $(SRCS)

FRC:
@


1.5
log
@vixie
@
text
@d3 1
a3 1
# $Header: /udir/vixie/src/mail11/d-1.7beta/RCS/Makefile,v 1.4 1991/10/28 06:14:53 vixie Exp vixie $
d47 1
d51 1
a51 1
	$(OPT_SENDMAIL) $(OPT_FAKE_NMAIL) $(OPT_PERCENTIFY)
@


1.4
log
@vixie
@
text
@d3 1
a3 1
# $Header: /udir/vixie/src/mail11/d-1.7beta/RCS/Makefile,v 1.3 1991/10/13 02:29:40 vixie Exp vixie $
d106 1
a106 1
install:
@


1.3
log
@vixie: add PERCENTIFY and FAKEOUT_NMAIL options
@
text
@d1 3
a3 1
# $Header: /a1/vixie/src/mail11/d-1.7beta/RCS/Makefile,v 1.2 1991/09/23 00:49:46 vixie Exp vixie $
d66 2
d107 1
a107 1
	install -c -s utk-mail11d /usr/etc/utk-mail11d
@


1.2
log
@cleaned up, parameterized, added saber support, "diffs" target.
@
text
@d1 1
a1 1
# $Header: /udir/vixie/src/mail11/d-1.7beta/RCS/Makefile,v 1.1 1991/09/02 23:58:25 vixie Exp vixie $
d43 2
d47 2
a48 1
	$(OPT_MULTIRCVD) $(FAKE_TO_AND_CC) $(OPT_NODEDOMAIN) $(OPT_SENDMAIL)
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Header: /a/cs.utk.edu/gold/homes/moore/src/Mail11d/RCS/Makefile,v 1.7 90/07/01 00:28:48 moore Exp $
d3 1
a3 1
# CC should be the C compiler.  (This program was written for use with gcc.)
d5 4
a8 3
#CC=gcc -ansi -pedantic -g
CC=cc -g
CFLAGS=-DDEBUG -DSTRIP_QUOTES_IN_SENDER -DTRUST_RECEIVED_HEADER
d32 1
d34 26
a59 14
OBJS=debug.o $(DECNET).o mail11.o mail11d.o rfc822.o $(SMTP).o string.o \
text.o $(SYS).o vfformat.o
SRCS=MANIFEST README PROBLEMS ChangeLog \
mail11d.sh mail11d.man \
Makefile mail11d.c \
mail11.c mail11.h \
smtp-tcp-bsd.c smtp-pipe-sendmail.c smtp.h \
decnet-ultrix.c sunlink-dni.c decnet.h \
rfc822.c rfc822.h \
debug.c debug.h \
string.c string.h \
text.c text.h \
unix.c \
vfformat.c
d62 1
a62 1
	$(CC) -o utk-mail11d $(OBJS) $(LIBS)
d64 4
d99 9
d109 1
a109 1
	rm -f $(OBJS) utk-mail11d mail11d.tar
d119 2
@
