OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 metrics_client.o | 25 metrics_client.o |
26 DAEMON_OBJS = \ | 26 DAEMON_OBJS = \ |
27 counter.o \ | 27 counter.o \ |
28 metrics_daemon.o \ | 28 metrics_daemon.o \ |
29 metrics_daemon_main.o | 29 metrics_daemon_main.o |
30 TESTDAEMON_OBJS = \ | 30 TESTDAEMON_OBJS = \ |
31 counter.o \ | 31 counter.o \ |
32 metrics_daemon.o \ | 32 metrics_daemon.o \ |
33 metrics_daemon_test.o | 33 metrics_daemon_test.o |
34 LIB_OBJS = \ | 34 LIB_OBJS = \ |
| 35 c_metrics_library.o \ |
35 metrics_library.o | 36 metrics_library.o |
36 TESTLIB_OBJS = \ | 37 TESTLIB_OBJS = \ |
37 metrics_library.o \ | 38 metrics_library.o \ |
38 metrics_library_test.o | 39 metrics_library_test.o |
39 | 40 |
40 TESTCOUNTER_LIBS = -lgmock -lgtest -lbase -lrt -lpthread | 41 TESTCOUNTER_LIBS = -lgmock -lgtest -lbase -lrt -lpthread |
41 DAEMON_LDFLAGS = $(LDFLAGS) $(LDCONFIG) -lrt -lbase -lpthread -lgflags | 42 DAEMON_LDFLAGS = $(LDFLAGS) $(LDCONFIG) -lrt -lbase -lpthread -lgflags |
42 TESTDAEMON_LIBS = -lgmock -lgtest | 43 TESTDAEMON_LIBS = -lgmock -lgtest |
43 TESTLIB_LIBS = -lgtest -lbase -lrt -lpthread | 44 TESTLIB_LIBS = -lgtest -lbase -lrt -lpthread |
44 | 45 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 network_states.h \ | 78 network_states.h \ |
78 power_states.h | 79 power_states.h |
79 metrics_daemon_test.o: \ | 80 metrics_daemon_test.o: \ |
80 metrics_daemon.h \ | 81 metrics_daemon.h \ |
81 network_states.h \ | 82 network_states.h \ |
82 power_states.h | 83 power_states.h |
83 | 84 |
84 clean: | 85 clean: |
85 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) *.o | 86 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) *.o |
86 rm -f $(COUNTER_TEST) $(DAEMON_TEST) $(LIB_TEST) | 87 rm -f $(COUNTER_TEST) $(DAEMON_TEST) $(LIB_TEST) |
OLD | NEW |