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

Side by Side Diff: Makefile

Issue 3138013: [metrics] Fix tests after libbase roll broke them (Closed) Base URL: http://src.chromium.org/git/metrics.git
Patch Set: 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 | no next file » | 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 # Makefile for metrics utilities -- library, client and daemon 5 # Makefile for metrics utilities -- library, client and daemon
6 # 6 #
7 7
8 CCONFIG = $(shell $(PKG_CONFIG) --cflags dbus-1 glib-2.0 dbus-glib-1) 8 CCONFIG = $(shell $(PKG_CONFIG) --cflags dbus-1 glib-2.0 dbus-glib-1)
9 LDCONFIG = $(shell $(PKG_CONFIG) --libs dbus-1 glib-2.0 gthread-2.0 dbus-glib-1) 9 LDCONFIG = $(shell $(PKG_CONFIG) --libs dbus-1 glib-2.0 gthread-2.0 dbus-glib-1)
10 10
(...skipping 21 matching lines...) Expand all
32 TESTDAEMON_OBJS = \ 32 TESTDAEMON_OBJS = \
33 counter.o \ 33 counter.o \
34 metrics_daemon.o \ 34 metrics_daemon.o \
35 metrics_daemon_test.o 35 metrics_daemon_test.o
36 LIB_OBJS = \ 36 LIB_OBJS = \
37 c_metrics_library.o \ 37 c_metrics_library.o \
38 metrics_library.o 38 metrics_library.o
39 TESTLIB_OBJS = \ 39 TESTLIB_OBJS = \
40 metrics_library_test.o 40 metrics_library_test.o
41 41
42 TESTCOUNTER_LIBS = -lgmock -lgtest -lbase -lrt -lpthread 42 TESTCOUNTER_LIBS = -lgmock -lgtest -lbase -lrt -lpthread -lglib-2.0
43 DAEMON_LDFLAGS = $(LDFLAGS) $(LDCONFIG) -lrt -lbase -lpthread -lgflags 43 DAEMON_LDFLAGS = $(LDFLAGS) $(LDCONFIG) -lrt -lbase -lpthread -lgflags -lglib-2. 0
petkov 2010/08/12 19:45:39 Shouldn't glib-2.0 come from the LDCONFIG/PKG_CONF
Chris Masone 2010/08/12 19:47:51 huh. maybe we just needed it for the tests, yeah.
44 TESTDAEMON_LIBS = -lgmock -lgtest 44 TESTDAEMON_LIBS = -lgmock -lgtest
45 TESTLIB_LIBS = -lgtest -lbase -lrt -lpthread 45 TESTLIB_LIBS = -lgtest -lbase -lrt -lpthread -lglib-2.0
46 46
47 all: $(LIB) $(SHAREDLIB) $(CLIENT) $(DAEMON) 47 all: $(LIB) $(SHAREDLIB) $(CLIENT) $(DAEMON)
48 48
49 tests: $(COUNTER_TEST) $(DAEMON_TEST) $(LIB_TEST) 49 tests: $(COUNTER_TEST) $(DAEMON_TEST) $(LIB_TEST)
50 50
51 $(CLIENT): $(CLIENT_OBJS) $(SHAREDLIB) 51 $(CLIENT): $(CLIENT_OBJS) $(SHAREDLIB)
52 $(CXX) $(LDFLAGS) $^ -o $@ 52 $(CXX) $(LDFLAGS) $^ -o $@
53 53
54 $(COUNTER_TEST): $(TESTCOUNTER_OBJS) 54 $(COUNTER_TEST): $(TESTCOUNTER_OBJS)
55 $(CXX) -o $@ $^ $(TESTCOUNTER_LIBS) 55 $(CXX) -o $@ $^ $(TESTCOUNTER_LIBS)
(...skipping 12 matching lines...) Expand all
68 68
69 $(LIB_TEST): $(TESTLIB_OBJS) $(SHAREDLIB) 69 $(LIB_TEST): $(TESTLIB_OBJS) $(SHAREDLIB)
70 $(CXX) -o $@ $^ $(LDFLAGS) $(TESTLIB_LIBS) 70 $(CXX) -o $@ $^ $(LDFLAGS) $(TESTLIB_LIBS)
71 71
72 %.o: %.cc 72 %.o: %.cc
73 $(CXX) $(CXXFLAGS) -c $< -o $@ 73 $(CXX) $(CXXFLAGS) -c $< -o $@
74 74
75 clean: 75 clean:
76 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) *.o 76 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) *.o
77 rm -f $(COUNTER_TEST) $(DAEMON_TEST) $(LIB_TEST) 77 rm -f $(COUNTER_TEST) $(DAEMON_TEST) $(LIB_TEST)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698