2017-11-12 04:44:15 +00:00
|
|
|
|
|
|
|
CAFLAGS = --target apple2enh --list-bytes 0
|
2019-09-23 04:34:47 +00:00
|
|
|
LDFLAGS = --config apple2-asm.cfg
|
2017-11-12 04:44:15 +00:00
|
|
|
|
2019-10-02 04:14:34 +00:00
|
|
|
TARGETS = bye.system.SYS buhbye.system.SYS quit.system.SYS
|
2017-11-12 04:44:15 +00:00
|
|
|
|
2019-10-02 05:08:21 +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-12 04:44:15 +00:00
|
|
|
.PHONY: clean all
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
HEADERS = $(wildcard *.inc)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f $(TARGETS)
|
|
|
|
|
|
|
|
%.o: %.s $(HEADERS)
|
2019-10-02 05:08:21 +00:00
|
|
|
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
2017-11-12 04:44:15 +00:00
|
|
|
|
|
|
|
%.SYS: %.o
|
2019-09-23 04:34:47 +00:00
|
|
|
ld65 $(LDFLAGS) -o $@ $<
|
2017-12-10 00:50:35 +00:00
|
|
|
xattr -wx prodos.AuxType '00 20' $@
|