OLD | NEW |
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 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 building sel_ldr-based nacl-mounts tests | 5 # A Makefile for building sel_ldr-based nacl-mounts tests |
6 | 6 |
7 SRC_DIR = $(dir $(lastword $(MAKEFILE_LIST))) | 7 SRC_DIR = $(dir $(lastword $(MAKEFILE_LIST))) |
8 | 8 |
9 CFLAGS += -I/usr/local/google/home/vissi/oogle/naclports/src/libraries/nacl-moun
ts -I/usr/local/google/home/vissi/oogle/naclports/src/libraries/nacl-mounts/incl
ude -g -Wall -Werror | 9 CFLAGS += -g -Wall -Werror |
10 | 10 |
11 TEST_SOURCES = \ | 11 TEST_SOURCES = \ |
12 SimpleTest.cc \ | 12 SimpleTest.cc \ |
13 DevTest.cc \ | 13 DevTest.cc \ |
14 DupTest.cc \ | 14 DupTest.cc \ |
15 test_main.cc | 15 test_main.cc |
16 | 16 |
17 SOURCES = $(TEST_SOURCES) | 17 SOURCES = $(TEST_SOURCES) |
18 OBJECTS = $(SOURCES:.cc=.o) | 18 OBJECTS = $(SOURCES:.cc=.o) |
19 | 19 |
20 .PHONY: all | 20 .PHONY: all |
21 all: nacl_mounts_sel_ldr_tests | 21 all: nacl_mounts_sel_ldr_tests |
22 | 22 |
23 | 23 |
24 %.o: $(SRC_DIR)/%.cc | 24 %.o: $(SRC_DIR)/%.cc |
25 $(CXX) $(CFLAGS) -c $< -o $@ | 25 $(CXX) $(CFLAGS) -c $< -o $@ |
26 | 26 |
27 nacl_mounts_sel_ldr_tests: $(OBJECTS) | 27 nacl_mounts_sel_ldr_tests: $(OBJECTS) |
28 $(CXX) $(LDFLAGS) $^ -o $@ -lgtest -lnacl-mounts -lpthread | 28 $(CXX) $(LDFLAGS) $^ -o $@ -lgtest -lnacl-mounts -lpthread |
OLD | NEW |