From c54bf59a04e0ff95b8e72cffea0ae521bf18ae12 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Wed, 25 Jan 2017 16:20:33 +0800 Subject: [PATCH] Generate deps for the asm file --- asm/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/asm/Makefile b/asm/Makefile index 5d4b046..e288671 100644 --- a/asm/Makefile +++ b/asm/Makefile @@ -2,10 +2,17 @@ all: false +DEPSDIR := .d +$(shell mkdir -p $(DEPSDIR)) + x230.G2HT35WW.img: ../x230.G2HT35WW.img cp $< $@ -ec.img: ec.asm x230.G2HT35WW.img +-include $(DEPSDIR)/ec.img.deps +$(DEPSDIR)/ec.img.deps: Makefile + nasm -MT ec.img -M ec.asm >$@ + +%.img: %.asm nasm -f bin -o $@ $< diff: ec.img x230.G2HT35WW.img