Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: Makefile

Issue 3179006: Collect and send kernel crash diagnostics (Closed) Base URL: ssh://git@chromiumos-git//crash-reporter.git
Patch Set: Respond to reviews Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | crash_collector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 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 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 CRASH_REPORTER = crash_reporter 5 CRASH_REPORTER = crash_reporter
6 REPORTER_BINS = $(CRASH_REPORTER) 6 REPORTER_BINS = $(CRASH_REPORTER)
7 CRASH_OBJS = system_logging.o user_collector.o 7 CRASH_OBJS = \
8 » crash_collector.o \
9 » kernel_collector.o \
10 » system_logging.o \
11 » unclean_shutdown_collector.o \
12 » user_collector.o
8 TEST_OBJS = $(CRASH_OBJS) system_logging_mock.o 13 TEST_OBJS = $(CRASH_OBJS) system_logging_mock.o
9 TEST_BINS = user_collector_test 14 TEST_BINS = \
15 » crash_collector_test \
16 » kernel_collector_test \
17 » unclean_shutdown_collector_test \
18 » user_collector_test
10 19
11 # -lglib-2.0 is needed by libbase.a now. 20 # -lglib-2.0 is needed by libbase.a now.
12 COMMON_LIBS = -lbase -lpthread -lglib-2.0 -lgflags -lrt 21 COMMON_LIBS = -lbase -lpthread -lglib-2.0 -lgflags -lrt
13 REPORTER_LIBS = $(COMMON_LIBS) -lmetrics 22 REPORTER_LIBS = $(COMMON_LIBS) -lmetrics
14 23
15 TEST_LIBS = $(COMMON_LIBS) -lgtest -lgmock 24 TEST_LIBS = $(COMMON_LIBS) -lgtest -lgmock
16 INCLUDE_DIRS = -I.. -I$(SYSROOT)/usr/include/google-breakpad 25 INCLUDE_DIRS = -I.. -I$(SYSROOT)/usr/include/google-breakpad
17 26
18 CXXFLAGS += -Wall -Werror 27 CXXFLAGS += -Wall -Werror
19 28
20 all: $(REPORTER_BINS) 29 all: $(REPORTER_BINS)
21 30
22 $(CRASH_REPORTER): crash_reporter.o $(CRASH_OBJS) 31 $(CRASH_REPORTER): crash_reporter.o $(CRASH_OBJS)
23 $(CXX) $(CXXFLAGS) $^ $(REPORTER_LIBS) -o $@ 32 $(CXX) $(CXXFLAGS) $^ $(REPORTER_LIBS) -o $@
24 33
25 tests: $(TEST_BINS) 34 tests: $(TEST_BINS)
26 35
27 user_collector_test: user_collector_test.o $(TEST_OBJS) 36 %_test: %_test.o $(TEST_OBJS)
28 $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(TEST_LIBS) -o $@ 37 $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(TEST_LIBS) -o $@
29 38
30 .cc.o: 39 .cc.o:
31 $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@ 40 $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@
32 41
33 clean: 42 clean:
34 rm -rf *.o $(CRASH_BIN) $(TEST_BINS) 43 rm -rf *.o $(CRASH_BIN) $(TEST_BINS)
OLDNEW
« no previous file with comments | « no previous file | crash_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698