Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 5 | AR ?= ar |
Darin Petkov | e6ca320 | 2012-10-19 14:49:56 +0200 | [diff] [blame] | 6 | CC ?= gcc |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 7 | CXX ?= g++ |
Darin Petkov | 374b5ee | 2012-11-06 11:20:04 +0100 | [diff] [blame] | 8 | CFLAGS += \ |
| 9 | -Wall \ |
| 10 | -Werror \ |
| 11 | -Wextra \ |
| 12 | -Wno-missing-field-initializers \ |
| 13 | -Wno-unused-parameter \ |
| 14 | -Wno-unused-result \ |
| 15 | -Wuninitialized |
mukesh agrawal | f60e406 | 2011-05-27 13:13:41 -0700 | [diff] [blame] | 16 | CXXFLAGS ?= -fno-strict-aliasing |
Darin Petkov | 374b5ee | 2012-11-06 11:20:04 +0100 | [diff] [blame] | 17 | CXXFLAGS += $(CFLAGS) -Woverloaded-virtual |
Darin Petkov | 04d46b4 | 2011-08-31 14:17:34 -0700 | [diff] [blame] | 18 | CXXFLAGS += $(EXTRA_CXXFLAGS) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 19 | CPPFLAGS ?= -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 20 | PKG_CONFIG ?= pkg-config |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 21 | DBUSXX_XML2CPP = dbusxx-xml2cpp |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 22 | PROTOC ?= protoc |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 23 | |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 24 | BUILDDIR = build |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 25 | VPATH = $(BUILDDIR) |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 26 | |
Paul Stewart | 291a473 | 2012-03-14 19:19:02 -0700 | [diff] [blame] | 27 | LIBDIR = /usr/lib |
Darin Petkov | 86654d3 | 2012-10-08 15:32:34 +0200 | [diff] [blame] | 28 | SHIMDIR = $(LIBDIR)/shill/shims |
Darin Petkov | 95f317f | 2012-10-22 13:37:43 +0200 | [diff] [blame] | 29 | CPPFLAGS += -DSHIMDIR=\"$(SHIMDIR)\" |
Wade Guthrie | 0d43853 | 2012-05-18 14:18:50 -0700 | [diff] [blame] | 30 | |
Eric Shienbrood | 3e20a23 | 2012-02-16 11:35:56 -0500 | [diff] [blame] | 31 | BASE_VER = 125070 |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 32 | COMMON_PC_DEPS = libchrome-$(BASE_VER) libchromeos-$(BASE_VER) |
Christopher Wiley | 49e247a | 2012-11-07 11:24:59 -0800 | [diff] [blame] | 33 | SHILL_PC_DEPS = \ |
| 34 | $(COMMON_PC_DEPS) \ |
| 35 | dbus-c++-1 \ |
| 36 | gio-2.0 \ |
| 37 | glib-2.0 \ |
| 38 | ModemManager \ |
Christopher Wiley | efd521f | 2012-11-07 17:32:46 -0800 | [diff] [blame] | 39 | libnl-3.0 \ |
| 40 | libnl-genl-3.0 |
Darin Petkov | fac01f0 | 2012-12-06 12:44:07 +0100 | [diff] [blame] | 41 | NET_DIAGS_UPLOAD_PC_DEPS = $(COMMON_PC_DEPS) |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 42 | NSS_GET_CERT_PC_DEPS = $(COMMON_PC_DEPS) nss |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 43 | OPENVPN_SCRIPT_PC_DEPS = $(COMMON_PC_DEPS) dbus-c++-1 |
Darin Petkov | e6ca320 | 2012-10-19 14:49:56 +0200 | [diff] [blame] | 44 | PPPD_PLUGIN_PC_DEPS = $(COMMON_PC_DEPS) dbus-c++-1 |
Darin Petkov | 16f6349 | 2012-10-23 11:12:58 +0200 | [diff] [blame] | 45 | SET_APN_HELPER_PC_DEPS = dbus-1 |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 46 | INCLUDE_DIRS = \ |
| 47 | -iquote.. \ |
| 48 | -iquote $(BUILDDIR) \ |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 49 | $(shell $(PKG_CONFIG) --cflags \ |
Darin Petkov | fac01f0 | 2012-12-06 12:44:07 +0100 | [diff] [blame] | 50 | $(NET_DIAGS_UPLOAD_PC_DEPS) \ |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 51 | $(NSS_GET_CERT_PC_DEPS) \ |
| 52 | $(OPENVPN_SCRIPT_PC_DEPS) \ |
Darin Petkov | e6ca320 | 2012-10-19 14:49:56 +0200 | [diff] [blame] | 53 | $(PPPD_PLUGIN_PC_DEPS) \ |
Darin Petkov | 16f6349 | 2012-10-23 11:12:58 +0200 | [diff] [blame] | 54 | $(SET_APN_HELPER_PC_DEPS) \ |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 55 | $(SHILL_PC_DEPS)) |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 56 | SHILL_LIBS = \ |
| 57 | -lbootstat \ |
| 58 | -lcares \ |
| 59 | -lmobile-provider \ |
| 60 | -lmetrics \ |
| 61 | -lminijail \ |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 62 | -lprotobuf-lite \ |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 63 | $(shell $(PKG_CONFIG) --libs $(SHILL_PC_DEPS)) |
Darin Petkov | fac01f0 | 2012-12-06 12:44:07 +0100 | [diff] [blame] | 64 | NET_DIAGS_UPLOAD_LIBS = \ |
| 65 | $(shell $(PKG_CONFIG) --libs $(NET_DIAGS_UPLOAD_PC_DEPS)) |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 66 | NSS_GET_CERT_LIBS = $(shell $(PKG_CONFIG) --libs $(NSS_GET_CERT_PC_DEPS)) |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 67 | OPENVPN_SCRIPT_LIBS = $(shell $(PKG_CONFIG) --libs $(OPENVPN_SCRIPT_PC_DEPS)) |
Darin Petkov | 16f6349 | 2012-10-23 11:12:58 +0200 | [diff] [blame] | 68 | PPPD_PLUGIN_LIBS = $(shell $(PKG_CONFIG) --libs $(PPPD_PLUGIN_PC_DEPS)) |
| 69 | SET_APN_HELPER_LIBS = $(shell $(PKG_CONFIG) --libs $(SET_APN_HELPER_PC_DEPS)) |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 70 | TEST_LIBS = $(SHILL_LIBS) $(NSS_GET_CERT_LIBS) -lgmock -lgtest |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 71 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 72 | DBUS_BINDINGS_DIR = dbus_bindings |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 73 | BUILD_DBUS_BINDINGS_DIR = $(BUILDDIR)/shill/$(DBUS_BINDINGS_DIR) |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 74 | BUILD_DBUS_BINDINGS_SHIMS_DIR = $(BUILD_DBUS_BINDINGS_DIR)/shims |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 75 | |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 76 | BUILD_PROTO_BINDINGS_DIR = $(BUILDDIR)/shill/proto_bindings |
| 77 | |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 78 | BUILD_SHIMS_DIR = $(BUILDDIR)/shims |
| 79 | |
| 80 | _CREATE_BUILDDIR := $(shell mkdir -p \ |
| 81 | $(BUILDDIR) \ |
| 82 | $(BUILD_DBUS_BINDINGS_DIR) \ |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 83 | $(BUILD_DBUS_BINDINGS_SHIMS_DIR) \ |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 84 | $(BUILD_PROTO_BINDINGS_DIR)/power_manager \ |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 85 | $(BUILD_SHIMS_DIR)) |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 86 | |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 87 | DBUS_ADAPTOR_HEADERS := |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 88 | |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 89 | DBUS_PROXY_HEADERS = \ |
David Rochberg | bdd0c8b | 2012-02-27 15:45:48 -0500 | [diff] [blame] | 90 | dbus-objectmanager.h \ |
Darin Petkov | 18fb2f7 | 2012-06-14 09:09:34 +0200 | [diff] [blame] | 91 | dbus-properties.h \ |
| 92 | dbus-service.h \ |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 93 | dhcpcd.h \ |
Darin Petkov | c37a9c4 | 2012-09-06 15:28:22 +0200 | [diff] [blame] | 94 | modem-gobi.h \ |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 95 | power_manager.h \ |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 96 | shims/flimflam-task.h \ |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 97 | supplicant-bss.h \ |
| 98 | supplicant-interface.h \ |
| 99 | supplicant-network.h \ |
mukesh agrawal | ab87ea4 | 2011-05-18 11:44:49 -0700 | [diff] [blame] | 100 | supplicant-process.h |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 101 | |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 102 | # Generates rules for copying SYSROOT XMLs locally and updates the proxy header |
| 103 | # dependencies. |
| 104 | DBUS_BINDINGS_XML_SYSROOT = \ |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 105 | org.chromium.WiMaxManager>wimax_manager \ |
| 106 | org.chromium.WiMaxManager.Device>wimax_manager-device \ |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 107 | org.chromium.WiMaxManager.Network>wimax_manager-network \ |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 108 | org.freedesktop.ModemManager>modem_manager \ |
Darin Petkov | 1ec741c | 2011-08-02 10:45:27 -0700 | [diff] [blame] | 109 | org.freedesktop.ModemManager.Modem>modem \ |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 110 | org.freedesktop.ModemManager.Modem.Cdma>modem-cdma \ |
| 111 | org.freedesktop.ModemManager.Modem.Gsm.Card>modem-gsm-card \ |
| 112 | org.freedesktop.ModemManager.Modem.Gsm.Network>modem-gsm-network \ |
Jason Glasgow | ee1081c | 2012-03-06 15:14:53 -0500 | [diff] [blame] | 113 | org.freedesktop.ModemManager.Modem.Simple>modem-simple \ |
Arman Uguray | 6e5639f | 2012-11-15 20:30:19 -0800 | [diff] [blame] | 114 | org.freedesktop.ModemManager1.Bearer>mm1-bearer \ |
Jason Glasgow | ee1081c | 2012-03-06 15:14:53 -0500 | [diff] [blame] | 115 | org.freedesktop.ModemManager1.Modem>mm1-modem \ |
Arman Uguray | 2c39fab | 2012-12-12 16:56:34 -0800 | [diff] [blame] | 116 | org.freedesktop.ModemManager1.Modem.Location>mm1-modem-location \ |
Jason Glasgow | ee1081c | 2012-03-06 15:14:53 -0500 | [diff] [blame] | 117 | org.freedesktop.ModemManager1.Modem.Modem3gpp>mm1-modem-modem3gpp \ |
| 118 | org.freedesktop.ModemManager1.Modem.ModemCdma>mm1-modem-modemcdma \ |
Jason Glasgow | 74f5ef2 | 2012-03-29 16:15:04 -0400 | [diff] [blame] | 119 | org.freedesktop.ModemManager1.Modem.Simple>mm1-modem-simple \ |
Arman Uguray | 618af2b | 2012-12-11 19:20:42 -0800 | [diff] [blame] | 120 | org.freedesktop.ModemManager1.Modem.Time>mm1-modem-time \ |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 121 | org.freedesktop.ModemManager1.Sim>mm1-sim |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 122 | |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 123 | # Rename local XML files with the names required by DBus to XML files with the |
| 124 | # names required by the style guide, which will then be turned into generated |
| 125 | # headers later. |
| 126 | DBUS_BINDINGS_XML_LOCAL = \ |
| 127 | org.chromium.flimflam.Device>flimflam-device \ |
| 128 | org.chromium.flimflam.IPConfig>flimflam-ipconfig \ |
| 129 | org.chromium.flimflam.Manager>flimflam-manager \ |
| 130 | org.chromium.flimflam.Profile>flimflam-profile \ |
Darin Petkov | a9b1fed | 2012-02-29 11:49:05 +0100 | [diff] [blame] | 131 | org.chromium.flimflam.Service>flimflam-service \ |
| 132 | org.chromium.flimflam.Task>flimflam-task |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 133 | |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 134 | define ADD_BINDING |
| 135 | $(eval _SOURCE = $(word 1,$(subst >, ,$(1)))) |
| 136 | $(eval _TARGET = $(word 2,$(subst >, ,$(1)))) |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 137 | DBUS_PROXY_HEADERS += $(_TARGET).h |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 138 | $(BUILD_DBUS_BINDINGS_DIR)/$(_TARGET).xml: \ |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 139 | $(SYSROOT)/usr/share/dbus-1/interfaces/$(_SOURCE).xml |
| 140 | cat $$< > $$@ |
| 141 | endef |
| 142 | |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 143 | define ADD_LOCAL_BINDING |
| 144 | $(eval _SOURCE = $(word 1,$(subst >, ,$(1)))) |
| 145 | $(eval _TARGET = $(word 2,$(subst >, ,$(1)))) |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 146 | DBUS_ADAPTOR_HEADERS += $(_TARGET).h |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 147 | $(BUILD_DBUS_BINDINGS_DIR)/$(_TARGET).xml: $(DBUS_BINDINGS_DIR)/$(_SOURCE).xml |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 148 | cp $$< $$@ |
| 149 | endef |
| 150 | |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 151 | $(foreach b,$(DBUS_BINDINGS_XML_SYSROOT),$(eval $(call ADD_BINDING,$(b)))) |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 152 | $(foreach b,$(DBUS_BINDINGS_XML_LOCAL),$(eval $(call ADD_LOCAL_BINDING,$(b)))) |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 153 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 154 | DBUS_ADAPTOR_BINDINGS = \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 155 | $(addprefix $(BUILD_DBUS_BINDINGS_DIR)/, $(DBUS_ADAPTOR_HEADERS)) |
| 156 | DBUS_PROXY_BINDINGS = \ |
| 157 | $(addprefix $(BUILD_DBUS_BINDINGS_DIR)/, $(DBUS_PROXY_HEADERS)) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 158 | |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 159 | SYSTEM_API_PROTO_PATH = $(SYSROOT)/usr/include/chromeos/dbus |
| 160 | PROTO_BINDINGS_OBJS = $(addprefix $(BUILD_PROTO_BINDINGS_DIR)/, \ |
| 161 | power_manager/suspend.pb.o \ |
| 162 | ) |
| 163 | PROTO_BINDINGS_H = $(PROTO_BINDINGS_OBJS:.o=.h) |
| 164 | PROTO_BINDINGS_CC = $(PROTO_BINDINGS_OBJS:.o=.cc) |
| 165 | |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 166 | SHILL_LIB = $(BUILDDIR)/shill.a |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 167 | SHILL_OBJS = $(addprefix $(BUILDDIR)/, \ |
Paul Stewart | ac1328e | 2012-07-20 11:55:40 -0700 | [diff] [blame] | 168 | arp_client.o \ |
Paul Stewart | 91a5aac | 2012-07-20 11:55:40 -0700 | [diff] [blame] | 169 | arp_packet.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 170 | async_connection.o \ |
repo sync | 90ee0fa | 2012-12-18 10:08:08 -0800 | [diff] [blame] | 171 | attribute_list.o \ |
Paul Stewart | 3ecfa2b | 2011-07-15 10:47:42 -0700 | [diff] [blame] | 172 | byte_string.o \ |
Wade Guthrie | 5020b57 | 2012-10-12 15:51:14 -0700 | [diff] [blame] | 173 | callback80211_metrics.o \ |
Wade Guthrie | 64b4c14 | 2012-08-20 15:21:01 -0700 | [diff] [blame] | 174 | callback80211_object.o \ |
Chris Masone | 3bd3c8c | 2011-06-13 08:20:26 -0700 | [diff] [blame] | 175 | cellular.o \ |
Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 176 | cellular_capability.o \ |
| 177 | cellular_capability_cdma.o \ |
Jason Glasgow | 82f9ab3 | 2012-04-04 14:27:19 -0400 | [diff] [blame] | 178 | cellular_capability_classic.o \ |
Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 179 | cellular_capability_gsm.o \ |
Jason Glasgow | 82f9ab3 | 2012-04-04 14:27:19 -0400 | [diff] [blame] | 180 | cellular_capability_universal.o \ |
Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 181 | cellular_error.o \ |
Ben Chan | b39cb31 | 2012-11-01 22:55:25 -0700 | [diff] [blame] | 182 | cellular_operator_info.o \ |
Chris Masone | 3bd3c8c | 2011-06-13 08:20:26 -0700 | [diff] [blame] | 183 | cellular_service.o \ |
Wade Guthrie | 0d43853 | 2012-05-18 14:18:50 -0700 | [diff] [blame] | 184 | config80211.o \ |
Paul Stewart | dd60e45 | 2011-08-08 11:38:36 -0700 | [diff] [blame] | 185 | connection.o \ |
Darin Petkov | 823c47e | 2011-06-27 16:15:35 -0700 | [diff] [blame] | 186 | crypto_des_cbc.o \ |
Darin Petkov | 86964e0 | 2011-06-29 13:49:28 -0700 | [diff] [blame] | 187 | crypto_provider.o \ |
Darin Petkov | 877642b | 2011-06-27 13:37:22 -0700 | [diff] [blame] | 188 | crypto_rot47.o \ |
Chris Masone | d0ceb8c | 2011-06-02 10:05:39 -0700 | [diff] [blame] | 189 | dbus_adaptor.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 190 | dbus_control.o \ |
Darin Petkov | 002c58e | 2012-06-19 02:56:05 +0200 | [diff] [blame] | 191 | dbus_manager.o \ |
David Rochberg | b8b89b1 | 2012-02-28 16:11:33 -0500 | [diff] [blame] | 192 | dbus_objectmanager_proxy.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 193 | dbus_properties.o \ |
Darin Petkov | 5c97ac5 | 2011-07-19 16:30:49 -0700 | [diff] [blame] | 194 | dbus_properties_proxy.o \ |
Darin Petkov | 18fb2f7 | 2012-06-14 09:09:34 +0200 | [diff] [blame] | 195 | dbus_service_proxy.o \ |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 196 | default_profile.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 197 | device.o \ |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 198 | device_dbus_adaptor.o \ |
Paul Stewart | 0af98bf | 2011-05-10 17:38:08 -0700 | [diff] [blame] | 199 | device_info.o \ |
Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 200 | dhcp_config.o \ |
| 201 | dhcp_provider.o \ |
| 202 | dhcpcd_proxy.o \ |
Darin Petkov | f0136cd | 2012-11-07 16:18:02 +0100 | [diff] [blame] | 203 | diagnostics_reporter.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 204 | dns_client.o \ |
mukesh agrawal | b54601c | 2011-06-07 17:39:22 -0700 | [diff] [blame] | 205 | endpoint.o \ |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 206 | ephemeral_profile.o \ |
Chris Masone | 8fe2c7e | 2011-06-09 15:51:19 -0700 | [diff] [blame] | 207 | error.o \ |
Paul Stewart | b50f0b9 | 2011-05-16 16:31:42 -0700 | [diff] [blame] | 208 | ethernet.o \ |
Paul Stewart | f1ce5d2 | 2011-05-19 13:10:20 -0700 | [diff] [blame] | 209 | ethernet_service.o \ |
Paul Stewart | 26b327e | 2011-10-19 11:38:09 -0700 | [diff] [blame] | 210 | event_dispatcher.o \ |
Arman Uguray | f4c6181 | 2013-01-10 18:58:39 -0800 | [diff] [blame] | 211 | file_reader.o \ |
| 212 | file_reader_unittest.o \ |
Gaurav Shah | 6d2c72d | 2012-10-16 16:30:44 -0700 | [diff] [blame] | 213 | geolocation_info.o \ |
Darin Petkov | f7897bc | 2011-06-08 17:13:36 -0700 | [diff] [blame] | 214 | glib.o \ |
Paul Stewart | f0aae10 | 2011-10-19 12:11:44 -0700 | [diff] [blame] | 215 | glib_io_ready_handler.o \ |
| 216 | glib_io_input_handler.o \ |
Gary Morain | f80ef06 | 2012-05-16 14:57:04 -0700 | [diff] [blame] | 217 | hook_table.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 218 | http_proxy.o \ |
Paul Stewart | 188a84a | 2012-01-20 16:28:15 -0800 | [diff] [blame] | 219 | http_request.o \ |
Paul Stewart | 9513356 | 2012-01-18 18:36:57 -0800 | [diff] [blame] | 220 | http_url.o \ |
Paul Stewart | 1d18e8c | 2011-07-15 11:00:31 -0700 | [diff] [blame] | 221 | ip_address.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 222 | ipconfig.o \ |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 223 | ipconfig_dbus_adaptor.o \ |
Darin Petkov | 083047b | 2011-06-23 20:42:48 -0700 | [diff] [blame] | 224 | key_file_store.o \ |
mukesh agrawal | 7a4e400 | 2011-09-06 11:26:05 -0700 | [diff] [blame] | 225 | key_value_store.o \ |
Paul Stewart | 3f43f43 | 2012-07-16 12:12:45 -0700 | [diff] [blame] | 226 | link_monitor.o \ |
Darin Petkov | 7476a26 | 2012-04-12 16:30:46 +0200 | [diff] [blame] | 227 | l2tp_ipsec_driver.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 228 | manager.o \ |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 229 | manager_dbus_adaptor.o \ |
Christopher Wiley | 5781aa4 | 2012-07-30 14:42:23 -0700 | [diff] [blame] | 230 | memory_log.o \ |
Thieu Le | 48e6d6d | 2011-12-06 00:40:27 +0000 | [diff] [blame] | 231 | metrics.o \ |
Jorge Lucangeli Obes | ad43cc6 | 2012-04-11 16:25:43 -0700 | [diff] [blame] | 232 | minijail.o \ |
Arman Uguray | 6e5639f | 2012-11-15 20:30:19 -0800 | [diff] [blame] | 233 | mm1_bearer_proxy.o \ |
Arman Uguray | 2c39fab | 2012-12-12 16:56:34 -0800 | [diff] [blame] | 234 | mm1_modem_location_proxy.o \ |
Jason Glasgow | ee1081c | 2012-03-06 15:14:53 -0500 | [diff] [blame] | 235 | mm1_modem_modem3gpp_proxy.o \ |
| 236 | mm1_modem_modemcdma_proxy.o \ |
| 237 | mm1_modem_proxy.o \ |
| 238 | mm1_modem_simple_proxy.o \ |
Arman Uguray | 618af2b | 2012-12-11 19:20:42 -0800 | [diff] [blame] | 239 | mm1_modem_time_proxy.o \ |
Jason Glasgow | 74f5ef2 | 2012-03-29 16:15:04 -0400 | [diff] [blame] | 240 | mm1_sim_proxy.o \ |
Darin Petkov | 5c97ac5 | 2011-07-19 16:30:49 -0700 | [diff] [blame] | 241 | modem.o \ |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 242 | modem_1.o \ |
Darin Petkov | bec79a2 | 2011-08-01 14:47:17 -0700 | [diff] [blame] | 243 | modem_cdma_proxy.o \ |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 244 | modem_classic.o \ |
Darin Petkov | c37a9c4 | 2012-09-06 15:28:22 +0200 | [diff] [blame] | 245 | modem_gobi_proxy.o \ |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 246 | modem_gsm_card_proxy.o \ |
Darin Petkov | a1e0a1c | 2011-08-25 15:08:33 -0700 | [diff] [blame] | 247 | modem_gsm_network_proxy.o \ |
Darin Petkov | 887f298 | 2011-07-14 16:10:17 -0700 | [diff] [blame] | 248 | modem_info.o \ |
| 249 | modem_manager.o \ |
Ben Chan | 5c853ef | 2012-10-05 00:05:37 -0700 | [diff] [blame] | 250 | modem_manager_1.o \ |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 251 | modem_manager_proxy.o \ |
Darin Petkov | e9d12e0 | 2011-07-27 15:09:37 -0700 | [diff] [blame] | 252 | modem_proxy.o \ |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 253 | modem_simple_proxy.o \ |
Wade Guthrie | 0d43853 | 2012-05-18 14:18:50 -0700 | [diff] [blame] | 254 | netlink_socket.o \ |
Wade Guthrie | 1619624 | 2012-11-20 15:53:52 -0800 | [diff] [blame] | 255 | nl80211_attribute.o \ |
repo sync | dc085c8 | 2012-12-28 08:54:41 -0800 | [diff] [blame] | 256 | nl80211_message.o \ |
Wade Guthrie | 0d43853 | 2012-05-18 14:18:50 -0700 | [diff] [blame] | 257 | nl80211_socket.o \ |
Darin Petkov | 3c5e4dc | 2012-04-02 14:44:27 +0200 | [diff] [blame] | 258 | nss.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 259 | openvpn_driver.o \ |
Darin Petkov | 1c11520 | 2012-03-22 15:35:47 +0100 | [diff] [blame] | 260 | openvpn_management_server.o \ |
Paul Stewart | e692740 | 2012-01-23 16:11:30 -0800 | [diff] [blame] | 261 | portal_detector.o \ |
Gary Morain | 43bc627 | 2012-01-30 14:01:15 -0800 | [diff] [blame] | 262 | power_manager.o \ |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 263 | power_manager_proxy.o \ |
Darin Petkov | 5a85047 | 2012-06-06 15:44:24 +0200 | [diff] [blame] | 264 | process_killer.o \ |
Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame] | 265 | profile.o \ |
| 266 | profile_dbus_adaptor.o \ |
Paul Stewart | 0756db9 | 2012-01-27 08:34:47 -0800 | [diff] [blame] | 267 | profile_dbus_property_exporter.o \ |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 268 | property_store.o \ |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 269 | proxy_factory.o \ |
Paul Stewart | 75e89d2 | 2011-08-01 10:00:02 -0700 | [diff] [blame] | 270 | routing_table.o \ |
Paul Stewart | b606394 | 2011-08-05 10:17:29 -0700 | [diff] [blame] | 271 | resolver.o \ |
Eric Shienbrood | 3e20a23 | 2012-02-16 11:35:56 -0500 | [diff] [blame] | 272 | rpc_task.o \ |
| 273 | rpc_task_dbus_adaptor.o \ |
Paul Stewart | f1ce5d2 | 2011-05-19 13:10:20 -0700 | [diff] [blame] | 274 | rtnl_handler.o \ |
| 275 | rtnl_listener.o \ |
Paul Stewart | dd7df79 | 2011-07-15 11:09:50 -0700 | [diff] [blame] | 276 | rtnl_message.o \ |
Ben Chan | bc49ac7 | 2012-04-10 19:59:45 -0700 | [diff] [blame] | 277 | scope_logger.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 278 | service.o \ |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 279 | service_dbus_adaptor.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 280 | shill_ares.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 281 | shill_config.o \ |
| 282 | shill_daemon.o \ |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 283 | shill_test_config.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 284 | shill_time.o \ |
Darin Petkov | 633ac6f | 2011-07-08 13:56:13 -0700 | [diff] [blame] | 285 | sockets.o \ |
Paul Stewart | 1062d9d | 2012-04-27 10:42:27 -0700 | [diff] [blame] | 286 | static_ip_parameters.o \ |
mukesh agrawal | b20776f | 2012-02-10 16:00:36 -0800 | [diff] [blame] | 287 | supplicant_bss_proxy.o \ |
mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 288 | supplicant_interface_proxy.o \ |
Paul Stewart | 835934a | 2012-12-06 19:27:09 -0800 | [diff] [blame] | 289 | supplicant_network_proxy.o \ |
mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 290 | supplicant_process_proxy.o \ |
Paul Stewart | fdd1607 | 2011-09-16 12:41:35 -0700 | [diff] [blame] | 291 | technology.o \ |
mukesh agrawal | 93a29ed | 2012-04-17 16:13:01 -0700 | [diff] [blame] | 292 | virtio_ethernet.o \ |
Darin Petkov | f20994f | 2012-03-05 16:12:19 +0100 | [diff] [blame] | 293 | vpn.o \ |
Darin Petkov | b451d6e | 2012-04-23 11:56:41 +0200 | [diff] [blame] | 294 | vpn_driver.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 295 | vpn_provider.o \ |
| 296 | vpn_service.o \ |
mukesh agrawal | b54601c | 2011-06-07 17:39:22 -0700 | [diff] [blame] | 297 | wifi.o \ |
| 298 | wifi_endpoint.o \ |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 299 | wifi_service.o \ |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 300 | wimax.o \ |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 301 | wimax_device_proxy.o \ |
| 302 | wimax_manager_proxy.o \ |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 303 | wimax_network_proxy.o \ |
Darin Petkov | b72b62e | 2012-05-15 16:55:36 +0200 | [diff] [blame] | 304 | wimax_provider.o \ |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 305 | wimax_service.o \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 306 | wpa_supplicant.o \ |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 307 | ) \ |
| 308 | $(PROTO_BINDINGS_OBJS) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 309 | |
| 310 | SHILL_BIN = shill |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 311 | # Broken out separately, because (unlike other SHILL_OBJS), it |
| 312 | # shouldn't be linked into TEST_BIN. |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 313 | SHILL_MAIN_OBJ = $(BUILDDIR)/shill_main.o |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 314 | |
| 315 | TEST_BIN = shill_unittest |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 316 | TEST_OBJS = $(addprefix $(BUILDDIR)/, \ |
Paul Stewart | ac1328e | 2012-07-20 11:55:40 -0700 | [diff] [blame] | 317 | arp_client_unittest.o \ |
Paul Stewart | 91a5aac | 2012-07-20 11:55:40 -0700 | [diff] [blame] | 318 | arp_packet_unittest.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 319 | async_connection_unittest.o \ |
Paul Stewart | 3ecfa2b | 2011-07-15 10:47:42 -0700 | [diff] [blame] | 320 | byte_string_unittest.o \ |
Darin Petkov | cb54773 | 2011-11-09 13:55:26 +0100 | [diff] [blame] | 321 | cellular_capability_cdma_unittest.o \ |
Jason Glasgow | 82f9ab3 | 2012-04-04 14:27:19 -0400 | [diff] [blame] | 322 | cellular_capability_classic_unittest.o \ |
Darin Petkov | b05315f | 2011-11-07 10:14:25 +0100 | [diff] [blame] | 323 | cellular_capability_gsm_unittest.o \ |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 324 | cellular_capability_universal_unittest.o \ |
Ben Chan | b39cb31 | 2012-11-01 22:55:25 -0700 | [diff] [blame] | 325 | cellular_operator_info_unittest.o \ |
Darin Petkov | b72cf40 | 2011-11-22 14:51:39 +0100 | [diff] [blame] | 326 | cellular_service_unittest.o \ |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 327 | cellular_unittest.o \ |
Darin Petkov | 823c47e | 2011-06-27 16:15:35 -0700 | [diff] [blame] | 328 | crypto_des_cbc_unittest.o \ |
Darin Petkov | 86964e0 | 2011-06-29 13:49:28 -0700 | [diff] [blame] | 329 | crypto_provider_unittest.o \ |
Darin Petkov | 877642b | 2011-06-27 13:37:22 -0700 | [diff] [blame] | 330 | crypto_rot47_unittest.o \ |
Wade Guthrie | 0d43853 | 2012-05-18 14:18:50 -0700 | [diff] [blame] | 331 | config80211_unittest.o \ |
Paul Stewart | dd60e45 | 2011-08-08 11:38:36 -0700 | [diff] [blame] | 332 | connection_unittest.o \ |
Chris Masone | d0ceb8c | 2011-06-02 10:05:39 -0700 | [diff] [blame] | 333 | dbus_adaptor_unittest.o \ |
Darin Petkov | 002c58e | 2012-06-19 02:56:05 +0200 | [diff] [blame] | 334 | dbus_manager_unittest.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 335 | dbus_properties_unittest.o \ |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 336 | default_profile_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 337 | device_info_unittest.o \ |
Darin Petkov | afa6fc4 | 2011-06-21 16:21:08 -0700 | [diff] [blame] | 338 | device_unittest.o \ |
Darin Petkov | e7cb7f8 | 2011-06-03 13:21:51 -0700 | [diff] [blame] | 339 | dhcp_config_unittest.o \ |
Darin Petkov | 98dd6a0 | 2011-06-10 15:12:57 -0700 | [diff] [blame] | 340 | dhcp_provider_unittest.o \ |
Darin Petkov | f0136cd | 2012-11-07 16:18:02 +0100 | [diff] [blame] | 341 | diagnostics_reporter_unittest.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 342 | dns_client_unittest.o \ |
Darin Petkov | e4c0ace | 2011-08-24 10:32:46 -0700 | [diff] [blame] | 343 | error_unittest.o \ |
Paul Stewart | cf199de | 2012-08-16 07:50:41 -0700 | [diff] [blame] | 344 | ethernet_service_unittest.o \ |
Gary Morain | f80ef06 | 2012-05-16 14:57:04 -0700 | [diff] [blame] | 345 | hook_table_unittest.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 346 | http_proxy_unittest.o \ |
Paul Stewart | 188a84a | 2012-01-20 16:28:15 -0800 | [diff] [blame] | 347 | http_request_unittest.o \ |
Paul Stewart | 9513356 | 2012-01-18 18:36:57 -0800 | [diff] [blame] | 348 | http_url_unittest.o \ |
Paul Stewart | 1d18e8c | 2011-07-15 11:00:31 -0700 | [diff] [blame] | 349 | ip_address_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 350 | ipconfig_unittest.o \ |
Darin Petkov | 083047b | 2011-06-23 20:42:48 -0700 | [diff] [blame] | 351 | key_file_store_unittest.o \ |
Darin Petkov | 7f06033 | 2012-03-14 11:46:47 +0100 | [diff] [blame] | 352 | key_value_store_unittest.o \ |
Darin Petkov | 7476a26 | 2012-04-12 16:30:46 +0200 | [diff] [blame] | 353 | l2tp_ipsec_driver_unittest.o \ |
Paul Stewart | 3f43f43 | 2012-07-16 12:12:45 -0700 | [diff] [blame] | 354 | link_monitor_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 355 | manager_unittest.o \ |
Christopher Wiley | 5781aa4 | 2012-07-30 14:42:23 -0700 | [diff] [blame] | 356 | memory_log_unittest.o \ |
Thieu Le | 48e6d6d | 2011-12-06 00:40:27 +0000 | [diff] [blame] | 357 | metrics_unittest.o \ |
Chris Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 358 | mock_adaptors.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 359 | mock_ares.o \ |
Paul Stewart | ac1328e | 2012-07-20 11:55:40 -0700 | [diff] [blame] | 360 | mock_arp_client.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 361 | mock_async_connection.o \ |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 362 | mock_cellular.o \ |
Ben Chan | 1578603 | 2012-11-04 21:28:02 -0800 | [diff] [blame] | 363 | mock_cellular_operator_info.o \ |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 364 | mock_cellular_service.o \ |
Paul Stewart | c1dec4d | 2011-12-08 15:25:28 -0800 | [diff] [blame] | 365 | mock_connection.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 366 | mock_control.o \ |
Darin Petkov | 2b8e44e | 2012-06-25 15:13:26 +0200 | [diff] [blame] | 367 | mock_dbus_manager.o \ |
David Rochberg | 7cb06f6 | 2012-03-05 11:23:44 -0500 | [diff] [blame] | 368 | mock_dbus_objectmanager_proxy.o \ |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 369 | mock_dbus_properties_proxy.o \ |
Darin Petkov | 18fb2f7 | 2012-06-14 09:09:34 +0200 | [diff] [blame] | 370 | mock_dbus_service_proxy.o \ |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 371 | mock_device.o \ |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 372 | mock_device_info.o \ |
| 373 | mock_dhcp_config.o \ |
| 374 | mock_dhcp_provider.o \ |
| 375 | mock_dhcp_proxy.o \ |
Darin Petkov | 385b9bc | 2012-12-03 15:25:05 +0100 | [diff] [blame] | 376 | mock_diagnostics_reporter.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 377 | mock_dns_client.o \ |
Paul Stewart | cf199de | 2012-08-16 07:50:41 -0700 | [diff] [blame] | 378 | mock_ethernet.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 379 | mock_event_dispatcher.o \ |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 380 | mock_glib.o \ |
Paul Stewart | e692740 | 2012-01-23 16:11:30 -0800 | [diff] [blame] | 381 | mock_http_request.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 382 | mock_ipconfig.o \ |
Paul Stewart | 6c72c97 | 2012-07-27 11:29:20 -0700 | [diff] [blame] | 383 | mock_link_monitor.o \ |
Gary Morain | 8a5726a | 2012-05-15 10:56:49 -0700 | [diff] [blame] | 384 | mock_log.o \ |
| 385 | mock_log_unittest.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 386 | mock_manager.o \ |
Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 387 | mock_metrics.o \ |
Jorge Lucangeli Obes | ad43cc6 | 2012-04-11 16:25:43 -0700 | [diff] [blame] | 388 | mock_minijail.o \ |
Arman Uguray | 6e5639f | 2012-11-15 20:30:19 -0800 | [diff] [blame] | 389 | mock_mm1_bearer_proxy.o \ |
Arman Uguray | 2c39fab | 2012-12-12 16:56:34 -0800 | [diff] [blame] | 390 | mock_mm1_modem_location_proxy.o \ |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 391 | mock_mm1_modem_modemcdma_proxy.o \ |
| 392 | mock_mm1_modem_modem3gpp_proxy.o \ |
| 393 | mock_mm1_modem_proxy.o \ |
| 394 | mock_mm1_modem_simple_proxy.o \ |
Arman Uguray | 618af2b | 2012-12-11 19:20:42 -0800 | [diff] [blame] | 395 | mock_mm1_modem_time_proxy.o \ |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 396 | mock_mm1_sim_proxy.o \ |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 397 | mock_modem.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 398 | mock_modem_cdma_proxy.o \ |
Darin Petkov | c37a9c4 | 2012-09-06 15:28:22 +0200 | [diff] [blame] | 399 | mock_modem_gobi_proxy.o \ |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 400 | mock_modem_gsm_card_proxy.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 401 | mock_modem_gsm_network_proxy.o \ |
Paul Stewart | 8c116a9 | 2012-05-02 18:30:03 -0700 | [diff] [blame] | 402 | mock_modem_info.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 403 | mock_modem_manager_proxy.o \ |
| 404 | mock_modem_proxy.o \ |
| 405 | mock_modem_simple_proxy.o \ |
Darin Petkov | 3c5e4dc | 2012-04-02 14:44:27 +0200 | [diff] [blame] | 406 | mock_nss.o \ |
Darin Petkov | 1c11520 | 2012-03-22 15:35:47 +0100 | [diff] [blame] | 407 | mock_openvpn_driver.o \ |
Darin Petkov | 4646302 | 2012-03-29 14:57:32 +0200 | [diff] [blame] | 408 | mock_openvpn_management_server.o \ |
Paul Stewart | c681fa0 | 2012-03-02 19:40:04 -0800 | [diff] [blame] | 409 | mock_portal_detector.o \ |
Gary Morain | ac1bdb4 | 2012-02-16 17:42:29 -0800 | [diff] [blame] | 410 | mock_power_manager.o \ |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 411 | mock_power_manager_proxy.o \ |
Darin Petkov | 5a85047 | 2012-06-06 15:44:24 +0200 | [diff] [blame] | 412 | mock_process_killer.o \ |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 413 | mock_profile.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 414 | mock_property_store.o \ |
Thieu Le | fb46caf | 2012-03-08 11:57:15 -0800 | [diff] [blame] | 415 | mock_proxy_factory.o \ |
Darin Petkov | eac68e6 | 2011-08-26 16:24:51 -0700 | [diff] [blame] | 416 | mock_resolver.o \ |
| 417 | mock_routing_table.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 418 | mock_rtnl_handler.o \ |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 419 | mock_service.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 420 | mock_sockets.o \ |
Darin Petkov | eac68e6 | 2011-08-26 16:24:51 -0700 | [diff] [blame] | 421 | mock_store.o \ |
mukesh agrawal | b20776f | 2012-02-10 16:00:36 -0800 | [diff] [blame] | 422 | mock_supplicant_bss_proxy.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 423 | mock_supplicant_interface_proxy.o \ |
Paul Stewart | 835934a | 2012-12-06 19:27:09 -0800 | [diff] [blame] | 424 | mock_supplicant_network_proxy.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 425 | mock_supplicant_process_proxy.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 426 | mock_time.o \ |
Darin Petkov | 36a3ace | 2012-03-06 17:22:14 +0100 | [diff] [blame] | 427 | mock_vpn.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 428 | mock_vpn_driver.o \ |
Paul Stewart | 8c116a9 | 2012-05-02 18:30:03 -0700 | [diff] [blame] | 429 | mock_vpn_provider.o \ |
Darin Petkov | 79d74c9 | 2012-03-07 17:20:32 +0100 | [diff] [blame] | 430 | mock_vpn_service.o \ |
mukesh agrawal | 7a4e400 | 2011-09-06 11:26:05 -0700 | [diff] [blame] | 431 | mock_wifi.o \ |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 432 | mock_wifi_service.o \ |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 433 | mock_wimax.o \ |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 434 | mock_wimax_device_proxy.o \ |
| 435 | mock_wimax_manager_proxy.o \ |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 436 | mock_wimax_network_proxy.o \ |
Darin Petkov | e4b2702 | 2012-05-16 13:28:50 +0200 | [diff] [blame] | 437 | mock_wimax_provider.o \ |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 438 | mock_wimax_service.o \ |
Jason Glasgow | 82f9ab3 | 2012-04-04 14:27:19 -0400 | [diff] [blame] | 439 | modem_1_unittest.o \ |
Darin Petkov | 887f298 | 2011-07-14 16:10:17 -0700 | [diff] [blame] | 440 | modem_info_unittest.o \ |
| 441 | modem_manager_unittest.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 442 | modem_unittest.o \ |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 443 | nice_mock_control.o \ |
Darin Petkov | 3c5e4dc | 2012-04-02 14:44:27 +0200 | [diff] [blame] | 444 | nss_unittest.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 445 | openvpn_driver_unittest.o \ |
Darin Petkov | 1c11520 | 2012-03-22 15:35:47 +0100 | [diff] [blame] | 446 | openvpn_management_server_unittest.o \ |
Paul Stewart | e692740 | 2012-01-23 16:11:30 -0800 | [diff] [blame] | 447 | portal_detector_unittest.o \ |
Gary Morain | 43bc627 | 2012-01-30 14:01:15 -0800 | [diff] [blame] | 448 | power_manager_unittest.o \ |
Darin Petkov | 5a85047 | 2012-06-06 15:44:24 +0200 | [diff] [blame] | 449 | process_killer_unittest.o \ |
Paul Stewart | 0756db9 | 2012-01-27 08:34:47 -0800 | [diff] [blame] | 450 | profile_dbus_property_exporter_unittest.o \ |
Darin Petkov | a476682 | 2011-07-07 10:42:22 -0700 | [diff] [blame] | 451 | profile_unittest.o \ |
Chris Masone | 27bf103 | 2011-06-28 17:02:01 -0700 | [diff] [blame] | 452 | property_accessor_unittest.o \ |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 453 | property_store_unittest.o \ |
Paul Stewart | b606394 | 2011-08-05 10:17:29 -0700 | [diff] [blame] | 454 | resolver_unittest.o \ |
Paul Stewart | 75e89d2 | 2011-08-01 10:00:02 -0700 | [diff] [blame] | 455 | routing_table_unittest.o \ |
Darin Petkov | a9b1fed | 2012-02-29 11:49:05 +0100 | [diff] [blame] | 456 | rpc_task_unittest.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 457 | rtnl_handler_unittest.o \ |
Darin Petkov | ca432fc | 2011-07-08 15:56:57 -0700 | [diff] [blame] | 458 | rtnl_listener_unittest.o \ |
Paul Stewart | dd7df79 | 2011-07-15 11:09:50 -0700 | [diff] [blame] | 459 | rtnl_message_unittest.o \ |
Ben Chan | bc49ac7 | 2012-04-10 19:59:45 -0700 | [diff] [blame] | 460 | scope_logger_unittest.o \ |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 461 | service_under_test.o \ |
Chris Masone | 3bd3c8c | 2011-06-13 08:20:26 -0700 | [diff] [blame] | 462 | service_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 463 | shill_unittest.o \ |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 464 | shims/certificates_unittest.o \ |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 465 | shims/environment_unittest.o \ |
Paul Stewart | 1062d9d | 2012-04-27 10:42:27 -0700 | [diff] [blame] | 466 | static_ip_parameters_unittest.o \ |
Ben Chan | c12cf66 | 2012-04-05 14:47:18 -0700 | [diff] [blame] | 467 | technology_unittest.o \ |
Chris Masone | 853b81b | 2011-06-24 14:11:41 -0700 | [diff] [blame] | 468 | testrunner.o \ |
Darin Petkov | b451d6e | 2012-04-23 11:56:41 +0200 | [diff] [blame] | 469 | vpn_driver_unittest.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 470 | vpn_provider_unittest.o \ |
| 471 | vpn_service_unittest.o \ |
Darin Petkov | f20994f | 2012-03-05 16:12:19 +0100 | [diff] [blame] | 472 | vpn_unittest.o \ |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 473 | wifi_endpoint_unittest.o \ |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 474 | wifi_service_unittest.o \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 475 | wifi_unittest.o \ |
Darin Petkov | b72b62e | 2012-05-15 16:55:36 +0200 | [diff] [blame] | 476 | wimax_provider_unittest.o \ |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 477 | wimax_service_unittest.o \ |
| 478 | wimax_unittest.o \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 479 | ) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 480 | |
Darin Petkov | bd0dcc8 | 2012-11-29 10:51:12 +0100 | [diff] [blame] | 481 | NET_DIAGS_UPLOAD_MAIN_OBJ = $(BUILD_SHIMS_DIR)/net_diags_upload.o |
| 482 | NET_DIAGS_UPLOAD_BIN = $(BUILD_SHIMS_DIR)/net-diags-upload |
| 483 | |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 484 | NSS_GET_CERT_OBJS = $(BUILD_SHIMS_DIR)/certificates.o |
| 485 | NSS_GET_CERT_MAIN_OBJ = $(BUILD_SHIMS_DIR)/nss_get_cert.o |
| 486 | NSS_GET_CERT_BIN = $(BUILD_SHIMS_DIR)/nss-get-cert |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 487 | |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 488 | OPENVPN_SCRIPT_OBJS = $(addprefix $(BUILD_SHIMS_DIR)/, \ |
| 489 | environment.o \ |
| 490 | task_proxy.o \ |
| 491 | ) |
| 492 | OPENVPN_SCRIPT_MAIN_OBJ = $(BUILD_SHIMS_DIR)/openvpn_script.o |
| 493 | OPENVPN_SCRIPT_BIN = $(BUILD_SHIMS_DIR)/openvpn-script |
| 494 | |
Darin Petkov | 16f6349 | 2012-10-23 11:12:58 +0200 | [diff] [blame] | 495 | PPPD_PLUGIN_OBJS = $(addprefix $(BUILD_SHIMS_DIR)/, \ |
Darin Petkov | 374b5ee | 2012-11-06 11:20:04 +0100 | [diff] [blame] | 496 | c_ppp.pic.o \ |
| 497 | environment.pic.o \ |
| 498 | ppp.pic.o \ |
| 499 | pppd_plugin.pic.o \ |
| 500 | task_proxy.pic.o \ |
Darin Petkov | 16f6349 | 2012-10-23 11:12:58 +0200 | [diff] [blame] | 501 | ) |
| 502 | PPPD_PLUGIN_SO = $(BUILD_SHIMS_DIR)/shill-pppd-plugin.so |
| 503 | |
| 504 | SET_APN_HELPER_MAIN_OBJ = $(BUILD_SHIMS_DIR)/set_apn_helper.o |
| 505 | SET_APN_HELPER_BIN = $(BUILD_SHIMS_DIR)/set-apn-helper |
| 506 | |
Darin Petkov | 4c2aa33 | 2012-10-17 10:33:52 +0200 | [diff] [blame] | 507 | WPA_SUPPLICANT_CONF = $(BUILD_SHIMS_DIR)/wpa_supplicant.conf |
| 508 | |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 509 | OBJS = \ |
Darin Petkov | bd0dcc8 | 2012-11-29 10:51:12 +0100 | [diff] [blame] | 510 | $(NET_DIAGS_UPLOAD_MAIN_OBJ) \ |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 511 | $(NSS_GET_CERT_MAIN_OBJ) \ |
| 512 | $(NSS_GET_CERT_OBJS) \ |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 513 | $(OPENVPN_SCRIPT_MAIN_OBJ) \ |
| 514 | $(OPENVPN_SCRIPT_OBJS) \ |
Darin Petkov | e6ca320 | 2012-10-19 14:49:56 +0200 | [diff] [blame] | 515 | $(PPPD_PLUGIN_OBJS) \ |
Darin Petkov | 16f6349 | 2012-10-23 11:12:58 +0200 | [diff] [blame] | 516 | $(SET_APN_HELPER_MAIN_OBJ) \ |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 517 | $(SHILL_MAIN_OBJ) \ |
| 518 | $(SHILL_OBJS) \ |
| 519 | $(TEST_OBJS) |
| 520 | |
| 521 | .PHONY: all clean shims |
| 522 | |
| 523 | all: $(SHILL_BIN) $(TEST_BIN) shims |
| 524 | |
Darin Petkov | e6ca320 | 2012-10-19 14:49:56 +0200 | [diff] [blame] | 525 | shims: \ |
Darin Petkov | bd0dcc8 | 2012-11-29 10:51:12 +0100 | [diff] [blame] | 526 | $(NET_DIAGS_UPLOAD_BIN) \ |
Darin Petkov | e6ca320 | 2012-10-19 14:49:56 +0200 | [diff] [blame] | 527 | $(NSS_GET_CERT_BIN) \ |
| 528 | $(OPENVPN_SCRIPT_BIN) \ |
| 529 | $(PPPD_PLUGIN_SO) \ |
Darin Petkov | 16f6349 | 2012-10-23 11:12:58 +0200 | [diff] [blame] | 530 | $(SET_APN_HELPER_BIN) \ |
Darin Petkov | e6ca320 | 2012-10-19 14:49:56 +0200 | [diff] [blame] | 531 | $(WPA_SUPPLICANT_CONF) |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 532 | |
| 533 | $(BUILD_DBUS_BINDINGS_SHIMS_DIR)/flimflam-task.xml: \ |
| 534 | $(BUILD_DBUS_BINDINGS_DIR)/flimflam-task.xml |
| 535 | cp $< $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 536 | |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 537 | $(BUILD_DBUS_BINDINGS_DIR)/%.xml: $(DBUS_BINDINGS_DIR)/%.xml |
| 538 | cp $< $@ |
| 539 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 540 | $(DBUS_PROXY_BINDINGS): %.h: %.xml |
Darin Petkov | 005aa38 | 2011-11-17 14:26:21 +0100 | [diff] [blame] | 541 | $(DBUSXX_XML2CPP) $< --proxy=$@ --sync --async |
Chris Masone | 413a319 | 2011-05-09 17:10:05 -0700 | [diff] [blame] | 542 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 543 | $(DBUS_ADAPTOR_BINDINGS): %.h: %.xml |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 544 | $(DBUSXX_XML2CPP) $< --adaptor=$@ |
| 545 | |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 546 | $(PROTO_BINDINGS_H): %.h: %.cc ; |
| 547 | |
| 548 | $(PROTO_BINDINGS_CC): \ |
| 549 | $(BUILD_PROTO_BINDINGS_DIR)/%.pb.cc: $(SYSTEM_API_PROTO_PATH)/%.proto |
| 550 | $(PROTOC) --proto_path=$(SYSTEM_API_PROTO_PATH) \ |
| 551 | --cpp_out=$(BUILD_PROTO_BINDINGS_DIR) $< |
| 552 | |
Darin Petkov | e6ca320 | 2012-10-19 14:49:56 +0200 | [diff] [blame] | 553 | $(BUILDDIR)/%.o: %.c |
| 554 | $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDE_DIRS) -MMD -c $< -o $@ |
| 555 | |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 556 | $(PROTO_BINDINGS_OBJS): INCLUDE_DIRS += -iquote $(BUILD_PROTO_BINDINGS_DIR) |
| 557 | |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 558 | $(BUILDDIR)/%.o: %.cc |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 559 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE_DIRS) -MMD -c $< -o $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 560 | |
Darin Petkov | 374b5ee | 2012-11-06 11:20:04 +0100 | [diff] [blame] | 561 | $(BUILDDIR)/%.pic.o: %.c |
| 562 | $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC $(INCLUDE_DIRS) -MMD -c $< -o $@ |
| 563 | |
| 564 | $(BUILDDIR)/%.pic.o: %.cc |
| 565 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) -fPIC $(INCLUDE_DIRS) -MMD -c $< -o $@ |
| 566 | |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 567 | $(SHILL_OBJS): \ |
| 568 | $(DBUS_ADAPTOR_BINDINGS) \ |
| 569 | $(DBUS_PROXY_BINDINGS) \ |
| 570 | $(PROTO_BINDINGS_H) |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 571 | |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 572 | $(SHILL_LIB): $(SHILL_OBJS) |
| 573 | $(AR) rcs $@ $^ |
| 574 | |
| 575 | $(SHILL_BIN): $(SHILL_MAIN_OBJ) $(SHILL_LIB) |
| 576 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ $(SHILL_LIBS) -o $@ |
| 577 | |
Darin Petkov | bd0dcc8 | 2012-11-29 10:51:12 +0100 | [diff] [blame] | 578 | $(NET_DIAGS_UPLOAD_BIN): $(NET_DIAGS_UPLOAD_MAIN_OBJ) |
Darin Petkov | fac01f0 | 2012-12-06 12:44:07 +0100 | [diff] [blame] | 579 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ $(NET_DIAGS_UPLOAD_LIBS) -o $@ |
Darin Petkov | bd0dcc8 | 2012-11-29 10:51:12 +0100 | [diff] [blame] | 580 | |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 581 | $(NSS_GET_CERT_BIN): $(NSS_GET_CERT_MAIN_OBJ) $(NSS_GET_CERT_OBJS) $(SHILL_LIB) |
| 582 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ $(NSS_GET_CERT_LIBS) -o $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 583 | |
Elly Fong-Jones | 419a665 | 2012-10-16 12:53:51 -0400 | [diff] [blame] | 584 | $(OPENVPN_SCRIPT_OBJS): $(DBUS_PROXY_BINDINGS) |
| 585 | $(OPENVPN_SCRIPT_MAIN_OBJ): $(DBUS_PROXY_BINDINGS) |
| 586 | |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 587 | $(OPENVPN_SCRIPT_BIN): $(OPENVPN_SCRIPT_MAIN_OBJ) $(OPENVPN_SCRIPT_OBJS) |
| 588 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ $(OPENVPN_SCRIPT_LIBS) -o $@ |
| 589 | |
Darin Petkov | 16f6349 | 2012-10-23 11:12:58 +0200 | [diff] [blame] | 590 | $(PPPD_PLUGIN_OBJS): $(DBUS_PROXY_BINDINGS) |
| 591 | |
| 592 | $(PPPD_PLUGIN_SO): $(PPPD_PLUGIN_OBJS) |
| 593 | $(CXX) $(LDFLAGS) -shared $^ $(PPPD_PLUGIN_LIBS) -o $@ |
| 594 | |
| 595 | $(SET_APN_HELPER_BIN): $(SET_APN_HELPER_MAIN_OBJ) |
| 596 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ $(SET_APN_HELPER_LIBS) -o $@ |
| 597 | |
Darin Petkov | 4c2aa33 | 2012-10-17 10:33:52 +0200 | [diff] [blame] | 598 | $(WPA_SUPPLICANT_CONF): shims/wpa_supplicant.conf.in |
| 599 | sed s,@libdir@,$(LIBDIR), $^ > $@ |
| 600 | |
Paul Stewart | 291a473 | 2012-03-14 19:19:02 -0700 | [diff] [blame] | 601 | $(TEST_BIN): CPPFLAGS += -DUNIT_TEST -DSYSROOT=\"$(SYSROOT)\" |
Darin Petkov | 804e8d0 | 2012-10-10 16:44:36 +0200 | [diff] [blame] | 602 | $(TEST_BIN): \ |
| 603 | $(TEST_OBJS) \ |
| 604 | $(NSS_GET_CERT_OBJS) \ |
| 605 | $(OPENVPN_SCRIPT_OBJS) \ |
| 606 | $(SHILL_LIB) |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 607 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ $(TEST_LIBS) -o $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 608 | |
| 609 | clean: |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 610 | rm -rf \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 611 | $(BUILDDIR) \ |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 612 | $(SHILL_BIN) \ |
| 613 | $(TEST_BIN) |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 614 | |
Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 615 | -include $(OBJS:.o=.d) |