all: compile

clean:
	${RM} *.binary *.eeprom *~
	${RM} Propellent.*


#target %.binary files to compile them
%.binary: %.spin Propellent.exe
	-@${RM} $@
	./Propellent.exe /LIB ../tools /SAVEBINARY  /COMPILE $<

#bodge since running from another dir does not let it find the source.
Propellent.exe : ../tools/Propellent.exe  ../tools/Propellent.dll
	cp ../tools/Propellent.* .

#fake target to load to ram
%.ram: %.binary
	../tools/spinloader.py -r $<

 