#
# Makefile for the drive speed tester
#
# for Mark Williams C version 2.1.7
#

# compile with no symbols
SYM = -s

# build what?
PROGRAM     = speed.prg
RESOURCE    = speed.rsc
RESOURCEH   = speed.h
RESOURCERSH = speed.rsh

# headers
HEAD1	= $(RESOURCEH)

# objects
OBJ1	 = speed.o
OBJFLOP  = flop.o

OBJRSH	 = resource.o

OBJS	= $(OBJ1) $(OBJRSH) $(OBJFLOP)

# how do we build it
$(PROGRAM) : $(OBJS) $(RESOURCE) 
	$(LINKER) $(OBJS) -o $(PROGRAM) -laes -lvdi $(SYM)

arc : $(RESOURCE)
	c:\bin\arc.ttp u speed.arc makefile *.h *.c *.dfn *.rsc

# dependancies
$(OBJ1)	: $(HEAD1)

# keep the time stamp on the resource accurate since the RCS doesn't
$(RESOURCE) : $(RESOURCEH)
	c:\bin\touch.ttp $(RESOURCE)

#
# build the resource.chk file based on the current analyze.rsh file
# this allows us to checksum the text in the boot file
#
$(OBJRSH)      : resource.c
		$(CC) resource.c -o resource.o


