\
#====================================================================
#       Macro & Assembler flags
#====================================================================

STADDR = 802000
MACFLAGS = -fb -g
ALNFLAGS = -v -v -e -g -l -a $(STADDR) x 4000

#====================================================================
#       Default Rules
#====================================================================
.SUFFIXES:      .o .s

.s.o:
	mac $(MACFLAGS) $*

#====================================================================
#       EXECUTABLES
#====================================================================

PICTURES = fish.jag patrick.jag

OBJ =   testjpg.o test.o intserv.o vidinit.o jlister.o clearjag.o
 
testjpg.abs: $(OBJ) $(PICTURES) dehuff.dat
	aln $(ALNFLAGS) $(OBJ) -c testjpg.lnk

test.o: test.s vidstuff.inc

jlister.o: jlister.s vidstuff.inc

#############################################################################
# We have to copy the targa pics over to our local directory because one
# of the conversion steps doesn't like the "..\" at the beginning.
#############################################################################

fish.jag: ..\fish.tga
	copy ..\fish.tga .
	tgajag fish.tga -quality 25 -quiet -o fish.jag
	erase fish.tga

patrick.jag: ..\patrick.tga
	copy ..\patrick.tga
	tgajag patrick.tga -quality 75 -quiet -o patrick.jag
	erase patrick.tga
