# -------------------------------------------------------------------------
#	Makefile for Bdale's Mailer (BM.EXE), v 3.3.2c.
#	
#       1993 Feb 23 (SV1XV)
#
# For more info see BM.DOC and CHANGES.DOC in the documentation package.
# If you change the MAKEFILE, do a "make clean" before you do a make.
# This MAKEFILE is for Turbo C V2.0 using Borland's MAKE.EXE
# -------------------------------------------------------------------------

CFLAGS= -ms -O -Z -d -DMSDOS
LDFLAGS= -ms
OBJS=	main.obj send.obj pc.obj bmutil.obj version.obj header.obj \
	files.obj getopt.obj cls.obj

all:	bm.exe 
	
bm.exe:  $(OBJS)
	tcc $(LDFLAGS) -ebm $(OBJS)
	pklite bm.exe

clean:
	del *.obj

clobber: clean
	del bm.exe

archive:
	pkzip bm *.c *.h cls.obj makefile bm.doc changes.doc bm.rc bm.exe

#
# dependencies - please keep up to date!
#
bmutil.obj:	bmutil.c bm.h header.h

pc.obj:		pc.c

cls.obj:	cls.c

main.obj: 	main.c bm.h getopt.h

send.obj:	send.c bm.h

header.obj:	header.c header.h

files.obj:	files.c

getopt.obj:	getopt.c

.c.obj:
	tcc -c $(CFLAGS) $*
