2017-11-24 23:47:28 +00:00
|
|
|
|
|
|
|
CC65 = ~/dev/cc65/bin
|
|
|
|
CAFLAGS = --target apple2enh --list-bytes 0
|
|
|
|
CCFLAGS = --config apple2-asm.cfg
|
|
|
|
|
2017-11-29 05:42:20 +00:00
|
|
|
TARGETS = prodos.mod.BIN ns.clock.system.SYS cricket.system.SYS test.BIN
|
2017-11-24 23:47:28 +00:00
|
|
|
|
2017-12-02 04:17:14 +00:00
|
|
|
# For timestamps
|
|
|
|
MM = $(shell date "+%m")
|
|
|
|
DD = $(shell date "+%d")
|
|
|
|
YY = $(shell date "+%y")
|
|
|
|
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
|
|
|
|
|
2017-11-24 23:47:28 +00:00
|
|
|
.PHONY: clean all
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
HEADERS = $(wildcard *.inc)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f $(TARGETS)
|
|
|
|
|
|
|
|
%.o: %.s $(HEADERS)
|
2017-12-02 04:17:14 +00:00
|
|
|
$(CC65)/ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
2017-11-24 23:47:28 +00:00
|
|
|
|
2017-11-25 07:12:12 +00:00
|
|
|
%.BIN %.SYS: %.o
|
2017-11-24 23:47:28 +00:00
|
|
|
$(CC65)/ld65 $(CCFLAGS) -o $@ $<
|