2019-01-06 16:44:54 -08:00
|
|
|
|
|
|
|
CAFLAGS = --target apple2enh --list-bytes 0
|
2019-09-22 21:34:34 -07:00
|
|
|
LDFLAGS = --config apple2-asm.cfg
|
2019-01-06 16:44:54 -08:00
|
|
|
|
|
|
|
OUTDIR = out
|
|
|
|
|
2019-01-08 18:36:52 -08:00
|
|
|
TARGETS = $(OUTDIR)/path.BIN \
|
2020-06-06 19:03:15 -07:00
|
|
|
$(OUTDIR)/bell.CMD $(OUTDIR)/hello.CMD $(OUTDIR)/echo.CMD $(OUTDIR)/vols.CMD
|
2019-01-06 16:44:54 -08:00
|
|
|
|
|
|
|
.PHONY: clean all
|
|
|
|
all: $(OUTDIR) $(TARGETS)
|
|
|
|
|
|
|
|
$(OUTDIR):
|
|
|
|
mkdir -p $(OUTDIR)
|
|
|
|
|
|
|
|
HEADERS = $(wildcard *.inc)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OUTDIR)/*.o
|
|
|
|
rm -f $(OUTDIR)/*.list
|
2019-01-08 08:08:54 -08:00
|
|
|
rm -f $(TARGETS)
|
2019-01-06 16:44:54 -08:00
|
|
|
|
|
|
|
|
|
|
|
$(OUTDIR)/%.o: %.s $(HEADERS)
|
2019-09-22 21:34:34 -07:00
|
|
|
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
2019-01-06 16:44:54 -08:00
|
|
|
|
|
|
|
$(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o
|
2019-09-22 21:34:34 -07:00
|
|
|
ld65 $(LDFLAGS) -o $@ $<
|
2019-01-06 16:44:54 -08:00
|
|
|
xattr -wx prodos.AuxType '00 20' $@
|
2019-01-06 17:23:56 -08:00
|
|
|
|
2019-01-08 08:08:54 -08:00
|
|
|
$(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o
|
2019-09-22 21:34:34 -07:00
|
|
|
ld65 $(LDFLAGS) -o $@ $<
|