Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Unified Diff: Makefile

Issue 2845001: Rework the vboot_reference make system. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Rework the vboot_reference make system. Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .gitignore ('k') | README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile
diff --git a/Makefile b/Makefile
index 853bfbfa4c23e6a2e3516508bd8c85ef402eb178..4022dafdaa8a499c23bfbbe39bf0a3b7bac662bc 100644
--- a/Makefile
+++ b/Makefile
@@ -12,22 +12,27 @@ export INCLUDES = \
-I$(FWDIR)/include \
-I$(TOP)/misclibs/include
-export FWLIB=$(FWDIR)/vboot_fw.a
-export HOSTLIB=$(HOSTDIR)/vboot_host.a
+export BUILD = ${TOP}/build
+export FWLIB = ${BUILD}/vboot_fw.a
+export HOSTLIB= ${BUILD}/vboot_host.a
-SUBDIRS=vboot_firmware misclibs host vfirmware vkernel utility cgpt tests
+SUBDIRS = vboot_firmware misclibs host vfirmware vkernel utility cgpt tests
all:
set -e; \
+ for d in $(shell find ${SUBDIRS} -name '*.c' -exec dirname {} \; |\
+ sort -u); do \
+ newdir=${BUILD}/$$d; \
+ if [ ! -d $$newdir ]; then \
+ mkdir -p $$newdir; \
+ fi; \
+ done && \
for i in $(SUBDIRS); do \
make -C $$i; \
done
clean:
- set -e; \
- for i in $(SUBDIRS); do \
- make -C $$i clean; \
- done
+ /bin/rm -rf ${BUILD}
install:
$(MAKE) -C utility install
« no previous file with comments | « .gitignore ('k') | README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698