| 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 CRASH_LIB = libcrash.so | |
| 6 | |
| 7 INCLUDE_DIRS = -I.. -I$(SYSROOT)/usr/include/google-breakpad | |
| 8 | |
| 9 # We need -fPIC for linking objects into shared objects. | |
| 10 CXXFLAGS += -fPIC -Wall -Werror | |
| 11 | |
| 12 all: $(CRASH_LIB) | |
| 13 | |
| 14 tests: innocuous_host_lcrash_test | |
| 15 | |
| 16 $(CRASH_LIB): crash_dumper.o | |
| 17 $(CXX) -shared -lbreakpad_client $^ -o $@ | |
| 18 | |
| 19 innocuous_host_lcrash_test: innocuous_host_lcrash_test.o $(CRASH_LIB) | |
| 20 $(CXX) $^ -o $@ ${CRASH_LIB} | |
| 21 | |
| 22 .cc.o: | |
| 23 $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@ | |
| 24 | |
| 25 clean: | |
| 26 rm -rf *.o $(CRASH_LIB) | |
| OLD | NEW |