2021-11-06 00:44:04 +00:00
|
|
|
|
|
|
|
CAFLAGS := --target apple2enh --list-bytes 0
|
|
|
|
LDFLAGS := --config apple2-asm.cfg
|
|
|
|
|
|
|
|
OUTDIR := out
|
|
|
|
|
2021-11-07 02:16:53 +00:00
|
|
|
TARGETS := \
|
2021-11-12 04:17:21 +00:00
|
|
|
$(OUTDIR)/ace500_c000_cfff.bin \
|
2021-11-12 04:09:01 +00:00
|
|
|
$(OUTDIR)/ace2000_c000_cfff.bin
|
2021-11-06 00:44:04 +00:00
|
|
|
|
|
|
|
.PHONY: clean all package
|
|
|
|
all: $(OUTDIR) $(TARGETS)
|
|
|
|
|
|
|
|
$(OUTDIR):
|
|
|
|
mkdir -p $(OUTDIR)
|
|
|
|
|
|
|
|
HEADERS := $(wildcard *.inc)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OUTDIR)/*.o
|
|
|
|
rm -f $(OUTDIR)/*.list
|
|
|
|
rm -f $(TARGETS)
|
|
|
|
|
|
|
|
$(OUTDIR)/%.o: %.s $(HEADERS)
|
|
|
|
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
|
|
|
|
|
|
|
$(OUTDIR)/%.bin: $(OUTDIR)/%.o
|
|
|
|
ld65 $(LDFLAGS) -o $@ $<
|