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

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

Issue 500117: Daemonize (fork()) and install metrics_daemon in the image for execution. (Closed)
Patch Set: rename do_fork to run_as_daemon Created 11 years 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 | « src/platform/init/metrics_daemon.conf ('k') | src/platform/metrics_daemon/debian/changelog » ('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) 2009 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2009 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 CCC = g++ 5 CCC = g++
6 CC = gcc 6 CC = gcc
7 7
8 INCLUDES = -I../.. -I../../third_party/chrome/files -I../../common 8 INCLUDES = -I../.. -I../../third_party/chrome/files -I../../common
9 COPT = -g 9 COPT = -g
10 10
11 CCONFIG = $(shell pkg-config --cflags dbus-1 glib-2.0 dbus-glib-1) 11 CCONFIG = $(shell pkg-config --cflags dbus-1 glib-2.0 dbus-glib-1)
12 LDCONFIG = $(shell pkg-config --libs dbus-1 glib-2.0 gthread-2.0 dbus-glib-1) 12 LDCONFIG = $(shell pkg-config --libs dbus-1 glib-2.0 gthread-2.0 dbus-glib-1)
13 13
14 CFLAGS = $(COPT) -fno-exceptions -Wall -Werror $(INCLUDES) $(CCONFIG) 14 CFLAGS = $(COPT) -fno-exceptions -Wall -Werror $(INCLUDES) $(CCONFIG)
15 LDFLAGS = -L../../third_party/chrome $(LDCONFIG) -lrt -lbase -lpthread 15 LDFLAGS = -L../../third_party/chrome $(LDCONFIG) -lrt -lbase -lpthread -lgflags
16 16
17 COMMONSRC = metrics_daemon.cc 17 COMMONSRC = metrics_daemon.cc
18 COMMONCSRC = marshal_void__string_boxed.c 18 COMMONCSRC = marshal_void__string_boxed.c
19 SRC = main.cc 19 SRC = main.cc
20 20
21 TESTSRC = metrics_daemon_unittest.cc 21 TESTSRC = metrics_daemon_unittest.cc
22 TESTLIB = -lgflags -lgtest 22 TESTLIB = -lgflags -lgtest
23 23
24 OBJ = $(SRC:.cc=.o) 24 OBJ = $(SRC:.cc=.o)
25 COMMONOBJ = $(COMMONSRC:.cc=.o) $(COMMONCSRC:.c=.o) 25 COMMONOBJ = $(COMMONSRC:.cc=.o) $(COMMONCSRC:.c=.o)
(...skipping 25 matching lines...) Expand all
51 # dependencies in addition to those defined by the rules 51 # dependencies in addition to those defined by the rules
52 52
53 metrics_daemon.o: metrics_daemon.h marshal_void__string_boxed.h network_states.h 53 metrics_daemon.o: metrics_daemon.h marshal_void__string_boxed.h network_states.h
54 metrics_daemon_unittest.o: metrics_daemon.h marshal_void__string_boxed.h \ 54 metrics_daemon_unittest.o: metrics_daemon.h marshal_void__string_boxed.h \
55 network_states.h 55 network_states.h
56 marshal_void__string_boxed.o: marshal_void__string_boxed.h 56 marshal_void__string_boxed.o: marshal_void__string_boxed.h
57 57
58 .PRECIOUS: marshal_void__string_boxed.c # keep around for debugging 58 .PRECIOUS: marshal_void__string_boxed.c # keep around for debugging
59 59
60 install: 60 install:
61 » install $DAEMON $(DESTDIR)/usr/bin 61 » mkdir -p $(DESTDIR)/usr/bin
62 » install $(DAEMON) $(DESTDIR)/usr/bin
62 63
63 clean: 64 clean:
64 rm -f *.o marshal_void__string_boxed.[ch] \ 65 rm -f *.o marshal_void__string_boxed.[ch] \
65 metrics_daemon test_daemon *~ 66 metrics_daemon test_daemon *~
OLDNEW
« no previous file with comments | « src/platform/init/metrics_daemon.conf ('k') | src/platform/metrics_daemon/debian/changelog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698