Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/libhwbase/+/43557 )
Change subject: Makefile: Delay expansion of `$(ADAFLAGS)` ......................................................................
Makefile: Delay expansion of `$(ADAFLAGS)`
This allows users of this library to extend `ADAFLAGS` from within their Makefile. The added flexibility makes this a very well spent dollar :-)
Change-Id: I873d3eea48549e6945c4229b50c2318a3711bc4d Signed-off-by: Angel Pons th3fanbus@gmail.com --- M Makefile 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/libhwbase refs/changes/57/43557/1
diff --git a/Makefile b/Makefile index f690ea4..f671fd7 100644 --- a/Makefile +++ b/Makefile @@ -241,7 +241,7 @@ $(2) $(3)%.o: %.$(1) @printf " COMPILE $$(subst $(obj)/,,$$@)\n" $(CC) \ - $(if $(4),$(4),$(ADAFLAGS)) \ + $(if $(4),$(4),$$(ADAFLAGS)) \ $(addprefix -I,$($(name)-ada-dirs) $($(name)-extra-incs)) \ -c -o $$@ $$< endef