OFILES = \
	startup.o \
	jag.o \
	spritestate.o \
	game.o

jag : $(OFILES)
	sln.exe -v -e -l -rd -a 4000 x x -o jag.cof $(OFILES) graphics.a ./u235se/dsp.obj

# 

GAS2OBJ = smac -fb -i../MyInclude;$(SMACPATH) $?
C2OBJ = vc -DJAGUAR -O2 -c -o $@ $?

#
# 68k & gpu jaguar specific asm files
#

startup.o : startup.s
	$(GAS2OBJ)

#
# 68k jaguar specific C files
#	
jag.o : jag.c
	$(C2OBJ)
	
spritestate.o : spritestate.c
  $(C2OBJ)

game.o : game.c
  $(C2OBJ)
  
# depencecies
jag.c : game.h
spritestate.c : spritestate.h  game.h
game.c : game.h spritestate.h

clean :
	del *.o
	del *.bin
	del *.bin.*
	del *.cof
	del *.rom
	del *.log

