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 | |
| 5 | CXX ?= g++ |
mukesh agrawal | f60e406 | 2011-05-27 13:13:41 -0700 | [diff] [blame] | 6 | CXXFLAGS ?= -fno-strict-aliasing |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 7 | CXXFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-unused-result \ |
Ben Chan | bbdef5f | 2012-04-23 13:58:15 -0700 | [diff] [blame] | 8 | -Wno-missing-field-initializers \ |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 9 | -Werror -Wuninitialized -Woverloaded-virtual |
Darin Petkov | 04d46b4 | 2011-08-31 14:17:34 -0700 | [diff] [blame] | 10 | CXXFLAGS += $(EXTRA_CXXFLAGS) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 11 | CPPFLAGS ?= -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 12 | PKG_CONFIG ?= pkg-config |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 13 | DBUSXX_XML2CPP = dbusxx-xml2cpp |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 14 | |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 15 | BUILDDIR = build |
| 16 | |
Paul Stewart | 291a473 | 2012-03-14 19:19:02 -0700 | [diff] [blame] | 17 | LIBDIR = /usr/lib |
| 18 | SCRIPTDIR = $(LIBDIR)/flimflam/scripts |
| 19 | CPPFLAGS += -DSCRIPTDIR=\"$(SCRIPTDIR)\" |
Jorge Lucangeli Obes | ad43cc6 | 2012-04-11 16:25:43 -0700 | [diff] [blame] | 20 | BASE_LIBS = -lcares -lmobile-provider -lmetrics -lminijail |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 21 | BASE_INCLUDE_DIRS = -iquote.. -iquote $(BUILDDIR) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 22 | BASE_LIB_DIRS = |
| 23 | |
| 24 | LIBS = $(BASE_LIBS) |
Eric Shienbrood | 3e20a23 | 2012-02-16 11:35:56 -0500 | [diff] [blame] | 25 | BASE_VER = 125070 |
Mike Frysinger | adb2514 | 2012-02-16 14:19:04 -0500 | [diff] [blame] | 26 | PC_DEPS = dbus-c++-1 glib-2.0 gio-2.0 libchrome-$(BASE_VER) \ |
| 27 | libchromeos-$(BASE_VER) |
Eric Shienbrood | c74cf9c | 2012-03-02 15:00:35 -0500 | [diff] [blame] | 28 | INCLUDE_DIRS := $(BASE_INCLUDE_DIRS) $(shell $(PKG_CONFIG) --cflags $(PC_DEPS)) |
| 29 | LIB_DIRS := $(BASE_LIB_DIRS) $(shell $(PKG_CONFIG) --libs $(PC_DEPS)) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 30 | |
| 31 | TEST_LIBS = $(BASE_LIBS) -lgmock -lgtest |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 32 | TEST_LIB_DIRS = $(LIB_DIRS) |
| 33 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 34 | DBUS_BINDINGS_DIR = dbus_bindings |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 35 | BUILD_DBUS_BINDINGS_DIR = $(BUILDDIR)/shill/$(DBUS_BINDINGS_DIR) |
| 36 | |
| 37 | # Creating $(BUILD_DBUS_BINDINGS_DIR) will also create $(BUILDDIR). |
| 38 | _CREATE_BUILDDIR := $(shell mkdir -p $(BUILD_DBUS_BINDINGS_DIR)) |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 39 | |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 40 | DBUS_ADAPTOR_HEADERS := |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 41 | |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 42 | DBUS_PROXY_HEADERS = \ |
Darin Petkov | 3117bab | 2011-08-02 16:10:21 -0700 | [diff] [blame] | 43 | dbus-properties.h \ |
David Rochberg | bdd0c8b | 2012-02-27 15:45:48 -0500 | [diff] [blame] | 44 | dbus-objectmanager.h \ |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 45 | dhcpcd.h \ |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 46 | power_manager.h \ |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 47 | supplicant-bss.h \ |
| 48 | supplicant-interface.h \ |
| 49 | supplicant-network.h \ |
mukesh agrawal | ab87ea4 | 2011-05-18 11:44:49 -0700 | [diff] [blame] | 50 | supplicant-process.h |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 51 | |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 52 | # Generates rules for copying SYSROOT XMLs locally and updates the proxy header |
| 53 | # dependencies. |
| 54 | DBUS_BINDINGS_XML_SYSROOT = \ |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 55 | org.chromium.WiMaxManager>wimax_manager \ |
| 56 | org.chromium.WiMaxManager.Device>wimax_manager-device \ |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 57 | org.chromium.WiMaxManager.Network>wimax_manager-network \ |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 58 | org.freedesktop.ModemManager>modem_manager \ |
Darin Petkov | 1ec741c | 2011-08-02 10:45:27 -0700 | [diff] [blame] | 59 | org.freedesktop.ModemManager.Modem>modem \ |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 60 | org.freedesktop.ModemManager.Modem.Cdma>modem-cdma \ |
| 61 | org.freedesktop.ModemManager.Modem.Gsm.Card>modem-gsm-card \ |
| 62 | org.freedesktop.ModemManager.Modem.Gsm.Network>modem-gsm-network \ |
Jason Glasgow | ee1081c | 2012-03-06 15:14:53 -0500 | [diff] [blame] | 63 | org.freedesktop.ModemManager.Modem.Simple>modem-simple \ |
| 64 | org.freedesktop.ModemManager1.Modem>mm1-modem \ |
| 65 | org.freedesktop.ModemManager1.Modem.Modem3gpp>mm1-modem-modem3gpp \ |
| 66 | org.freedesktop.ModemManager1.Modem.ModemCdma>mm1-modem-modemcdma \ |
Jason Glasgow | 74f5ef2 | 2012-03-29 16:15:04 -0400 | [diff] [blame] | 67 | org.freedesktop.ModemManager1.Modem.Simple>mm1-modem-simple \ |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 68 | org.freedesktop.ModemManager1.Sim>mm1-sim |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 69 | |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 70 | # Rename local XML files with the names required by DBus to XML files with the |
| 71 | # names required by the style guide, which will then be turned into generated |
| 72 | # headers later. |
| 73 | DBUS_BINDINGS_XML_LOCAL = \ |
| 74 | org.chromium.flimflam.Device>flimflam-device \ |
| 75 | org.chromium.flimflam.IPConfig>flimflam-ipconfig \ |
| 76 | org.chromium.flimflam.Manager>flimflam-manager \ |
| 77 | org.chromium.flimflam.Profile>flimflam-profile \ |
Darin Petkov | a9b1fed | 2012-02-29 11:49:05 +0100 | [diff] [blame] | 78 | org.chromium.flimflam.Service>flimflam-service \ |
| 79 | org.chromium.flimflam.Task>flimflam-task |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 80 | |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 81 | define ADD_BINDING |
| 82 | $(eval _SOURCE = $(word 1,$(subst >, ,$(1)))) |
| 83 | $(eval _TARGET = $(word 2,$(subst >, ,$(1)))) |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 84 | DBUS_PROXY_HEADERS += $(_TARGET).h |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 85 | $(BUILD_DBUS_BINDINGS_DIR)/$(_TARGET).xml: \ |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 86 | $(SYSROOT)/usr/share/dbus-1/interfaces/$(_SOURCE).xml |
| 87 | cat $$< > $$@ |
| 88 | endef |
| 89 | |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 90 | define ADD_LOCAL_BINDING |
| 91 | $(eval _SOURCE = $(word 1,$(subst >, ,$(1)))) |
| 92 | $(eval _TARGET = $(word 2,$(subst >, ,$(1)))) |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 93 | DBUS_ADAPTOR_HEADERS += $(_TARGET).h |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 94 | $(BUILD_DBUS_BINDINGS_DIR)/$(_TARGET).xml: $(DBUS_BINDINGS_DIR)/$(_SOURCE).xml |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 95 | cp $$< $$@ |
| 96 | endef |
| 97 | |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 98 | $(foreach b,$(DBUS_BINDINGS_XML_SYSROOT),$(eval $(call ADD_BINDING,$(b)))) |
Elly Jones | 5211a4c | 2012-01-26 19:25:20 -0500 | [diff] [blame] | 99 | $(foreach b,$(DBUS_BINDINGS_XML_LOCAL),$(eval $(call ADD_LOCAL_BINDING,$(b)))) |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 100 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 101 | DBUS_ADAPTOR_BINDINGS = \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 102 | $(addprefix $(BUILD_DBUS_BINDINGS_DIR)/, $(DBUS_ADAPTOR_HEADERS)) |
| 103 | DBUS_PROXY_BINDINGS = \ |
| 104 | $(addprefix $(BUILD_DBUS_BINDINGS_DIR)/, $(DBUS_PROXY_HEADERS)) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 105 | |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 106 | SHILL_OBJS = $(addprefix $(BUILDDIR)/, \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 107 | async_connection.o \ |
Paul Stewart | 3ecfa2b | 2011-07-15 10:47:42 -0700 | [diff] [blame] | 108 | byte_string.o \ |
Chris Masone | 3bd3c8c | 2011-06-13 08:20:26 -0700 | [diff] [blame] | 109 | cellular.o \ |
Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 110 | cellular_capability.o \ |
| 111 | cellular_capability_cdma.o \ |
Jason Glasgow | 82f9ab3 | 2012-04-04 14:27:19 -0400 | [diff] [blame] | 112 | cellular_capability_classic.o \ |
Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 113 | cellular_capability_gsm.o \ |
Jason Glasgow | 82f9ab3 | 2012-04-04 14:27:19 -0400 | [diff] [blame] | 114 | cellular_capability_universal.o \ |
Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 115 | cellular_error.o \ |
Chris Masone | 3bd3c8c | 2011-06-13 08:20:26 -0700 | [diff] [blame] | 116 | cellular_service.o \ |
Paul Stewart | dd60e45 | 2011-08-08 11:38:36 -0700 | [diff] [blame] | 117 | connection.o \ |
Darin Petkov | 823c47e | 2011-06-27 16:15:35 -0700 | [diff] [blame] | 118 | crypto_des_cbc.o \ |
Darin Petkov | 86964e0 | 2011-06-29 13:49:28 -0700 | [diff] [blame] | 119 | crypto_provider.o \ |
Darin Petkov | 877642b | 2011-06-27 13:37:22 -0700 | [diff] [blame] | 120 | crypto_rot47.o \ |
Chris Masone | d0ceb8c | 2011-06-02 10:05:39 -0700 | [diff] [blame] | 121 | dbus_adaptor.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 122 | dbus_control.o \ |
David Rochberg | b8b89b1 | 2012-02-28 16:11:33 -0500 | [diff] [blame] | 123 | dbus_objectmanager_proxy.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 124 | dbus_properties.o \ |
Darin Petkov | 5c97ac5 | 2011-07-19 16:30:49 -0700 | [diff] [blame] | 125 | dbus_properties_proxy.o \ |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 126 | default_profile.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 127 | device.o \ |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 128 | device_dbus_adaptor.o \ |
Paul Stewart | 0af98bf | 2011-05-10 17:38:08 -0700 | [diff] [blame] | 129 | device_info.o \ |
Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 130 | dhcp_config.o \ |
| 131 | dhcp_provider.o \ |
| 132 | dhcpcd_proxy.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 133 | dns_client.o \ |
mukesh agrawal | b54601c | 2011-06-07 17:39:22 -0700 | [diff] [blame] | 134 | endpoint.o \ |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 135 | ephemeral_profile.o \ |
Chris Masone | 8fe2c7e | 2011-06-09 15:51:19 -0700 | [diff] [blame] | 136 | error.o \ |
Paul Stewart | b50f0b9 | 2011-05-16 16:31:42 -0700 | [diff] [blame] | 137 | ethernet.o \ |
Paul Stewart | f1ce5d2 | 2011-05-19 13:10:20 -0700 | [diff] [blame] | 138 | ethernet_service.o \ |
Paul Stewart | 26b327e | 2011-10-19 11:38:09 -0700 | [diff] [blame] | 139 | event_dispatcher.o \ |
Darin Petkov | f7897bc | 2011-06-08 17:13:36 -0700 | [diff] [blame] | 140 | glib.o \ |
Paul Stewart | f0aae10 | 2011-10-19 12:11:44 -0700 | [diff] [blame] | 141 | glib_io_ready_handler.o \ |
| 142 | glib_io_input_handler.o \ |
Gary Morain | f80ef06 | 2012-05-16 14:57:04 -0700 | [diff] [blame] | 143 | hook_table.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 144 | http_proxy.o \ |
Paul Stewart | 188a84a | 2012-01-20 16:28:15 -0800 | [diff] [blame] | 145 | http_request.o \ |
Paul Stewart | 9513356 | 2012-01-18 18:36:57 -0800 | [diff] [blame] | 146 | http_url.o \ |
Paul Stewart | 1d18e8c | 2011-07-15 11:00:31 -0700 | [diff] [blame] | 147 | ip_address.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 148 | ipconfig.o \ |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 149 | ipconfig_dbus_adaptor.o \ |
Darin Petkov | 083047b | 2011-06-23 20:42:48 -0700 | [diff] [blame] | 150 | key_file_store.o \ |
mukesh agrawal | 7a4e400 | 2011-09-06 11:26:05 -0700 | [diff] [blame] | 151 | key_value_store.o \ |
Darin Petkov | 7476a26 | 2012-04-12 16:30:46 +0200 | [diff] [blame] | 152 | l2tp_ipsec_driver.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 153 | manager.o \ |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 154 | manager_dbus_adaptor.o \ |
Thieu Le | 48e6d6d | 2011-12-06 00:40:27 +0000 | [diff] [blame] | 155 | metrics.o \ |
Jorge Lucangeli Obes | ad43cc6 | 2012-04-11 16:25:43 -0700 | [diff] [blame] | 156 | minijail.o \ |
Jason Glasgow | ee1081c | 2012-03-06 15:14:53 -0500 | [diff] [blame] | 157 | mm1_modem_modem3gpp_proxy.o \ |
| 158 | mm1_modem_modemcdma_proxy.o \ |
| 159 | mm1_modem_proxy.o \ |
| 160 | mm1_modem_simple_proxy.o \ |
Jason Glasgow | 74f5ef2 | 2012-03-29 16:15:04 -0400 | [diff] [blame] | 161 | mm1_sim_proxy.o \ |
Darin Petkov | 5c97ac5 | 2011-07-19 16:30:49 -0700 | [diff] [blame] | 162 | modem.o \ |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 163 | modem_1.o \ |
Darin Petkov | bec79a2 | 2011-08-01 14:47:17 -0700 | [diff] [blame] | 164 | modem_cdma_proxy.o \ |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 165 | modem_classic.o \ |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 166 | modem_gsm_card_proxy.o \ |
Darin Petkov | a1e0a1c | 2011-08-25 15:08:33 -0700 | [diff] [blame] | 167 | modem_gsm_network_proxy.o \ |
Darin Petkov | 887f298 | 2011-07-14 16:10:17 -0700 | [diff] [blame] | 168 | modem_info.o \ |
| 169 | modem_manager.o \ |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 170 | modem_manager_proxy.o \ |
Darin Petkov | e9d12e0 | 2011-07-27 15:09:37 -0700 | [diff] [blame] | 171 | modem_proxy.o \ |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 172 | modem_simple_proxy.o \ |
Darin Petkov | 3c5e4dc | 2012-04-02 14:44:27 +0200 | [diff] [blame] | 173 | nss.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 174 | openvpn_driver.o \ |
Darin Petkov | 1c11520 | 2012-03-22 15:35:47 +0100 | [diff] [blame] | 175 | openvpn_management_server.o \ |
Paul Stewart | e692740 | 2012-01-23 16:11:30 -0800 | [diff] [blame] | 176 | portal_detector.o \ |
Gary Morain | 43bc627 | 2012-01-30 14:01:15 -0800 | [diff] [blame] | 177 | power_manager.o \ |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 178 | power_manager_proxy.o \ |
Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame] | 179 | profile.o \ |
| 180 | profile_dbus_adaptor.o \ |
Paul Stewart | 0756db9 | 2012-01-27 08:34:47 -0800 | [diff] [blame] | 181 | profile_dbus_property_exporter.o \ |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 182 | property_store.o \ |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 183 | proxy_factory.o \ |
Paul Stewart | 75e89d2 | 2011-08-01 10:00:02 -0700 | [diff] [blame] | 184 | routing_table.o \ |
Paul Stewart | b606394 | 2011-08-05 10:17:29 -0700 | [diff] [blame] | 185 | resolver.o \ |
Eric Shienbrood | 3e20a23 | 2012-02-16 11:35:56 -0500 | [diff] [blame] | 186 | rpc_task.o \ |
| 187 | rpc_task_dbus_adaptor.o \ |
Paul Stewart | f1ce5d2 | 2011-05-19 13:10:20 -0700 | [diff] [blame] | 188 | rtnl_handler.o \ |
| 189 | rtnl_listener.o \ |
Paul Stewart | dd7df79 | 2011-07-15 11:09:50 -0700 | [diff] [blame] | 190 | rtnl_message.o \ |
Ben Chan | bc49ac7 | 2012-04-10 19:59:45 -0700 | [diff] [blame] | 191 | scope_logger.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 192 | service.o \ |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 193 | service_dbus_adaptor.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 194 | shill_ares.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 195 | shill_config.o \ |
| 196 | shill_daemon.o \ |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 197 | shill_test_config.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 198 | shill_time.o \ |
Darin Petkov | 633ac6f | 2011-07-08 13:56:13 -0700 | [diff] [blame] | 199 | sockets.o \ |
Paul Stewart | 1062d9d | 2012-04-27 10:42:27 -0700 | [diff] [blame] | 200 | static_ip_parameters.o \ |
mukesh agrawal | b20776f | 2012-02-10 16:00:36 -0800 | [diff] [blame] | 201 | supplicant_bss_proxy.o \ |
mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 202 | supplicant_interface_proxy.o \ |
| 203 | supplicant_process_proxy.o \ |
Paul Stewart | fdd1607 | 2011-09-16 12:41:35 -0700 | [diff] [blame] | 204 | technology.o \ |
mukesh agrawal | 93a29ed | 2012-04-17 16:13:01 -0700 | [diff] [blame] | 205 | virtio_ethernet.o \ |
Darin Petkov | f20994f | 2012-03-05 16:12:19 +0100 | [diff] [blame] | 206 | vpn.o \ |
Darin Petkov | b451d6e | 2012-04-23 11:56:41 +0200 | [diff] [blame] | 207 | vpn_driver.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 208 | vpn_provider.o \ |
| 209 | vpn_service.o \ |
mukesh agrawal | b54601c | 2011-06-07 17:39:22 -0700 | [diff] [blame] | 210 | wifi.o \ |
| 211 | wifi_endpoint.o \ |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 212 | wifi_service.o \ |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 213 | wimax.o \ |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 214 | wimax_device_proxy.o \ |
| 215 | wimax_manager_proxy.o \ |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 216 | wimax_network_proxy.o \ |
Darin Petkov | b72b62e | 2012-05-15 16:55:36 +0200 | [diff] [blame] | 217 | wimax_provider.o \ |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 218 | wimax_service.o \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 219 | wpa_supplicant.o \ |
| 220 | ) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 221 | |
| 222 | SHILL_BIN = shill |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 223 | # Broken out separately, because (unlike other SHILL_OBJS), it |
| 224 | # shouldn't be linked into TEST_BIN. |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 225 | SHILL_MAIN_OBJ = $(BUILDDIR)/shill_main.o |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 226 | |
| 227 | TEST_BIN = shill_unittest |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 228 | TEST_OBJS = $(addprefix $(BUILDDIR)/, \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 229 | async_connection_unittest.o \ |
Paul Stewart | 3ecfa2b | 2011-07-15 10:47:42 -0700 | [diff] [blame] | 230 | byte_string_unittest.o \ |
Darin Petkov | cb54773 | 2011-11-09 13:55:26 +0100 | [diff] [blame] | 231 | cellular_capability_cdma_unittest.o \ |
Jason Glasgow | 82f9ab3 | 2012-04-04 14:27:19 -0400 | [diff] [blame] | 232 | cellular_capability_classic_unittest.o \ |
Darin Petkov | b05315f | 2011-11-07 10:14:25 +0100 | [diff] [blame] | 233 | cellular_capability_gsm_unittest.o \ |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 234 | cellular_capability_universal_unittest.o \ |
Darin Petkov | b72cf40 | 2011-11-22 14:51:39 +0100 | [diff] [blame] | 235 | cellular_service_unittest.o \ |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 236 | cellular_unittest.o \ |
Darin Petkov | 823c47e | 2011-06-27 16:15:35 -0700 | [diff] [blame] | 237 | crypto_des_cbc_unittest.o \ |
Darin Petkov | 86964e0 | 2011-06-29 13:49:28 -0700 | [diff] [blame] | 238 | crypto_provider_unittest.o \ |
Darin Petkov | 877642b | 2011-06-27 13:37:22 -0700 | [diff] [blame] | 239 | crypto_rot47_unittest.o \ |
Paul Stewart | dd60e45 | 2011-08-08 11:38:36 -0700 | [diff] [blame] | 240 | connection_unittest.o \ |
Chris Masone | d0ceb8c | 2011-06-02 10:05:39 -0700 | [diff] [blame] | 241 | dbus_adaptor_unittest.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 242 | dbus_properties_unittest.o \ |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 243 | default_profile_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 244 | device_info_unittest.o \ |
Darin Petkov | afa6fc4 | 2011-06-21 16:21:08 -0700 | [diff] [blame] | 245 | device_unittest.o \ |
Darin Petkov | e7cb7f8 | 2011-06-03 13:21:51 -0700 | [diff] [blame] | 246 | dhcp_config_unittest.o \ |
Darin Petkov | 98dd6a0 | 2011-06-10 15:12:57 -0700 | [diff] [blame] | 247 | dhcp_provider_unittest.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 248 | dns_client_unittest.o \ |
Darin Petkov | e4c0ace | 2011-08-24 10:32:46 -0700 | [diff] [blame] | 249 | error_unittest.o \ |
Gary Morain | f80ef06 | 2012-05-16 14:57:04 -0700 | [diff] [blame] | 250 | hook_table_unittest.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 251 | http_proxy_unittest.o \ |
Paul Stewart | 188a84a | 2012-01-20 16:28:15 -0800 | [diff] [blame] | 252 | http_request_unittest.o \ |
Paul Stewart | 9513356 | 2012-01-18 18:36:57 -0800 | [diff] [blame] | 253 | http_url_unittest.o \ |
Paul Stewart | 1d18e8c | 2011-07-15 11:00:31 -0700 | [diff] [blame] | 254 | ip_address_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 255 | ipconfig_unittest.o \ |
Darin Petkov | 083047b | 2011-06-23 20:42:48 -0700 | [diff] [blame] | 256 | key_file_store_unittest.o \ |
Darin Petkov | 7f06033 | 2012-03-14 11:46:47 +0100 | [diff] [blame] | 257 | key_value_store_unittest.o \ |
Darin Petkov | 7476a26 | 2012-04-12 16:30:46 +0200 | [diff] [blame] | 258 | l2tp_ipsec_driver_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 259 | manager_unittest.o \ |
Thieu Le | 48e6d6d | 2011-12-06 00:40:27 +0000 | [diff] [blame] | 260 | metrics_unittest.o \ |
Chris Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 261 | mock_adaptors.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 262 | mock_ares.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 263 | mock_async_connection.o \ |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 264 | mock_cellular.o \ |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 265 | mock_cellular_service.o \ |
Paul Stewart | c1dec4d | 2011-12-08 15:25:28 -0800 | [diff] [blame] | 266 | mock_connection.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 267 | mock_control.o \ |
David Rochberg | 7cb06f6 | 2012-03-05 11:23:44 -0500 | [diff] [blame] | 268 | mock_dbus_objectmanager_proxy.o \ |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 269 | mock_dbus_properties_proxy.o \ |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 270 | mock_device.o \ |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 271 | mock_device_info.o \ |
| 272 | mock_dhcp_config.o \ |
| 273 | mock_dhcp_provider.o \ |
| 274 | mock_dhcp_proxy.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 275 | mock_dns_client.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 276 | mock_event_dispatcher.o \ |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 277 | mock_glib.o \ |
Paul Stewart | e692740 | 2012-01-23 16:11:30 -0800 | [diff] [blame] | 278 | mock_http_request.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 279 | mock_ipconfig.o \ |
Gary Morain | 8a5726a | 2012-05-15 10:56:49 -0700 | [diff] [blame] | 280 | mock_log.o \ |
| 281 | mock_log_unittest.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 282 | mock_manager.o \ |
Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 283 | mock_metrics.o \ |
Jorge Lucangeli Obes | ad43cc6 | 2012-04-11 16:25:43 -0700 | [diff] [blame] | 284 | mock_minijail.o \ |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 285 | mock_mm1_modem_modemcdma_proxy.o \ |
| 286 | mock_mm1_modem_modem3gpp_proxy.o \ |
| 287 | mock_mm1_modem_proxy.o \ |
| 288 | mock_mm1_modem_simple_proxy.o \ |
| 289 | mock_mm1_sim_proxy.o \ |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 290 | mock_modem.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 291 | mock_modem_cdma_proxy.o \ |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 292 | mock_modem_gsm_card_proxy.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 293 | mock_modem_gsm_network_proxy.o \ |
Paul Stewart | 8c116a9 | 2012-05-02 18:30:03 -0700 | [diff] [blame] | 294 | mock_modem_info.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 295 | mock_modem_manager_proxy.o \ |
| 296 | mock_modem_proxy.o \ |
| 297 | mock_modem_simple_proxy.o \ |
Darin Petkov | 3c5e4dc | 2012-04-02 14:44:27 +0200 | [diff] [blame] | 298 | mock_nss.o \ |
Darin Petkov | 1c11520 | 2012-03-22 15:35:47 +0100 | [diff] [blame] | 299 | mock_openvpn_driver.o \ |
Darin Petkov | 4646302 | 2012-03-29 14:57:32 +0200 | [diff] [blame] | 300 | mock_openvpn_management_server.o \ |
Paul Stewart | c681fa0 | 2012-03-02 19:40:04 -0800 | [diff] [blame] | 301 | mock_portal_detector.o \ |
Gary Morain | ac1bdb4 | 2012-02-16 17:42:29 -0800 | [diff] [blame] | 302 | mock_power_manager.o \ |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 303 | mock_power_manager_proxy.o \ |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 304 | mock_profile.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 305 | mock_property_store.o \ |
Thieu Le | fb46caf | 2012-03-08 11:57:15 -0800 | [diff] [blame] | 306 | mock_proxy_factory.o \ |
Darin Petkov | eac68e6 | 2011-08-26 16:24:51 -0700 | [diff] [blame] | 307 | mock_resolver.o \ |
| 308 | mock_routing_table.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 309 | mock_rtnl_handler.o \ |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 310 | mock_service.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 311 | mock_sockets.o \ |
Darin Petkov | eac68e6 | 2011-08-26 16:24:51 -0700 | [diff] [blame] | 312 | mock_store.o \ |
mukesh agrawal | b20776f | 2012-02-10 16:00:36 -0800 | [diff] [blame] | 313 | mock_supplicant_bss_proxy.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 314 | mock_supplicant_interface_proxy.o \ |
| 315 | mock_supplicant_process_proxy.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 316 | mock_time.o \ |
Darin Petkov | 36a3ace | 2012-03-06 17:22:14 +0100 | [diff] [blame] | 317 | mock_vpn.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 318 | mock_vpn_driver.o \ |
Paul Stewart | 8c116a9 | 2012-05-02 18:30:03 -0700 | [diff] [blame] | 319 | mock_vpn_provider.o \ |
Darin Petkov | 79d74c9 | 2012-03-07 17:20:32 +0100 | [diff] [blame] | 320 | mock_vpn_service.o \ |
mukesh agrawal | 7a4e400 | 2011-09-06 11:26:05 -0700 | [diff] [blame] | 321 | mock_wifi.o \ |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 322 | mock_wifi_service.o \ |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 323 | mock_wimax.o \ |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 324 | mock_wimax_device_proxy.o \ |
| 325 | mock_wimax_manager_proxy.o \ |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 326 | mock_wimax_network_proxy.o \ |
Darin Petkov | e4b2702 | 2012-05-16 13:28:50 +0200 | [diff] [blame] | 327 | mock_wimax_provider.o \ |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 328 | mock_wimax_service.o \ |
Jason Glasgow | 82f9ab3 | 2012-04-04 14:27:19 -0400 | [diff] [blame] | 329 | modem_1_unittest.o \ |
Darin Petkov | 887f298 | 2011-07-14 16:10:17 -0700 | [diff] [blame] | 330 | modem_info_unittest.o \ |
| 331 | modem_manager_unittest.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 332 | modem_unittest.o \ |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 333 | nice_mock_control.o \ |
Darin Petkov | 3c5e4dc | 2012-04-02 14:44:27 +0200 | [diff] [blame] | 334 | nss_unittest.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 335 | openvpn_driver_unittest.o \ |
Darin Petkov | 1c11520 | 2012-03-22 15:35:47 +0100 | [diff] [blame] | 336 | openvpn_management_server_unittest.o \ |
Paul Stewart | e692740 | 2012-01-23 16:11:30 -0800 | [diff] [blame] | 337 | portal_detector_unittest.o \ |
Gary Morain | 43bc627 | 2012-01-30 14:01:15 -0800 | [diff] [blame] | 338 | power_manager_unittest.o \ |
Paul Stewart | 0756db9 | 2012-01-27 08:34:47 -0800 | [diff] [blame] | 339 | profile_dbus_property_exporter_unittest.o \ |
Darin Petkov | a476682 | 2011-07-07 10:42:22 -0700 | [diff] [blame] | 340 | profile_unittest.o \ |
Chris Masone | 27bf103 | 2011-06-28 17:02:01 -0700 | [diff] [blame] | 341 | property_accessor_unittest.o \ |
Paul Stewart | 8e7e459 | 2012-04-29 09:47:48 -0700 | [diff] [blame] | 342 | property_store_inspector.o \ |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 343 | property_store_unittest.o \ |
Paul Stewart | b606394 | 2011-08-05 10:17:29 -0700 | [diff] [blame] | 344 | resolver_unittest.o \ |
Paul Stewart | 75e89d2 | 2011-08-01 10:00:02 -0700 | [diff] [blame] | 345 | routing_table_unittest.o \ |
Darin Petkov | a9b1fed | 2012-02-29 11:49:05 +0100 | [diff] [blame] | 346 | rpc_task_unittest.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 347 | rtnl_handler_unittest.o \ |
Darin Petkov | ca432fc | 2011-07-08 15:56:57 -0700 | [diff] [blame] | 348 | rtnl_listener_unittest.o \ |
Paul Stewart | dd7df79 | 2011-07-15 11:09:50 -0700 | [diff] [blame] | 349 | rtnl_message_unittest.o \ |
Ben Chan | bc49ac7 | 2012-04-10 19:59:45 -0700 | [diff] [blame] | 350 | scope_logger_unittest.o \ |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 351 | service_under_test.o \ |
Chris Masone | 3bd3c8c | 2011-06-13 08:20:26 -0700 | [diff] [blame] | 352 | service_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 353 | shill_unittest.o \ |
Paul Stewart | 1062d9d | 2012-04-27 10:42:27 -0700 | [diff] [blame] | 354 | static_ip_parameters_unittest.o \ |
Ben Chan | c12cf66 | 2012-04-05 14:47:18 -0700 | [diff] [blame] | 355 | technology_unittest.o \ |
Chris Masone | 853b81b | 2011-06-24 14:11:41 -0700 | [diff] [blame] | 356 | testrunner.o \ |
Darin Petkov | b451d6e | 2012-04-23 11:56:41 +0200 | [diff] [blame] | 357 | vpn_driver_unittest.o \ |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 358 | vpn_provider_unittest.o \ |
| 359 | vpn_service_unittest.o \ |
Darin Petkov | f20994f | 2012-03-05 16:12:19 +0100 | [diff] [blame] | 360 | vpn_unittest.o \ |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 361 | wifi_endpoint_unittest.o \ |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 362 | wifi_service_unittest.o \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 363 | wifi_unittest.o \ |
Darin Petkov | b72b62e | 2012-05-15 16:55:36 +0200 | [diff] [blame] | 364 | wimax_provider_unittest.o \ |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 365 | wimax_service_unittest.o \ |
| 366 | wimax_unittest.o \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 367 | ) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 368 | |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 369 | .PHONY: all clean |
| 370 | |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 371 | all: $(SHILL_BIN) $(TEST_BIN) |
| 372 | |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 373 | $(BUILD_DBUS_BINDINGS_DIR)/%.xml: $(DBUS_BINDINGS_DIR)/%.xml |
| 374 | cp $< $@ |
| 375 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 376 | $(DBUS_PROXY_BINDINGS): %.h: %.xml |
Darin Petkov | 005aa38 | 2011-11-17 14:26:21 +0100 | [diff] [blame] | 377 | $(DBUSXX_XML2CPP) $< --proxy=$@ --sync --async |
Chris Masone | 413a319 | 2011-05-09 17:10:05 -0700 | [diff] [blame] | 378 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 379 | $(DBUS_ADAPTOR_BINDINGS): %.h: %.xml |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 380 | $(DBUSXX_XML2CPP) $< --adaptor=$@ |
| 381 | |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 382 | $(BUILDDIR)/%.o: %.cc |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 383 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE_DIRS) -MMD -c $< -o $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 384 | |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 385 | $(SHILL_OBJS): $(DBUS_ADAPTOR_BINDINGS) $(DBUS_PROXY_BINDINGS) |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 386 | |
Darin Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 387 | $(SHILL_BIN): $(SHILL_MAIN_OBJ) $(SHILL_OBJS) |
Eric Shienbrood | c74cf9c | 2012-03-02 15:00:35 -0500 | [diff] [blame] | 388 | $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) $(LDFLAGS) $^ $(LIB_DIRS) $(LIBS) \ |
Darin Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 389 | -o $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 390 | |
Paul Stewart | 291a473 | 2012-03-14 19:19:02 -0700 | [diff] [blame] | 391 | $(TEST_BIN): CPPFLAGS += -DUNIT_TEST -DSYSROOT=\"$(SYSROOT)\" |
Darin Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 392 | $(TEST_BIN): $(TEST_OBJS) $(SHILL_OBJS) |
Eric Shienbrood | c74cf9c | 2012-03-02 15:00:35 -0500 | [diff] [blame] | 393 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ $(TEST_LIB_DIRS) $(TEST_LIBS) -o $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 394 | |
| 395 | clean: |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 396 | rm -rf \ |
Darin Petkov | 5236a8e | 2012-02-21 10:26:55 +0100 | [diff] [blame] | 397 | $(BUILDDIR) \ |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 398 | $(SHILL_BIN) \ |
| 399 | $(TEST_BIN) |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 400 | |
| 401 | -include $(SHILL_OBJS:.o=.d) |
| 402 | -include $(SHILL_MAIN_OBJ:.o=.d) |
| 403 | -include $(TEST_OBJS:.o=.d) |