| 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 += -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 test_main.cc | 14 test_main.cc |
| 14 | 15 |
| 15 SOURCES = $(TEST_SOURCES) | 16 SOURCES = $(TEST_SOURCES) |
| 16 OBJECTS = $(SOURCES:.cc=.o) | 17 OBJECTS = $(SOURCES:.cc=.o) |
| 17 | 18 |
| 18 .PHONY: all | 19 .PHONY: all |
| 19 all: nacl_mounts_sel_ldr_tests | 20 all: nacl_mounts_sel_ldr_tests |
| 20 | 21 |
| 21 | 22 |
| 22 %.o: $(SRC_DIR)/%.cc | 23 %.o: $(SRC_DIR)/%.cc |
| 23 $(CXX) $(CFLAGS) -c $< -o $@ | 24 $(CXX) $(CFLAGS) -c $< -o $@ |
| 24 | 25 |
| 25 nacl_mounts_sel_ldr_tests: $(OBJECTS) | 26 nacl_mounts_sel_ldr_tests: $(OBJECTS) |
| 26 $(CXX) $(LDFLAGS) $^ -o $@ -lgtest -lnacl-mounts -lpthread | 27 $(CXX) $(LDFLAGS) $^ -o $@ -lgtest -lnacl-mounts -lpthread |
| OLD | NEW |