mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2025-01-02 16:32:32 +00:00
Update Makefile
This commit is contained in:
parent
e974c76ff7
commit
f6e359cfb7
7
Makefile
7
Makefile
@ -21,7 +21,10 @@ YY = $(shell date "+%y")
|
|||||||
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
|
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
|
||||||
|
|
||||||
.PHONY: clean all
|
.PHONY: clean all
|
||||||
all: $(TARGETS)
|
all: $(OUTDIR) $(TARGETS)
|
||||||
|
|
||||||
|
$(OUTDIR):
|
||||||
|
mkdir -p $(OUTDIR)
|
||||||
|
|
||||||
HEADERS = $(wildcard *.inc)
|
HEADERS = $(wildcard *.inc)
|
||||||
|
|
||||||
@ -30,6 +33,8 @@ clean:
|
|||||||
rm -f $(OUTDIR)/*.list
|
rm -f $(OUTDIR)/*.list
|
||||||
rm -f $(OUTDIR)/$(TARGETS)
|
rm -f $(OUTDIR)/$(TARGETS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(OUTDIR)/%.o: %.s $(HEADERS)
|
$(OUTDIR)/%.o: %.s $(HEADERS)
|
||||||
$(CC65)/ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
$(CC65)/ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user