chtype/Makefile

29 lines
512 B
Makefile
Raw Normal View History

2018-12-31 20:21:38 +00:00
CAFLAGS = --target apple2enh --list-bytes 0
2019-09-23 04:33:19 +00:00
LDFLAGS = --config apple2-asm.cfg
2018-12-31 20:21:38 +00:00
OUTDIR = out
TARGETS = $(OUTDIR)/chtype.BIN
.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 16:09:15 +00:00
rm -f $(TARGETS)
2018-12-31 20:21:38 +00:00
$(OUTDIR)/%.o: %.s $(HEADERS)
2019-09-23 04:33:19 +00:00
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
2018-12-31 20:21:38 +00:00
$(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o
2019-09-23 04:33:19 +00:00
ld65 $(LDFLAGS) -o $@ $<
2018-12-31 20:21:38 +00:00
xattr -wx prodos.AuxType '00 20' $@