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

Side by Side Diff: Makefile

Issue 6730021: crash-reporter: Create a list_proxies command (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crash-reporter.git@master
Patch Set: Fix a compile error. Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | get_proxies.cc » ('j') | get_proxies.cc » ('J')
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 GET_PROXIES_BIN = get_proxies
7 REPORTER_BINS = $(CRASH_REPORTER) $(GET_PROXIES_BIN)
7 CRASH_OBJS = \ 8 CRASH_OBJS = \
8 crash_collector.o \ 9 crash_collector.o \
9 kernel_collector.o \ 10 kernel_collector.o \
10 unclean_shutdown_collector.o \ 11 unclean_shutdown_collector.o \
11 user_collector.o 12 user_collector.o
13 GET_PROXIES_OBJS = get_proxies.o
14 GET_PROXIES_PKGS = dbus-1 dbus-glib-1
12 TEST_OBJS = $(CRASH_OBJS) 15 TEST_OBJS = $(CRASH_OBJS)
13 TEST_BINS = \ 16 TEST_BINS = \
14 crash_collector_test \ 17 crash_collector_test \
15 kernel_collector_test \ 18 kernel_collector_test \
16 unclean_shutdown_collector_test \ 19 unclean_shutdown_collector_test \
17 » user_collector_test 20 » user_collector_test \
21 » get_proxies_test
18 22
19 LDCONFIG = $(shell $(PKG_CONFIG) --libs libpcrecpp) 23 LDCONFIG = $(shell $(PKG_CONFIG) --libs libpcrecpp)
20 24
21 # -lglib-2.0 is needed by libbase.a now. 25 # -lglib-2.0 is needed by libbase.a now.
22 COMMON_LIBS = -lchromeos -lbase -lpthread -lglib-2.0 -lgflags -lrt $(LDCONFIG) 26 COMMON_LIBS = -lchromeos -lbase -lgflags $(LDCONFIG) \
27 » $(shell $(PKG_CONFIG) --libs glib-2.0 $(GET_PROXIES_PKGS))
23 REPORTER_LIBS = $(COMMON_LIBS) -lmetrics 28 REPORTER_LIBS = $(COMMON_LIBS) -lmetrics
29 GET_PROXIES_LIBS = $(COMMON_LIBS)
24 30
25 TEST_LIBS = $(COMMON_LIBS) -lgtest -lgmock 31 TEST_LIBS = $(COMMON_LIBS) -lgtest -lgmock
26 INCLUDE_DIRS = -I.. -I$(SYSROOT)/usr/include/google-breakpad 32 INCLUDE_DIRS = -I.. -I$(SYSROOT)/usr/include/google-breakpad \
33 » $(shell $(PKG_CONFIG) --cflags glib-2.0 $(GET_PROXIES_PKGS))
27 34
28 CXXFLAGS += -Wall -Werror 35 CXXFLAGS += -Wall -Werror
29 36
30 all: $(REPORTER_BINS) 37 all: $(REPORTER_BINS)
31 38
32 $(CRASH_REPORTER): crash_reporter.o $(CRASH_OBJS) 39 $(CRASH_REPORTER): crash_reporter.o $(CRASH_OBJS)
33 $(CXX) $(CXXFLAGS) $^ $(REPORTER_LIBS) -o $@ 40 $(CXX) $(CXXFLAGS) $^ $(REPORTER_LIBS) -o $@
34 41
42 $(GET_PROXIES_BIN): $(GET_PROXIES_OBJS)
43 $(CXX) $(CXXFLAGS) $^ $(GET_PROXIES_LIBS) -o $@
44
35 tests: $(TEST_BINS) 45 tests: $(TEST_BINS)
36 46
37 %_test: %_test.o $(TEST_OBJS) 47 %_test: %_test.o $(TEST_OBJS)
38 $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(TEST_LIBS) -o $@ 48 $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(TEST_LIBS) -o $@
39 49
40 .cc.o: 50 .cc.o:
41 $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@ 51 $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@
42 52
43 clean: 53 clean:
44 » rm -rf *.o $(CRASH_BIN) $(TEST_BINS) 54 » rm -rf *.o $(CRASH_BIN) $(GET_PROXIES_BIN) $(TEST_BINS)
OLDNEW
« no previous file with comments | « no previous file | get_proxies.cc » ('j') | get_proxies.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698