2017-12-16 05:35:49 +00:00
|
|
|
|
|
|
|
CC65 = ~/dev/cc65/bin
|
|
|
|
CAFLAGS = --target apple2enh --list-bytes 0
|
2018-01-04 21:02:58 +00:00
|
|
|
CCFLAGS = --config asm.cfg
|
2017-12-16 05:35:49 +00:00
|
|
|
|
2018-01-05 17:42:32 +00:00
|
|
|
TARGETS = loader.built a2d.built desktop.built s5.built s6.built
|
2017-12-16 05:35:49 +00:00
|
|
|
|
|
|
|
.PHONY: clean all
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
HEADERS = $(wildcard ../*.inc) $(wildcard ../inc/*.inc) $(wildcard *.inc)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f $(TARGETS)
|
|
|
|
|
|
|
|
%.o: %.s $(HEADERS)
|
|
|
|
$(CC65)/ca65 $(CAFLAGS) --listing $(basename $@).list -o $@ $<
|
|
|
|
|
2018-01-04 21:02:58 +00:00
|
|
|
%.built: %.o asm.cfg
|
2017-12-16 05:35:49 +00:00
|
|
|
$(CC65)/ld65 $(CCFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
check:
|
2018-01-04 22:18:24 +00:00
|
|
|
diff loader.built orig/DESKTOP2_s0_loader
|
|
|
|
diff a2d.built orig/DESKTOP2_s1_a2d
|
|
|
|
diff desktop.built orig/DESKTOP2_s2_desktop
|
2018-01-05 17:42:32 +00:00
|
|
|
diff s5.built orig/DESKTOP2_s5
|
|
|
|
diff s6.built orig/DESKTOP2_s6
|