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

Unified Diff: Makefile

Issue 3530001: first cut: establishes base helper classes and main (Closed) Base URL: http://git.chromium.org/git/cros_boot_mode.git
Patch Set: truncation is bad, m'kay. . . Created 10 years, 2 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 | « LICENSE ('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
new file mode 100644
index 0000000000000000000000000000000000000000..e0e25869bb878782bc7bebb53b1754355c569d84
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+# 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.
+#
+# Top-level Makefile for cros_boot_mode.
+
+# Pull in chromium os defaults
+include common.mk
+
+# Filter out the two legacy style binaries.
+BOOT_MODE_OBJECTS=$(filter-out %_testrunner.o %_unittest.o,$(CXX_OBJECTS))
+$(OUT)cros_boot_mode: $(BOOT_MODE_OBJECTS)
+ $(call cxx_binary)
+all: $(OUT)cros_boot_mode
+RM_ON_CLEAN += $(OUT)cros_boot_mode
+
+$(OUT)libcros_boot_mode.so: $(filter-out %_main.o,$(BOOT_MODE_OBJECTS))
+ $(call cc_library)
+all: $(OUT)libcros_boot_mode.so
+RM_ON_CLEAN += $(OUT)libcros_boot_mode.so
+
+#
+# Tests are not built by default.
+#
+
+# -lglib-2.0 is needed by libbase.a now.
+$(OUT)cros_boot_mode_testrunner: $(filter-out %_main.o,$(CXX_OBJECTS))
+ $(call cxx_binary,-lgtest -lgmock -lbase -lglib-2.0 -lrt -lpthread)
+RM_ON_CLEAN += $(OUT)cros_boot_mode_testrunner
+# Will run each prerequisite for tests.
+# If cross-compiled, this is done against the correct architecture.
+small_tests: $(OUT)cros_boot_mode_testrunner
+# No large tests here so we use the NONE target.
+large_tests: NONE
« no previous file with comments | « LICENSE ('k') | README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698