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

Unified Diff: src/platform/vboot_reference/vboot_firmware/Makefile

Issue 2219004: Rearrange vboot_reference directories to isolate external components. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Created 10 years, 7 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
Index: src/platform/vboot_reference/vboot_firmware/Makefile
diff --git a/src/platform/vboot_reference/vboot_firmware/Makefile b/src/platform/vboot_reference/vboot_firmware/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..16669f5017fa05b578564909e3688e9acebbb90e
--- /dev/null
+++ b/src/platform/vboot_reference/vboot_firmware/Makefile
@@ -0,0 +1,44 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+LIBNAME = vboot_fw.a
+
+CC ?= gcc
+CFLAGS = -Wall -DNDEBUG -O3 -Werror
+
+FWTOP := $(shell pwd)
+LIBDIR = $(FWTOP)/lib
+STUBDIR = $(FWTOP)/stub
+TESTDIR = $(FWTOP)/linktest
+
+INC = \
+ -I$(FWTOP)/include \
+ -I$(LIBDIR)/include \
+ -I$(LIBDIR)/cryptolib/include
+
+
+LIB_SRCS := $(shell find $(LIBDIR) -iname '*.c')
+LIB_OBJS := $(LIB_SRCS:%.c=%.o)
+
+STUB_SRCS := $(shell find $(STUBDIR) -iname '*.c')
+STUB_OBJS := $(STUB_SRCS:%.c=%.o)
+
+
+test : $(LIBNAME)
+ $(CC) $(CFLAGS) $(INC) -o $(TESTDIR)/a.out $(TESTDIR)/main.c $(LIBNAME)
+
+$(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS)
+ rm -f $@
+ ar qc $@ $^
+
+%o : %c
+ $(CC) $(CFLAGS) $(INC) -c -o $@ $<
+
+clean: FORCE
+ rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out
+
+FORCE:
+
+
+.PHONY: FORCE
« no previous file with comments | « src/platform/vboot_reference/utility/cgpt/Makefile ('k') | src/platform/vboot_reference/vboot_firmware/include/boot_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698