Chromium Code Reviews| 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 += -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 |
| 10 | 10 |
| 11 TEST_SOURCES = \ | 11 TEST_SOURCES = \ |
| 12 SimpleTest.cc \ | 12 SimpleTest.cc \ |
| 13 DevTest.cc \ | 13 DevTest.cc \ |
| 14 test_main.cc | 14 test_main.cc |
| 15 | 15 |
| 16 SOURCES = $(TEST_SOURCES) | 16 SOURCES = $(TEST_SOURCES) |
| 17 OBJECTS = $(SOURCES:.cc=.o) | 17 OBJECTS = $(SOURCES:.cc=.o) |
| 18 | 18 |
| 19 .PHONY: all | 19 .PHONY: all |
| 20 all: nacl_mounts_sel_ldr_tests | 20 all: nacl_mounts_sel_ldr_tests |
| 21 | 21 |
| 22 | 22 |
| 23 %.o: $(SRC_DIR)/%.cc | 23 %.o: $(SRC_DIR)/%.cc |
| 24 $(CXX) $(CFLAGS) -c $< -o $@ | 24 $(CXX) $(CFLAGS) -c $< -o $@ |
| 25 | 25 |
| 26 nacl_mounts_sel_ldr_tests: $(OBJECTS) | 26 nacl_mounts_sel_ldr_tests: $(OBJECTS) |
| 27 » $(CXX) $(LDFLAGS) $^ -o $@ -lgtest -lnacl-mounts -lpthread | 27 » $(CXX) $(LDFLAGS) $^ -o $@ -Wl,--start-group -lgtest -lnacl-mounts -lpth read -lppapi -lppapi_cpp -Wl,--end-group |
|
Evgeniy Stepanov
2012/06/18 10:46:06
I'd like to avoid --start-group/--end-group. It lo
vissi
2012/06/18 10:56:44
Done.
| |
| OLD | NEW |