summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-12 13:22:12 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-12 13:22:12 +1000
commit07fca9cdad7fe29f9d16e8c4f67de5fe66776983 (patch)
treed01e642daa77b90edf5abf9d21a7eb58c07a833b /Makefile
parentff9dca214072a589936c1398ecb9d25597213a9b (diff)
downloadcf-fsi-07fca9cdad7fe29f9d16e8c4f67de5fe66776983.tar.gz
cf-fsi-07fca9cdad7fe29f9d16e8c4f67de5fe66776983.zip
Improve dependency in Makefile
It was missing the dependency on the cf-fsi-fw.h file Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files 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 $@
OpenPOWER on IntegriCloud