prodos-drivers/Makefile

29 lines
518 B
Makefile
Raw Normal View History

2019-02-24 20:03:51 -08:00
CAFLAGS = --target apple2enh --list-bytes 0
2019-09-22 21:33:54 -07:00
LDFLAGS = --config apple2-asm.cfg
2019-02-24 20:03:51 -08:00
OUTDIR = out
HEADERS = $(wildcard inc/*.inc)
2019-06-17 20:45:00 -07:00
TARGETS = $(OUTDIR)/ram.drv.system.SYS
2019-02-24 20:03:51 -08:00
.PHONY: clean all
all: $(OUTDIR) $(TARGETS)
$(OUTDIR):
mkdir -p $(OUTDIR)
clean:
rm -f $(OUTDIR)/*.o
rm -f $(OUTDIR)/*.list
rm -f $(TARGETS)
$(OUTDIR)/%.o: %.s $(HEADERS)
2019-09-22 21:33:54 -07:00
ca65 $(CAFLAGS) --listing $(basename $@).list -o $@ $<
2019-02-24 20:03:51 -08:00
# System Files .SYS
$(OUTDIR)/%.SYS: $(OUTDIR)/%.o
2019-09-22 21:33:54 -07:00
ld65 $(LDFLAGS) -o '$@' $<
2019-02-24 20:03:51 -08:00
xattr -wx prodos.AuxType '00 20' $@