From 07fca9cdad7fe29f9d16e8c4f67de5fe66776983 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Tue, 12 Jun 2018 13:22:12 +1000 Subject: Improve dependency in Makefile It was missing the dependency on the cf-fsi-fw.h file Signed-off-by: Benjamin Herrenschmidt --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ed3b57a..04caf17 100644 --- a/Makefile +++ b/Makefile @@ -25,15 +25,15 @@ M68KLDFLAGS = -Ttext 0 # FW code files TARGET_DEFS = $(wildcard cf-code/*.h) -TARGETS_s = $(patsubst %.h,%.s,$(TARGET_DEFS)) -TARGETS_o = $(patsubst %.h,%.o,$(TARGET_DEFS)) -TARGETS_elf = $(patsubst %.h,%.elf,$(TARGET_DEFS)) TARGETS_bin = $(patsubst %.h,%.bin,$(TARGET_DEFS)) +FW_SOURCE = cf-code/cf-fsi-fw.S +FW_DEPS = $(FW_SOURCE) cf-fsi-fw.h + all: $(TARGETS_bin) cf-fsi-test -cf-code/%.s : cf-code/%.h cf-code/cf-fsi-fw.S - $(CC) -E $(M68KCPPFLAGS) -I. -include $^ -o $@ +cf-code/%.s : cf-code/%.h $(FW_DEPS) + $(CC) -E $(M68KCPPFLAGS) -I. -include $< $(FW_SOURCE) -o $@ cf-code/%.o : cf-code/%.s $(M68KAS) $(M68KAFLAGS) -march=isac $^ -o $@ -- cgit v1.2.1