
#VERSION 1.11
#
#   Written by Matthew Dillon
#
#   (C)Copyright 1986-89 by Matthew Dillon
#
#   This code is completely original.  I declare this code to be public
#   domain.  You may redistribute this code as long as any those
#	redistributions contain this and all other files in their entirety.
#
#	Ports: Anybody may port this code to any machine or OS they wish, of
#	course.  If you do make a port, I would be grateful if you mailed
#	a letter with: (A) OS you ported it too, and (B) version ported,
#	so I may inform people who have mailed me wondering about ports
#	who to contact.
#
#   Send bug reports and other gripes to:
#
#   dillon@ucbvax.berkeley.edu	       ARPA NET
#   ..!ihnp4!ucbvax!dillon	       USENET
#
#   INSTRUCTIONS FOR COMPILING:
#
#   (1) Set DESTDIR & HELP_DIR to some global directory accessable to
#	everybody (or whatever).  Also set HELP_CHMOD and PROG_CHMOD
#	to the right thing if you don't like the defaults.
#
#   (2) Do ONE of the following:
#	make		-defaults to internal help file
#	make external	-external help file (executable is smaller)
#
#   (3) make install to install the file(s)
#

OD= ltmp:dmail/
EXE= uucp:c/dmail
SYMS= uucp:src/lib/all.m
CFLAGS= -iuucp:src/include/

LIBS=	uucp:src/lib/uucp.lib lib:lc.lib lib:amiga.lib

SRCS=	globals.c main.c do_lists.c sub.c execom.c commands.c \
	range.c load_mail.c sendmail.c set.c help.c cond.c compat.c

OBJS=	$(SRCS:"*.c":"$(OD)*.o")

$(EXE): $(OBJS)
	cd $(OD)
	list #?.o TO T:DMAILOBJS LFORMAT %s
	blink lib:c.o WITH T:DMAILOBJS LIB $(LIBS) TO %(left)
	cd

$(OBJS) : $(SRCS)
	lc $(CFLAGS) -H$(SYMS) -o%(left) %(right)

