summaryrefslogtreecommitdiffstats
path: root/post/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'post/Makefile')
-rw-r--r--post/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/post/Makefile b/post/Makefile
index a402e6adcc..769e9c6396 100644
--- a/post/Makefile
+++ b/post/Makefile
@@ -47,12 +47,17 @@ LIB := $(obj)$(LIB)
all: $(LIB)
+postdeps:
+ @for lib in $(SPLIB-y) ; do \
+ $(MAKE) -C `dirname $$lib` all ; \
+ done
+
# generic POST library
$(GPLIB): $(obj).depend $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
# specific POST libraries
-$(SPLIB): $(obj).depend
+$(SPLIB): $(obj).depend postdeps
$(MAKE) -C $(dir $(subst $(obj),,$@))
# the POST lib archive
OpenPOWER on IntegriCloud