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

Unified Diff: host/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 | « common.mk ('k') | misclibs/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: host/Makefile
diff --git a/host/Makefile b/host/Makefile
index f0bdf85556c7f626586824ab1ac1f9a01308c954..7f1c9f15f4547a7f19fa860279173085c3bbafc8 100644
--- a/host/Makefile
+++ b/host/Makefile
@@ -2,46 +2,31 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-LIBNAME = vboot_host.a
-
-CC ?= gcc
-CFLAGS = -Wall -DNDEBUG -O3 -Werror
-
HOSTTOP := $(shell pwd)
-LIBDIR = $(HOSTTOP)/lib
TESTDIR = $(HOSTTOP)/linktest
+BUILD_ROOT := ${BUILD}/$(shell basename ${HOSTTOP})
INCLUDES += \
-I$(HOSTTOP)/include \
-I$(FWDIR)/lib/include \
-I$(FWDIR)/lib/cgptlib/include \
- -I$(FWDIR)/lib/cryptolib/include
+ -I$(FWDIR)/lib/cryptolib/include
# find ./lib -iname '*.c' | sort
-LIB_SRCS = \
+ALL_SRCS = \
./lib/host_common.c \
./lib/host_key.c \
./lib/host_keyblock.c \
./lib/host_misc.c \
- ./lib/host_signature.c
+ ./lib/host_signature.c
-LIB_OBJS = $(LIB_SRCS:%.c=%.o)
-test : $(LIBNAME)
- $(CC) $(CFLAGS) $(INCLUDES) -o $(TESTDIR)/a.out $(TESTDIR)/main.c \
- $(LIBNAME) $(FWLIB) -lcrypto
+test : $(HOSTLIB)
+ $(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out $(TESTDIR)/main.c \
+ $(HOSTLIB) $(FWLIB) -lcrypto
-$(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS)
+include ../common.mk
+
+$(HOSTLIB) : $(ALL_OBJS)
rm -f $@
ar qc $@ $^
-
-%o : %c
- $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
-
-clean: FORCE
- rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out
-
-FORCE:
-
-
-.PHONY: FORCE
« no previous file with comments | « common.mk ('k') | misclibs/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698