reloc.S is not rebuild if header included
in reloc.c is updated. Fix this issue.
Additionally, remove reloc.S build dependency
on head.S because anything from reloc.S does
not depend on head.S.
Add reloc.c dependency to reloc.o build rule for consistency.
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
obj-bin-y += head.o
-head.o: reloc.S
+RELOC_DEPS = $(BASEDIR)/include/asm-x86/config.h $(BASEDIR)/include/xen/multiboot.h
-%.S: %.c
- $(MAKE) -f build32.mk $@
+head.o: reloc.S
-reloc.S: head.S
+reloc.S: reloc.c $(RELOC_DEPS)
+ $(MAKE) -f build32.mk $@ RELOC_DEPS="$(RELOC_DEPS)"
esac; \
done
-reloc.o: $(BASEDIR)/include/asm-x86/config.h
+reloc.o: reloc.c $(RELOC_DEPS)
+
.PRECIOUS: %.bin %.lnk