
include ../Makefile.config

all: tmotcw_pal.bin tmotcw_ntsc.bin
	$(LS) $^

hd: tmotcw_pal.bin tmotcw_ntsc.bin
	$(HEXDUMP) $^

clean:
	$(RM) *.bin *.o65

tmotcw_pal.bin: main_pal.o65
	$(LD) -Catari2600_cv_f8.ld -o $@ $^

tmotcw_ntsc.bin: main_ntsc.o65
	$(LD) -Catari2600_cv_fa.ld -o $@ $^

main_pal.o65: ../main.s
	$(AS) $(ASFLAGS) -DNTSC=0 -o $@ $<

main_ntsc.o65: ../main.s
	$(AS) $(ASFLAGS) -DNTSC=1 -o $@ $<

