From f6e359cfb7e73ab4b87ecf0ee6e4fde84528807d Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sun, 29 Apr 2018 21:45:53 -0700 Subject: [PATCH] Update Makefile --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ba6ae9b..35fecf2 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,10 @@ YY = $(shell date "+%y") DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY) .PHONY: clean all -all: $(TARGETS) +all: $(OUTDIR) $(TARGETS) + +$(OUTDIR): + mkdir -p $(OUTDIR) HEADERS = $(wildcard *.inc) @@ -29,6 +32,8 @@ clean: rm -f $(OUTDIR)/*.o rm -f $(OUTDIR)/*.list rm -f $(OUTDIR)/$(TARGETS) + + $(OUTDIR)/%.o: %.s $(HEADERS) $(CC65)/ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<