basys33/Makefile

22 lines
360 B
Makefile
Raw Normal View History

2019-12-21 04:06:15 +00:00
CAFLAGS = --target apple2enh --list-bytes 0
LDFLAGS = --config apple2-asm.cfg
2020-02-20 04:23:25 +00:00
TARGETS = basis.system.SYS
2019-12-21 04:06:15 +00:00
.PHONY: clean all
all: $(TARGETS)
HEADERS = $(wildcard *.inc)
clean:
rm -f *.o
rm -f $(TARGETS)
%.o: %.s $(HEADERS)
ca65 $(CAFLAGS) --listing $(basename $@).list -o $@ $<
%.SYS: %.o
ld65 $(LDFLAGS) -o $@ $<
xattr -wx prodos.AuxType '00 20' $@