OLD | NEW |
1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 # | 4 # |
5 # A Makefile for running nacl-mounts tests | 5 # A Makefile for running nacl-mounts tests |
6 # usage: 'make all' | 6 # usage: 'make all' |
7 # './tests_out/nacl_mounts_tests' | 7 # './tests_out/nacl_mounts_tests' |
8 | 8 |
9 # location of gtest | 9 # location of gtest |
10 GTEST_DIR = ../../testing/gtest | 10 GTEST_DIR = ../../testing/gtest |
11 | 11 |
12 CPPFLAGS += -I$(GTEST_DIR) -I$(GTEST_DIR)/include | 12 CPPFLAGS += -I$(GTEST_DIR) |
13 CXXFLAGS += -pthread -g -Wall -Werror -I$(GTEST_DIR) | 13 CXXFLAGS += -pthread -g -Wall -Werror -I$(GTEST_DIR) |
14 | 14 |
15 # All gtest headers | 15 # All gtest headers |
16 GTEST_HEADERS = $(GTEST_DIR)/include/gtest/*.h \ | 16 GTEST_HEADERS = $(GTEST_DIR)/include/gtest/*.h \ |
17 $(GTEST_DIR)/include/gtest/internal/*.h | 17 $(GTEST_DIR)/include/gtest/internal/*.h |
18 | 18 |
19 # Add root of nacl-mounts to the include path | 19 # Add root of nacl-mounts to the include path |
20 CPPFLAGS += -I. | 20 CPPFLAGS += -I. |
21 | 21 |
22 UTIL_SOURCES = $(addprefix util/, Path.cc SimpleAutoLock.cc) | 22 UTIL_SOURCES = $(addprefix util/, Path.cc SimpleAutoLock.cc) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 mkdir -p $(dir $@) | 64 mkdir -p $(dir $@) |
65 $(AR) $(ARFLAGS) $@ $^ | 65 $(AR) $(ARFLAGS) $@ $^ |
66 | 66 |
67 $(TESTS_OUT)/%.o: %.cc | 67 $(TESTS_OUT)/%.o: %.cc |
68 mkdir -p $(dir $@) | 68 mkdir -p $(dir $@) |
69 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@ | 69 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@ |
70 | 70 |
71 $(TESTS_OUT)/nacl_mounts_tests: $(OBJECTS) $(TESTS_OUT)/gtest_main.a | 71 $(TESTS_OUT)/nacl_mounts_tests: $(OBJECTS) $(TESTS_OUT)/gtest_main.a |
72 mkdir -p $(dir $@) | 72 mkdir -p $(dir $@) |
73 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@ | 73 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@ |
OLD | NEW |