OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 # |
| 5 # Top-level Makefile for cros_boot_mode. |
| 6 |
| 7 # Pull in chromium os defaults |
| 8 include common.mk |
| 9 |
| 10 # Filter out the two legacy style binaries. |
| 11 BOOT_MODE_OBJECTS=$(filter-out %_testrunner.o %_unittest.o,$(CXX_OBJECTS)) |
| 12 $(OUT)cros_boot_mode: $(BOOT_MODE_OBJECTS) |
| 13 $(call cxx_binary) |
| 14 all: $(OUT)cros_boot_mode |
| 15 RM_ON_CLEAN += $(OUT)cros_boot_mode |
| 16 |
| 17 $(OUT)libcros_boot_mode.so: $(filter-out %_main.o,$(BOOT_MODE_OBJECTS)) |
| 18 $(call cc_library) |
| 19 all: $(OUT)libcros_boot_mode.so |
| 20 RM_ON_CLEAN += $(OUT)libcros_boot_mode.so |
| 21 |
| 22 # |
| 23 # Tests are not built by default. |
| 24 # |
| 25 |
| 26 # -lglib-2.0 is needed by libbase.a now. |
| 27 $(OUT)cros_boot_mode_testrunner: $(filter-out %_main.o,$(CXX_OBJECTS)) |
| 28 $(call cxx_binary,-lgtest -lgmock -lbase -lglib-2.0 -lrt -lpthread) |
| 29 RM_ON_CLEAN += $(OUT)cros_boot_mode_testrunner |
| 30 # Will run each prerequisite for tests. |
| 31 # If cross-compiled, this is done against the correct architecture. |
| 32 small_tests: $(OUT)cros_boot_mode_testrunner |
| 33 # No large tests here so we use the NONE target. |
| 34 large_tests: NONE |
OLD | NEW |