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

Side by Side Diff: src/platform/metrics/Makefile

Issue 1863002: Add basic daily active use logging. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Address review comments. Created 10 years, 7 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 | src/platform/metrics/metrics_daemon.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 # 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
11 CFLAGS = -Wall -Werror -I/usr/include -fPIC -O2 $(CCONFIG) 11 CXXFLAGS += -Wall -Werror -fPIC -fno-exceptions $(CCONFIG)
12 CXXFLAGS = $(CFLAGS) -fno-exceptions
13 12
14 CLIENT = metrics_client 13 CLIENT = metrics_client
15 DAEMON = metrics_daemon 14 DAEMON = metrics_daemon
16 TESTDAEMON = test_daemon 15 TESTDAEMON = test_daemon
17 LIB = libmetrics.a 16 LIB = libmetrics.a
18 SHAREDLIB = libmetrics.so 17 SHAREDLIB = libmetrics.so
19 18
20 CLIENT_OBJS = \ 19 CLIENT_OBJS = \
21 metrics_client.o 20 metrics_client.o
22 LIB_OBJS = \ 21 LIB_OBJS = \
(...skipping 21 matching lines...) Expand all
44 43
45 $(LIB): $(LIB_OBJS) 44 $(LIB): $(LIB_OBJS)
46 ar rcs $@ $^ 45 ar rcs $@ $^
47 46
48 $(SHAREDLIB): $(LIB_OBJS) 47 $(SHAREDLIB): $(LIB_OBJS)
49 $(CXX) $(LDFLAGS) -shared $^ -o $@ 48 $(CXX) $(LDFLAGS) -shared $^ -o $@
50 49
51 %.o: %.cc 50 %.o: %.cc
52 $(CXX) $(CXXFLAGS) -c $< -o $@ 51 $(CXX) $(CXXFLAGS) -c $< -o $@
53 52
54 %.o: %.c
55 $(CC) $(CFLAGS) -c $< -o $@
56
57 # dependencies in addition to those defined by the rules 53 # dependencies in addition to those defined by the rules
58 54
59 metrics_daemon.o: \ 55 metrics_daemon.o: \
60 metrics_daemon.h \ 56 metrics_daemon.h \
61 network_states.h \ 57 network_states.h \
62 power_states.h 58 power_states.h
63 metrics_daemon_unittest.o: \ 59 metrics_daemon_unittest.o: \
64 metrics_daemon.h \ 60 metrics_daemon.h \
65 network_states.h \ 61 network_states.h \
66 power_states.h 62 power_states.h
67 63
68 install: 64 install:
69 install $(CLIENT) $(DESTDIR)/usr/bin 65 install $(CLIENT) $(DESTDIR)/usr/bin
70 install $(DAEMON) $(DESTDIR)/usr/bin 66 install $(DAEMON) $(DESTDIR)/usr/bin
71 install $(LIB) $(DESTDIR)/usr/lib 67 install $(LIB) $(DESTDIR)/usr/lib
72 install $(SHAREDLIB) $(DESTDIR)/usr/lib 68 install $(SHAREDLIB) $(DESTDIR)/usr/lib
73 install metrics_library.h $(DESTDIR)/usr/include 69 install metrics_library.h $(DESTDIR)/usr/include
74 install syslog_parser.sh $(DESTDIR)/usr/bin 70 install syslog_parser.sh $(DESTDIR)/usr/bin
75 install omaha_tracker.sh $(DESTDIR)/usr/sbin 71 install omaha_tracker.sh $(DESTDIR)/usr/sbin
76 72
77 clean: 73 clean:
78 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) $(TESTDAEMON) *.o 74 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) $(TESTDAEMON) *.o
OLDNEW
« no previous file with comments | « no previous file | src/platform/metrics/metrics_daemon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698