Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 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 |
Darin Petkov | 3cef27c | 2011-08-03 16:21:40 -0700 | [diff] [blame] | 7 | CXXFLAGS += -Wall -Wextra -Werror -Wuninitialized -Woverloaded-virtual |
Darin Petkov | 04d46b4 | 2011-08-31 14:17:34 -0700 | [diff] [blame] | 8 | CXXFLAGS += $(EXTRA_CXXFLAGS) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 9 | CPPFLAGS ?= -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 10 | PKG_CONFIG ?= pkg-config |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 11 | DBUSXX_XML2CPP = dbusxx-xml2cpp |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 12 | |
Chris Masone | 0e1d104 | 2011-05-09 18:07:03 -0700 | [diff] [blame] | 13 | # libevent, gdk and gtk-2.0 are needed to leverage chrome's MessageLoop |
| 14 | # TODO(cmasone): explore if newer versions of libbase let us avoid this. |
Thieu Le | 48e6d6d | 2011-12-06 00:40:27 +0000 | [diff] [blame] | 15 | BASE_LIBS = -lbase -lchromeos -levent -lpthread -lrt -lcares -lmobile-provider \ |
| 16 | -lmetrics |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 17 | BASE_INCLUDE_DIRS = -I.. |
| 18 | BASE_LIB_DIRS = |
| 19 | |
| 20 | LIBS = $(BASE_LIBS) |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 21 | INCLUDE_DIRS = $(BASE_INCLUDE_DIRS) $(shell $(PKG_CONFIG) --cflags dbus-c++-1 \ |
| 22 | glib-2.0 gdk-2.0 gtk+-2.0) |
| 23 | LIB_DIRS = $(BASE_LIB_DIRS) $(shell $(PKG_CONFIG) --libs dbus-c++-1 glib-2.0 \ |
mukesh agrawal | f8a51ce | 2011-05-27 11:18:13 -0700 | [diff] [blame] | 24 | gdk-2.0 gtk+-2.0) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 25 | |
| 26 | TEST_LIBS = $(BASE_LIBS) -lgmock -lgtest |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 27 | TEST_LIB_DIRS = $(LIB_DIRS) |
| 28 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 29 | DBUS_BINDINGS_DIR = dbus_bindings |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 30 | |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 31 | DBUS_ADAPTOR_HEADERS = \ |
| 32 | flimflam-device.h \ |
Chris Masone | ccc8881 | 2011-06-08 18:00:10 -0700 | [diff] [blame] | 33 | flimflam-ipconfig.h \ |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 34 | flimflam-manager.h \ |
Chris Masone | ccc8881 | 2011-06-08 18:00:10 -0700 | [diff] [blame] | 35 | flimflam-profile.h \ |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 36 | flimflam-service.h |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 37 | |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 38 | DBUS_PROXY_HEADERS = \ |
Darin Petkov | 3117bab | 2011-08-02 16:10:21 -0700 | [diff] [blame] | 39 | dbus-properties.h \ |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 40 | dhcpcd.h \ |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 41 | power_manager.h \ |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 42 | supplicant-bss.h \ |
| 43 | supplicant-interface.h \ |
| 44 | supplicant-network.h \ |
mukesh agrawal | ab87ea4 | 2011-05-18 11:44:49 -0700 | [diff] [blame] | 45 | supplicant-process.h |
Darin Petkov | 567a7d0 | 2011-05-26 17:15:34 -0700 | [diff] [blame] | 46 | |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 47 | # Generates rules for copying SYSROOT XMLs locally and updates the proxy header |
| 48 | # dependencies. |
| 49 | DBUS_BINDINGS_XML_SYSROOT = \ |
| 50 | org.freedesktop.ModemManager>modem_manager \ |
Darin Petkov | 1ec741c | 2011-08-02 10:45:27 -0700 | [diff] [blame] | 51 | org.freedesktop.ModemManager.Modem>modem \ |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 52 | org.freedesktop.ModemManager.Modem.Cdma>modem-cdma \ |
| 53 | org.freedesktop.ModemManager.Modem.Gsm.Card>modem-gsm-card \ |
| 54 | org.freedesktop.ModemManager.Modem.Gsm.Network>modem-gsm-network \ |
| 55 | org.freedesktop.ModemManager.Modem.Simple>modem-simple |
| 56 | |
| 57 | define ADD_BINDING |
| 58 | $(eval _SOURCE = $(word 1,$(subst >, ,$(1)))) |
| 59 | $(eval _TARGET = $(word 2,$(subst >, ,$(1)))) |
| 60 | CLEAN_FILES += $(DBUS_BINDINGS_DIR)/$(_TARGET).xml |
| 61 | DBUS_PROXY_HEADERS += $(_TARGET).h |
| 62 | $(DBUS_BINDINGS_DIR)/$(_TARGET).xml: \ |
| 63 | $(SYSROOT)/usr/share/dbus-1/interfaces/$(_SOURCE).xml |
| 64 | cat $$< > $$@ |
| 65 | endef |
| 66 | |
| 67 | $(foreach b,$(DBUS_BINDINGS_XML_SYSROOT),$(eval $(call ADD_BINDING,$(b)))) |
| 68 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 69 | DBUS_ADAPTOR_BINDINGS = \ |
| 70 | $(addprefix $(DBUS_BINDINGS_DIR)/, $(DBUS_ADAPTOR_HEADERS)) |
| 71 | DBUS_PROXY_BINDINGS = $(addprefix $(DBUS_BINDINGS_DIR)/, $(DBUS_PROXY_HEADERS)) |
| 72 | DBUS_BINDINGS = $(DBUS_ADAPTOR_BINDINGS) $(DBUS_PROXY_BINDINGS) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 73 | |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 74 | SHILL_OBJS = \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 75 | async_connection.o \ |
Paul Stewart | 3ecfa2b | 2011-07-15 10:47:42 -0700 | [diff] [blame] | 76 | byte_string.o \ |
mukesh agrawal | 186af05 | 2012-01-11 15:07:34 -0800 | [diff] [blame] | 77 | callback_list.o \ |
Chris Masone | 3bd3c8c | 2011-06-13 08:20:26 -0700 | [diff] [blame] | 78 | cellular.o \ |
Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 79 | cellular_capability.o \ |
| 80 | cellular_capability_cdma.o \ |
| 81 | cellular_capability_gsm.o \ |
Chris Masone | 3bd3c8c | 2011-06-13 08:20:26 -0700 | [diff] [blame] | 82 | cellular_service.o \ |
Paul Stewart | dd60e45 | 2011-08-08 11:38:36 -0700 | [diff] [blame] | 83 | connection.o \ |
Darin Petkov | 823c47e | 2011-06-27 16:15:35 -0700 | [diff] [blame] | 84 | crypto_des_cbc.o \ |
Darin Petkov | 86964e0 | 2011-06-29 13:49:28 -0700 | [diff] [blame] | 85 | crypto_provider.o \ |
Darin Petkov | 877642b | 2011-06-27 13:37:22 -0700 | [diff] [blame] | 86 | crypto_rot47.o \ |
Chris Masone | d0ceb8c | 2011-06-02 10:05:39 -0700 | [diff] [blame] | 87 | dbus_adaptor.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 88 | dbus_control.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 89 | dbus_properties.o \ |
Darin Petkov | 5c97ac5 | 2011-07-19 16:30:49 -0700 | [diff] [blame] | 90 | dbus_properties_proxy.o \ |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 91 | default_profile.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 92 | device.o \ |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 93 | device_dbus_adaptor.o \ |
Paul Stewart | 0af98bf | 2011-05-10 17:38:08 -0700 | [diff] [blame] | 94 | device_info.o \ |
Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 95 | dhcp_config.o \ |
| 96 | dhcp_provider.o \ |
| 97 | dhcpcd_proxy.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 98 | dns_client.o \ |
mukesh agrawal | b54601c | 2011-06-07 17:39:22 -0700 | [diff] [blame] | 99 | endpoint.o \ |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 100 | ephemeral_profile.o \ |
Chris Masone | 8fe2c7e | 2011-06-09 15:51:19 -0700 | [diff] [blame] | 101 | error.o \ |
Paul Stewart | b50f0b9 | 2011-05-16 16:31:42 -0700 | [diff] [blame] | 102 | ethernet.o \ |
Paul Stewart | f1ce5d2 | 2011-05-19 13:10:20 -0700 | [diff] [blame] | 103 | ethernet_service.o \ |
Paul Stewart | 26b327e | 2011-10-19 11:38:09 -0700 | [diff] [blame] | 104 | event_dispatcher.o \ |
Darin Petkov | f7897bc | 2011-06-08 17:13:36 -0700 | [diff] [blame] | 105 | glib.o \ |
Paul Stewart | f0aae10 | 2011-10-19 12:11:44 -0700 | [diff] [blame] | 106 | glib_io_ready_handler.o \ |
| 107 | glib_io_input_handler.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 108 | http_proxy.o \ |
Paul Stewart | 1d18e8c | 2011-07-15 11:00:31 -0700 | [diff] [blame] | 109 | ip_address.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 110 | ipconfig.o \ |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 111 | ipconfig_dbus_adaptor.o \ |
Darin Petkov | 083047b | 2011-06-23 20:42:48 -0700 | [diff] [blame] | 112 | key_file_store.o \ |
mukesh agrawal | 7a4e400 | 2011-09-06 11:26:05 -0700 | [diff] [blame] | 113 | key_value_store.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 114 | manager.o \ |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 115 | manager_dbus_adaptor.o \ |
Thieu Le | 48e6d6d | 2011-12-06 00:40:27 +0000 | [diff] [blame] | 116 | metrics.o \ |
Darin Petkov | 5c97ac5 | 2011-07-19 16:30:49 -0700 | [diff] [blame] | 117 | modem.o \ |
Darin Petkov | bec79a2 | 2011-08-01 14:47:17 -0700 | [diff] [blame] | 118 | modem_cdma_proxy.o \ |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 119 | modem_gsm_card_proxy.o \ |
Darin Petkov | a1e0a1c | 2011-08-25 15:08:33 -0700 | [diff] [blame] | 120 | modem_gsm_network_proxy.o \ |
Darin Petkov | 887f298 | 2011-07-14 16:10:17 -0700 | [diff] [blame] | 121 | modem_info.o \ |
| 122 | modem_manager.o \ |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 123 | modem_manager_proxy.o \ |
Darin Petkov | e9d12e0 | 2011-07-27 15:09:37 -0700 | [diff] [blame] | 124 | modem_proxy.o \ |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 125 | modem_simple_proxy.o \ |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 126 | power_manager_proxy.o \ |
Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame] | 127 | profile.o \ |
| 128 | profile_dbus_adaptor.o \ |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 129 | property_store.o \ |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 130 | proxy_factory.o \ |
Paul Stewart | 75e89d2 | 2011-08-01 10:00:02 -0700 | [diff] [blame] | 131 | routing_table.o \ |
Paul Stewart | b606394 | 2011-08-05 10:17:29 -0700 | [diff] [blame] | 132 | resolver.o \ |
Paul Stewart | f1ce5d2 | 2011-05-19 13:10:20 -0700 | [diff] [blame] | 133 | rtnl_handler.o \ |
| 134 | rtnl_listener.o \ |
Paul Stewart | dd7df79 | 2011-07-15 11:09:50 -0700 | [diff] [blame] | 135 | rtnl_message.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 136 | service.o \ |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 137 | service_dbus_adaptor.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 138 | shill_ares.o \ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 139 | shill_config.o \ |
| 140 | shill_daemon.o \ |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 141 | shill_test_config.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 142 | shill_time.o \ |
Darin Petkov | 633ac6f | 2011-07-08 13:56:13 -0700 | [diff] [blame] | 143 | sockets.o \ |
mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 144 | supplicant_interface_proxy.o \ |
| 145 | supplicant_process_proxy.o \ |
Paul Stewart | fdd1607 | 2011-09-16 12:41:35 -0700 | [diff] [blame] | 146 | technology.o \ |
mukesh agrawal | b54601c | 2011-06-07 17:39:22 -0700 | [diff] [blame] | 147 | wifi.o \ |
| 148 | wifi_endpoint.o \ |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 149 | wifi_service.o \ |
| 150 | wpa_supplicant.o |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 151 | |
| 152 | SHILL_BIN = shill |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 153 | # Broken out separately, because (unlike other SHILL_OBJS), it |
| 154 | # shouldn't be linked into TEST_BIN. |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 155 | SHILL_MAIN_OBJ = shill_main.o |
| 156 | |
| 157 | TEST_BIN = shill_unittest |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 158 | TEST_OBJS = \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 159 | async_connection_unittest.o \ |
Paul Stewart | 3ecfa2b | 2011-07-15 10:47:42 -0700 | [diff] [blame] | 160 | byte_string_unittest.o \ |
mukesh agrawal | 186af05 | 2012-01-11 15:07:34 -0800 | [diff] [blame] | 161 | callback_list_unittest.o \ |
Darin Petkov | cb54773 | 2011-11-09 13:55:26 +0100 | [diff] [blame] | 162 | cellular_capability_cdma_unittest.o \ |
Darin Petkov | b05315f | 2011-11-07 10:14:25 +0100 | [diff] [blame] | 163 | cellular_capability_gsm_unittest.o \ |
Darin Petkov | b72cf40 | 2011-11-22 14:51:39 +0100 | [diff] [blame] | 164 | cellular_service_unittest.o \ |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 165 | cellular_unittest.o \ |
Darin Petkov | 823c47e | 2011-06-27 16:15:35 -0700 | [diff] [blame] | 166 | crypto_des_cbc_unittest.o \ |
Darin Petkov | 86964e0 | 2011-06-29 13:49:28 -0700 | [diff] [blame] | 167 | crypto_provider_unittest.o \ |
Darin Petkov | 877642b | 2011-06-27 13:37:22 -0700 | [diff] [blame] | 168 | crypto_rot47_unittest.o \ |
Paul Stewart | dd60e45 | 2011-08-08 11:38:36 -0700 | [diff] [blame] | 169 | connection_unittest.o \ |
Chris Masone | d0ceb8c | 2011-06-02 10:05:39 -0700 | [diff] [blame] | 170 | dbus_adaptor_unittest.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 171 | dbus_properties_unittest.o \ |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 172 | default_profile_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 173 | device_info_unittest.o \ |
Darin Petkov | afa6fc4 | 2011-06-21 16:21:08 -0700 | [diff] [blame] | 174 | device_unittest.o \ |
Darin Petkov | e7cb7f8 | 2011-06-03 13:21:51 -0700 | [diff] [blame] | 175 | dhcp_config_unittest.o \ |
Darin Petkov | 98dd6a0 | 2011-06-10 15:12:57 -0700 | [diff] [blame] | 176 | dhcp_provider_unittest.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 177 | dns_client_unittest.o \ |
Darin Petkov | e4c0ace | 2011-08-24 10:32:46 -0700 | [diff] [blame] | 178 | error_unittest.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 179 | http_proxy_unittest.o \ |
Paul Stewart | 1d18e8c | 2011-07-15 11:00:31 -0700 | [diff] [blame] | 180 | ip_address_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 181 | ipconfig_unittest.o \ |
Darin Petkov | 083047b | 2011-06-23 20:42:48 -0700 | [diff] [blame] | 182 | key_file_store_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 183 | manager_unittest.o \ |
Thieu Le | 48e6d6d | 2011-12-06 00:40:27 +0000 | [diff] [blame] | 184 | metrics_unittest.o \ |
Chris Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 185 | mock_adaptors.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 186 | mock_ares.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 187 | mock_async_connection.o \ |
mukesh agrawal | 186af05 | 2012-01-11 15:07:34 -0800 | [diff] [blame] | 188 | mock_callback.o \ |
Paul Stewart | c1dec4d | 2011-12-08 15:25:28 -0800 | [diff] [blame] | 189 | mock_connection.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 190 | mock_control.o \ |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 191 | mock_dbus_properties_proxy.o \ |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 192 | mock_device.o \ |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 193 | mock_device_info.o \ |
| 194 | mock_dhcp_config.o \ |
| 195 | mock_dhcp_provider.o \ |
| 196 | mock_dhcp_proxy.o \ |
Paul Stewart | f65320c | 2011-10-13 14:34:52 -0700 | [diff] [blame] | 197 | mock_dns_client.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 198 | mock_event_dispatcher.o \ |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 199 | mock_glib.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 200 | mock_ipconfig.o \ |
| 201 | mock_manager.o \ |
| 202 | mock_modem_cdma_proxy.o \ |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 203 | mock_modem_gsm_card_proxy.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 204 | mock_modem_gsm_network_proxy.o \ |
| 205 | mock_modem_manager_proxy.o \ |
| 206 | mock_modem_proxy.o \ |
| 207 | mock_modem_simple_proxy.o \ |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 208 | mock_power_manager_proxy.o \ |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 209 | mock_profile.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 210 | mock_property_store.o \ |
Darin Petkov | eac68e6 | 2011-08-26 16:24:51 -0700 | [diff] [blame] | 211 | mock_resolver.o \ |
| 212 | mock_routing_table.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 213 | mock_rtnl_handler.o \ |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 214 | mock_service.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 215 | mock_sockets.o \ |
Darin Petkov | eac68e6 | 2011-08-26 16:24:51 -0700 | [diff] [blame] | 216 | mock_store.o \ |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 217 | mock_supplicant_interface_proxy.o \ |
| 218 | mock_supplicant_process_proxy.o \ |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 219 | mock_time.o \ |
mukesh agrawal | 7a4e400 | 2011-09-06 11:26:05 -0700 | [diff] [blame] | 220 | mock_wifi.o \ |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 221 | mock_wifi_service.o \ |
Darin Petkov | 887f298 | 2011-07-14 16:10:17 -0700 | [diff] [blame] | 222 | modem_info_unittest.o \ |
| 223 | modem_manager_unittest.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 224 | modem_unittest.o \ |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 225 | nice_mock_control.o \ |
Darin Petkov | a476682 | 2011-07-07 10:42:22 -0700 | [diff] [blame] | 226 | profile_unittest.o \ |
Chris Masone | 27bf103 | 2011-06-28 17:02:01 -0700 | [diff] [blame] | 227 | property_accessor_unittest.o \ |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 228 | property_store_unittest.o \ |
Paul Stewart | b606394 | 2011-08-05 10:17:29 -0700 | [diff] [blame] | 229 | resolver_unittest.o \ |
Paul Stewart | 75e89d2 | 2011-08-01 10:00:02 -0700 | [diff] [blame] | 230 | routing_table_unittest.o \ |
Darin Petkov | e0a312e | 2011-07-20 13:45:28 -0700 | [diff] [blame] | 231 | rtnl_handler_unittest.o \ |
Darin Petkov | ca432fc | 2011-07-08 15:56:57 -0700 | [diff] [blame] | 232 | rtnl_listener_unittest.o \ |
Paul Stewart | dd7df79 | 2011-07-15 11:09:50 -0700 | [diff] [blame] | 233 | rtnl_message_unittest.o \ |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 234 | service_under_test.o \ |
Chris Masone | 3bd3c8c | 2011-06-13 08:20:26 -0700 | [diff] [blame] | 235 | service_unittest.o \ |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 236 | shill_unittest.o \ |
Chris Masone | 853b81b | 2011-06-24 14:11:41 -0700 | [diff] [blame] | 237 | testrunner.o \ |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 238 | wifi_endpoint_unittest.o \ |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 239 | wifi_service_unittest.o \ |
Chris Masone | 853b81b | 2011-06-24 14:11:41 -0700 | [diff] [blame] | 240 | wifi_unittest.o |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 241 | |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 242 | .PHONY: all clean |
| 243 | |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 244 | all: $(SHILL_BIN) $(TEST_BIN) |
| 245 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 246 | $(DBUS_PROXY_BINDINGS): %.h: %.xml |
Darin Petkov | 005aa38 | 2011-11-17 14:26:21 +0100 | [diff] [blame] | 247 | $(DBUSXX_XML2CPP) $< --proxy=$@ --sync --async |
Chris Masone | 413a319 | 2011-05-09 17:10:05 -0700 | [diff] [blame] | 248 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 249 | $(DBUS_ADAPTOR_BINDINGS): %.h: %.xml |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 250 | $(DBUSXX_XML2CPP) $< --adaptor=$@ |
| 251 | |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 252 | .cc.o: |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 253 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE_DIRS) -MMD -c $< -o $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 254 | |
Darin Petkov | 4a09b6b | 2011-07-19 12:52:06 -0700 | [diff] [blame] | 255 | $(SHILL_OBJS): $(DBUS_BINDINGS) |
Chris Masone | 14de6e5 | 2011-05-09 09:20:59 -0700 | [diff] [blame] | 256 | |
Darin Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 257 | $(SHILL_BIN): $(SHILL_MAIN_OBJ) $(SHILL_OBJS) |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 258 | $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $(LDFLAGS) $^ $(LIBS) \ |
Darin Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 259 | -o $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 260 | |
| 261 | $(TEST_BIN): CXXFLAGS += -DUNIT_TEST |
Darin Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 262 | $(TEST_BIN): $(TEST_OBJS) $(SHILL_OBJS) |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 263 | $(CXX) $(CXXFLAGS) $(TEST_LIB_DIRS) $(LDFLAGS) $^ $(TEST_LIBS) -o $@ |
Chris Masone | 96832c3 | 2011-05-03 12:23:18 -0700 | [diff] [blame] | 264 | |
| 265 | clean: |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 266 | rm -rf \ |
| 267 | *.o \ |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 268 | *.d \ |
Darin Petkov | f5f61e0 | 2011-07-29 11:35:40 -0700 | [diff] [blame] | 269 | $(CLEAN_FILES) \ |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 270 | $(DBUS_BINDINGS) \ |
| 271 | $(SHILL_BIN) \ |
| 272 | $(TEST_BIN) |
mukesh agrawal | 837bb56 | 2011-11-23 01:06:01 +0000 | [diff] [blame] | 273 | |
| 274 | -include $(SHILL_OBJS:.o=.d) |
| 275 | -include $(SHILL_MAIN_OBJ:.o=.d) |
| 276 | -include $(TEST_OBJS:.o=.d) |