
OFILES = \
	startup.o \
	jag.o \
	game.o \
  gpu.o \
  game68k.o \
  sequence.o
  
tube_se : $(OFILES)
	sln -v -e -l -rd -a 4000 x x -o tube_se.cof $(OFILES) graphics_1_10.a ./u235se/dsp.obj


# 

GAS2OBJ = smac -l -fb -i$(SMACPATH) $?
#C2OBJ = vc -DJAGUAR -DDEBUG -O2 -c -o $@ $?
C2OBJ = vc -DJAGUAR -O2 -c -o $@ $?

#
# 68k & gpu jaguar specific asm files
#

startup.o : startup.s
	$(GAS2OBJ)

game68k.o : game68k.s
  $(GAS2OBJ)
  
gpu.o : gpu.s
	$(GAS2OBJ)	

sequence.o : sequence.s
	$(GAS2OBJ)

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

game.o : game.c
	$(C2OBJ)

#
# Depedencies
#
jag.c : game.h 
game.c : game.h tilemap.h

game68k.s : tiles.inc game68k.inc

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


