#
# Makefile for MODVIEW and Borland C++.
#
# NOTE: there is a bug when the program is compiled with a
# memory model with 16-bit data pointers.  I'm looking for
# it, but for now, stay with the compact or large models.
# In any case, this program does need a certain amount of
# memory, so compact or large are better anyway.
#

CC=bcc
CFLAGS=-mc -O
OBJECTS=mview.obj display.obj help.obj domains.obj uncomp.obj
ZIPFILE=mview10.zip

all:		mview.exe

mview.exe:	$(OBJECTS)
		$(CC) $(CFLAGS) -emview.exe $(OBJECTS)

.c.obj:
		$(CC) $(CFLAGS) -c {$< }

mview.obj:	display.h
display.obj:	display.h
help.obj:	display.h

clean:
		-del *.obj
		-del mview.exe
		-del clip

dist:		mview.exe
		-del $(ZIPFILE)
		-pkzip $(ZIPFILE) mview.doc mview.exe mview.c \
			display.c display.h help.c domains.c \
			uncomp.c makefile makefile.unx
