mirror of
https://github.com/a2stuff/basys33.git
synced 2024-06-08 10:37:48 +00:00
22 lines
360 B
Makefile
22 lines
360 B
Makefile
|
|
||
|
CAFLAGS = --target apple2enh --list-bytes 0
|
||
|
LDFLAGS = --config apple2-asm.cfg
|
||
|
|
||
|
TARGETS = total.replay.SYS
|
||
|
|
||
|
.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' $@
|