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 10 matching lines...) Expand all Loading... |
21 LIB_OBJS = \ | 21 LIB_OBJS = \ |
22 metrics_library.o | 22 metrics_library.o |
23 DAEMON_OBJS = \ | 23 DAEMON_OBJS = \ |
24 metrics_daemon.o \ | 24 metrics_daemon.o \ |
25 metrics_daemon_main.o | 25 metrics_daemon_main.o |
26 TESTDAEMON_OBJS = \ | 26 TESTDAEMON_OBJS = \ |
27 metrics_daemon.o \ | 27 metrics_daemon.o \ |
28 metrics_daemon_test.o | 28 metrics_daemon_test.o |
29 | 29 |
30 DAEMON_LDFLAGS = $(LDCONFIG) -lrt -lbase -lpthread -lgflags | 30 DAEMON_LDFLAGS = $(LDCONFIG) -lrt -lbase -lpthread -lgflags |
31 TESTDAEMON_LIBS = -lgtest | 31 TESTDAEMON_LIBS = -lgmock -lgtest |
32 | 32 |
33 all: $(LIB) $(SHAREDLIB) $(CLIENT) $(DAEMON) | 33 all: $(LIB) $(SHAREDLIB) $(CLIENT) $(DAEMON) |
34 | 34 |
35 tests: $(DAEMON_TEST) | 35 tests: $(DAEMON_TEST) |
36 | 36 |
37 $(CLIENT): $(CLIENT_OBJS) $(SHAREDLIB) | 37 $(CLIENT): $(CLIENT_OBJS) $(SHAREDLIB) |
38 $(CXX) $(LDFLAGS) $^ -o $@ | 38 $(CXX) $(LDFLAGS) $^ -o $@ |
39 | 39 |
40 $(DAEMON): $(DAEMON_OBJS) $(SHAREDLIB) | 40 $(DAEMON): $(DAEMON_OBJS) $(SHAREDLIB) |
41 $(CXX) -o $@ $^ $(DAEMON_LDFLAGS) | 41 $(CXX) -o $@ $^ $(DAEMON_LDFLAGS) |
(...skipping 25 matching lines...) Expand all Loading... |
67 install $(CLIENT) $(DESTDIR)/usr/bin | 67 install $(CLIENT) $(DESTDIR)/usr/bin |
68 install $(DAEMON) $(DESTDIR)/usr/bin | 68 install $(DAEMON) $(DESTDIR)/usr/bin |
69 install $(LIB) $(DESTDIR)/usr/lib | 69 install $(LIB) $(DESTDIR)/usr/lib |
70 install $(SHAREDLIB) $(DESTDIR)/usr/lib | 70 install $(SHAREDLIB) $(DESTDIR)/usr/lib |
71 install metrics_library.h $(DESTDIR)/usr/include | 71 install metrics_library.h $(DESTDIR)/usr/include |
72 install syslog_parser.sh $(DESTDIR)/usr/bin | 72 install syslog_parser.sh $(DESTDIR)/usr/bin |
73 install omaha_tracker.sh $(DESTDIR)/usr/sbin | 73 install omaha_tracker.sh $(DESTDIR)/usr/sbin |
74 | 74 |
75 clean: | 75 clean: |
76 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) $(TESTDAEMON) *.o | 76 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) $(TESTDAEMON) *.o |
OLD | NEW |