1 2VPATH += ${BTSTACK_ROOT}/src 3VPATH += ${BTSTACK_ROOT}/src/ble 4VPATH += ${BTSTACK_ROOT}/src/ble/gatt-service 5VPATH += ${BTSTACK_ROOT}/src/classic 6VPATH += ${BTSTACK_ROOT}/src/mesh 7VPATH += ${BTSTACK_ROOT}/src/mesh/gatt-service 8VPATH += ${BTSTACK_ROOT}/example 9VPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce 10VPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/srce 11VPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player 12VPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player 13VPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods 14VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ 15VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4 16VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv6 17VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/netif 18VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/apps/http 19VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server 20VPATH += ${BTSTACK_ROOT}/3rd-party/md5 21VPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc 22VPATH += ${BTSTACK_ROOT}/3rd-party/yxml 23VPATH += ${BTSTACK_ROOT}/platform/lwip 24VPATH += ${BTSTACK_ROOT}/platform/lwip/port 25 26 27CFLAGS += -I. 28CFLAGS += -I${BTSTACK_ROOT}/src/ble 29CFLAGS += -I${BTSTACK_ROOT}/src/classic 30CFLAGS += -I${BTSTACK_ROOT}/src/mesh 31CFLAGS += -I${BTSTACK_ROOT}/src 32CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include 33CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include 34CFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player 35CFLAGS += -I${BTSTACK_ROOT}/3rd-party/lwip/core/src/include/ 36CFLAGS += -I${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server 37CFLAGS += -I${BTSTACK_ROOT}/3rd-party/md5 38CFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc 39CFLAGS += -I${BTSTACK_ROOT}/3rd-party/yxml 40CFLAGS += -I${BTSTACK_ROOT}/platform/lwip 41CFLAGS += -I${BTSTACK_ROOT}/platform/lwip/port 42 43# for CVSD/SBC PLC 44LDFLAGS += -lm 45 46CORE += \ 47 btstack_memory.c \ 48 btstack_linked_list.c \ 49 btstack_memory_pool.c \ 50 btstack_run_loop.c \ 51 btstack_util.c \ 52 53COMMON += \ 54 ad_parser.c \ 55 hci.c \ 56 hci_cmd.c \ 57 hci_dump.c \ 58 hci_event.c \ 59 l2cap.c \ 60 l2cap_signaling.c \ 61 btstack_audio.c \ 62 btstack_tlv.c \ 63 btstack_crypto.c \ 64 uECC.c \ 65 sm.c \ 66 67CLASSIC ?= \ 68 sdp_util.c \ 69 gatt_sdp.c \ 70 spp_server.c \ 71 rfcomm.c \ 72 bnep.c \ 73 sdp_server.c \ 74 device_id_server.c \ 75 76SDP_CLIENT += \ 77 sdp_client.o \ 78 sdp_client_rfcomm.o \ 79 80ATT += \ 81 att_dispatch.c \ 82 83GATT_SERVER += \ 84 att_db.c \ 85 att_server.c \ 86 87GATT_CLIENT += \ 88 gatt_client.c \ 89 battery_service_client.c \ 90 device_information_service_client.c \ 91 scan_parameters_service_client.c \ 92 hids_client.c \ 93 94PAN += \ 95 pan.c \ 96 97MBEDTLS = \ 98 bignum.c \ 99 ecp.c \ 100 ecp_curves.c \ 101 sm_mbedtls_allocator.c \ 102 memory_buffer_alloc.c \ 103 platform.c \ 104 105 106LWIP_CORE_SRC = init.c mem.c memp.c netif.c udp.c ip.c pbuf.c inet_chksum.c def.c tcp.c tcp_in.c tcp_out.c timeouts.c sys_arch.c 107LWIP_IPV4_SRC = acd.c dhcp.c etharp.c icmp.c ip4.c ip4_frag.c ip4_addr.c 108LWIP_NETIF_SRC = ethernet.c 109LWIP_HTTPD = altcp_proxyconnect.c fs.c httpd.c 110LWIP_SRC = ${LWIP_CORE_SRC} ${LWIP_IPV4_SRC} ${LWIP_NETIF_SRC} ${LWIP_HTTPD} dhserver.c 111 112# List of files for Bluedroid SBC codec 113include ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc 114include ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc 115 116SBC_DECODER += \ 117 btstack_sbc_plc.c \ 118 btstack_sbc_decoder_bluedroid.c \ 119 120SBC_ENCODER += \ 121 btstack_sbc_encoder_bluedroid.c \ 122 hfp_msbc.c \ 123 hfp_codec.c 124 125CVSD_PLC = \ 126 btstack_cvsd_plc.c \ 127 128AVDTP += \ 129 avdtp_util.c \ 130 avdtp.c \ 131 avdtp_initiator.c \ 132 avdtp_acceptor.c \ 133 avdtp_source.c \ 134 avdtp_sink.c \ 135 a2dp.c \ 136 a2dp_source.c \ 137 a2dp_sink.c \ 138 btstack_ring_buffer.c \ 139 140AVRCP += \ 141 avrcp.c \ 142 avrcp_controller.c \ 143 avrcp_target.c \ 144 avrcp_browsing.c \ 145 avrcp_browsing_controller.c \ 146 avrcp_browsing_target.c \ 147 avrcp_media_item_iterator.c \ 148 149HXCMOD_PLAYER = \ 150 hxcmod.c \ 151 nao-deceased_by_disease.c \ 152 153MESH = \ 154 adv_bearer.c \ 155 beacon.c \ 156 gatt_bearer.c \ 157 mesh.c \ 158 mesh_access.c \ 159 mesh_configuration_client.c \ 160 mesh_configuration_server.c \ 161 mesh_crypto.c \ 162 mesh_foundation.c \ 163 mesh_generic_default_transition_time_client.c \ 164 mesh_generic_default_transition_time_server.c \ 165 mesh_generic_level_client.c \ 166 mesh_generic_level_server.c \ 167 mesh_generic_on_off_client.c \ 168 mesh_generic_on_off_server.c \ 169 mesh_health_server.c \ 170 mesh_iv_index_seq_number.c \ 171 mesh_keys.c \ 172 mesh_lower_transport.c \ 173 mesh_network.c \ 174 mesh_node.c \ 175 mesh_peer.c \ 176 mesh_provisioning_service_server.c \ 177 mesh_proxy.c \ 178 mesh_proxy_service_server.c \ 179 mesh_upper_transport.c \ 180 mesh_virtual_addresses.c \ 181 pb_adv.c \ 182 pb_gatt.c \ 183 provisioning.c \ 184 provisioning_device.c \ 185 provisioning_provisioner.c \ 186 187# List of General Examples without Bluetooth 188 189EXAMPLES_GENERAL = \ 190 audio_duplex \ 191 led_counter \ 192 mod_player \ 193 sine_player \ 194 195# List of Examples that only use Bluetooth BR/EDR = Classic 196 197EXAMPLES_CLASSIC_ONLY = \ 198 a2dp_sink_demo \ 199 a2dp_source_demo \ 200 avrcp_browsing_client \ 201 dut_mode_classic \ 202 gap_dedicated_bonding \ 203 gap_inquiry \ 204 gap_link_keys \ 205 hfp_ag_demo \ 206 hfp_hf_demo \ 207 hid_host_demo \ 208 hid_keyboard_demo \ 209 hid_mouse_demo \ 210 hsp_ag_demo \ 211 hsp_hs_demo \ 212 pbap_client_demo \ 213 sdp_bnep_query \ 214 sdp_general_query \ 215 sdp_rfcomm_query \ 216 spp_counter \ 217 spp_streamer \ 218 spp_streamer_client \ 219 ublox_spp_le_counter \ 220 221# List of Examples that only use Bluetooth LE 222 223EXAMPLES_LE_ONLY= \ 224 ancs_client_demo \ 225 att_delayed_response \ 226 gap_le_advertisements \ 227 gatt_battery_query \ 228 gatt_browser \ 229 gatt_counter \ 230 gatt_device_information_query \ 231 gatt_heart_rate_client \ 232 gatt_streamer_server \ 233 hog_boot_host_demo \ 234 hog_host_demo \ 235 hog_keyboard_demo \ 236 hog_mouse_demo \ 237 le_credit_based_flow_control_mode_client \ 238 le_credit_based_flow_control_mode_server \ 239 le_mitm \ 240 le_streamer_client \ 241 mesh_node_demo \ 242 nordic_spp_le_counter \ 243 nordic_spp_le_streamer \ 244 sm_pairing_central \ 245 sm_pairing_peripheral \ 246 ublox_spp_le_counter \ 247 248# List of Examples that use Bluetooth BR/EDR/LE = Dual Mode 249 250EXAMPLES_DUAL_MODE= \ 251 gatt_counter \ 252 gatt_streamer_server \ 253 spp_and_gatt_counter \ 254 spp_and_gatt_streamer \ 255 256# List of GATT files used by either LE_ONLY or DUAL_MODE examples 257 258EXAMPLES_GATT_FILES = \ 259 ancs_client_demo.gatt \ 260 att_delayed_response.gatt \ 261 gatt_battery_query.gatt \ 262 gatt_browser.gatt \ 263 gatt_counter.gatt \ 264 gatt_device_information_query.gatt \ 265 gatt_streamer_server.gatt \ 266 hog_host_demo.gatt \ 267 hog_keyboard_demo.gatt \ 268 hog_mouse_demo.gatt \ 269 le_credit_based_flow_control_mode_server.gatt \ 270 nordic_spp_le_counter.gatt \ 271 nordic_spp_le_streamer.gatt \ 272 sm_pairing_central.gatt \ 273 sm_pairing_peripheral.gatt \ 274 spp_and_gatt_counter.gatt \ 275 spp_and_gatt_streamer.gatt \ 276 ublox_spp_le_counter.gatt \ 277 278# .h for .gatt 279EXAMPLES_GATT_H_FILES = $(EXAMPLES_GATT_FILES:.gatt=.h) 280 281# .o for .c 282CORE_OBJ = $(CORE:.c=.o) 283COMMON_OBJ = $(COMMON:.c=.o) 284CLASSIC_OBJ = $(CLASSIC:.c=.o) 285ATT_OBJ = $(ATT:.c=.o) 286GATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o) 287GATT_SERVER_OBJ = $(GATT_SERVER:.c=.o) 288PAN_OBJ = $(PAN:.c=.o) 289SBC_DECODER_OBJ = $(SBC_DECODER:.c=.o) 290SBC_ENCODER_OBJ = $(SBC_ENCODER:.c=.o) 291CVSD_PLC_OBJ = $(CVSD_PLC:.c=.o) 292AVDTP_OBJ = $(AVDTP:.c=.o) 293AVRCP_OBJ = $(AVRCP:.c=.o) 294HXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o) 295LWIP_OBJ = $(LWIP_SRC:.c=.o) 296MESH_OBJ = $(MESH:.c=.o) 297 298default_target: all 299 300# compile .gatt descriptions 301%.h: %.gatt 302 python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@ 303 304# examples 305 306ant_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ant_test.c 307 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 308 309sdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c 310 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 311 312pbap_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} md5.o obex_iterator.o obex_parser.o obex_message_builder.o goep_client.o yxml.o pbap_client.o pbap_client_demo.o 313 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 314 315sdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c 316 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 317 318sdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c 319 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 320 321spp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c 322 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 323 324 325att_delayed_response.o: att_delayed_response.h att_delayed_response.c 326 ${CC} ${CFLAGS} -c $(filter-out att_delayed_response.h,$^) -o $@ 327 328att_delayed_response: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} att_delayed_response.o 329 ${CC} $^ ${LDFLAGS} -o $@ 330 331 332hog_keyboard_demo.o: hog_keyboard_demo.h hog_keyboard_demo.c 333 ${CC} ${CFLAGS} -c $(filter-out hog_keyboard_demo.h,$^) -o $@ 334 335hog_keyboard_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} battery_service_server.o device_information_service_server.o btstack_hid_parser.o hids_device.o btstack_ring_buffer.o hog_keyboard_demo.o 336 ${CC} $^ ${LDFLAGS} -o $@ 337 338 339hog_mouse_demo.o: hog_mouse_demo.h hog_mouse_demo.c 340 ${CC} ${CFLAGS} -c $(filter-out hog_mouse_demo.h,$^) -o $@ 341 342hog_mouse_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} battery_service_server.o device_information_service_server.o btstack_hid_parser.o hids_device.o hog_mouse_demo.o 343 ${CC} $^ ${LDFLAGS} -o $@ 344 345 346hog_boot_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} hog_boot_host_demo.o 347 ${CC} $^ ${LDFLAGS} -o $@ 348 349 350hog_host_demo.o: hog_host_demo.h hog_host_demo.c 351 ${CC} ${CFLAGS} -c $(filter-out hog_host_demo.h,$^) -o $@ 352 353hog_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} btstack_hid_parser.o btstack_hid.o hog_host_demo.o 354 ${CC} $^ ${LDFLAGS} -o $@ 355 356 357sm_pairing_peripheral.o: sm_pairing_peripheral.h sm_pairing_peripheral.c 358 ${CC} ${CFLAGS} -c $(filter-out sm_pairing_peripheral.h,$^) -o $@ 359 360sm_pairing_peripheral: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} sm_pairing_peripheral.o 361 ${CC} $^ ${LDFLAGS} -o $@ 362 363 364sm_pairing_central.o: sm_pairing_central.h sm_pairing_central.c 365 ${CC} ${CFLAGS} -c $(filter-out sm_pairing_central.h,$^) -o $@ 366 367sm_pairing_central: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} sm_pairing_central.o 368 ${CC} $^ ${LDFLAGS} -o $@ 369 370 371gatt_counter.o: gatt_counter.h gatt_counter.c 372 ${CC} ${CFLAGS} -c $(filter-out gatt_counter.h,$^) -o $@ 373 374gatt_counter: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${CLASSIC_OBJ} battery_service_server.o gatt_counter.o 375 ${CC} $^ ${LDFLAGS} -o $@ 376 377 378gatt_streamer_server.o: gatt_streamer_server.h gatt_streamer_server.c 379 ${CC} ${CFLAGS} -c $(filter-out gatt_streamer_server.h,$^) -o $@ 380 381gatt_streamer_server: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${CLASSIC_OBJ} gatt_streamer_server.o 382 ${CC} $^ ${LDFLAGS} -o $@ 383 384 385le_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} le_streamer_client.c 386 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 387 388le_mitm: ${CORE_OBJ} ${COMMON_OBJ} le_mitm.c 389 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 390 391gatt_heart_rate_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} gatt_heart_rate_client.c 392 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 393 394 395spp_and_gatt_counter.o: spp_and_gatt_counter.h spp_and_gatt_counter.c 396 ${CC} ${CFLAGS} -c $(filter-out spp_and_gatt_counter.h,$^) -o $@ 397 398spp_and_gatt_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} spp_and_gatt_counter.o 399 ${CC} $^ ${LDFLAGS} -o $@ 400 401 402spp_and_gatt_streamer.o: spp_and_gatt_streamer.h spp_and_gatt_streamer.c 403 ${CC} ${CFLAGS} -c $(filter-out spp_and_gatt_streamer.h,$^) -o $@ 404 405spp_and_gatt_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} spp_and_gatt_streamer.o 406 ${CC} $^ ${LDFLAGS} -o $@ 407 408 409spp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c 410 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 411 412spp_flowcontrol: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_flowcontrol.c 413 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 414 415spp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer_client.c 416 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 417 418gap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c 419 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 420 421gap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c 422 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 423 424gap_link_keys: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_link_keys.c 425 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 426 427panu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${PAN_OBJ} panu_demo.c 428 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 429 430pan_lwip_http_server: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${PAN_OBJ} ${LWIP_SRC} btstack_ring_buffer.o bnep_lwip.o pan_lwip_http_server.o 431 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 432 433 434gatt_browser.o: gatt_browser.h gatt_browser.c 435 ${CC} ${CFLAGS} -c $(filter-out gatt_browser.h,$^) -o $@ 436 437gatt_browser: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_browser.o 438 ${CC} $^ ${LDFLAGS} -o $@ 439 440 441gatt_battery_query.o: gatt_battery_query.h gatt_battery_query.c 442 ${CC} ${CFLAGS} -c $(filter-out gatt_battery_query.h,$^) -o $@ 443 444gatt_battery_query: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_battery_query.o 445 ${CC} $^ ${LDFLAGS} -o $@ 446 447 448gatt_device_information_query.o: gatt_device_information_query.h gatt_device_information_query.c 449 ${CC} ${CFLAGS} -c $(filter-out gatt_device_information_query.h,$^) -o $@ 450 451gatt_device_information_query: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_device_information_query.o 452 ${CC} $^ ${LDFLAGS} -o $@ 453 454 455ancs_client_demo.o: ancs_client_demo.h ancs_client_demo.c 456 ${CC} ${CFLAGS} -c $(filter-out ancs_client_demo.h,$^) -o $@ 457 458ancs_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} ancs_client.o ancs_client_demo.o 459 ${CC} $^ ${LDFLAGS} -o $@ 460 461 462led_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c 463 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 464 465gap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} gap_le_advertisements.c 466 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 467 468hsp_hs_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_DECODER_OBJ} ${SBC_ENCODER_OBJ} ${CVSD_PLC_OBJ} wav_util.o sco_demo_util.o btstack_ring_buffer.o hsp_hs.o hsp_hs_demo.c 469 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 470 471hsp_ag_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_DECODER_OBJ} ${SBC_ENCODER_OBJ} ${CVSD_PLC_OBJ} wav_util.o sco_demo_util.o btstack_ring_buffer.o hsp_ag.o hsp_ag_demo.c 472 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 473 474hfp_ag_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_DECODER_OBJ} ${SBC_ENCODER_OBJ} ${CVSD_PLC_OBJ} wav_util.o sco_demo_util.o btstack_ring_buffer.o hfp.o hfp_gsm_model.o hfp_ag.o hfp_ag_demo.c 475 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 476 477hfp_hf_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_DECODER_OBJ} ${SBC_ENCODER_OBJ} ${CVSD_PLC_OBJ} wav_util.o sco_demo_util.o btstack_ring_buffer.o hfp.o hfp_hf.o hfp_hf_demo.c 478 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 479 480hid_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_hid_parser.o hid_host.o hid_host_demo.o 481 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 482 483hid_keyboard_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o btstack_hid_parser.o hid_keyboard_demo.o 484 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 485 486hid_mouse_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o btstack_hid_parser.o hid_mouse_demo.o 487 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 488 489a2dp_source_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${AVDTP_OBJ} ${HXCMOD_PLAYER_OBJ} avrcp.o avrcp_controller.o avrcp_target.o a2dp_source_demo.c 490 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 491 492a2dp_sink_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} avrcp.o avrcp_controller.o avrcp_target.o avrcp_cover_art_client.o goep_client.o obex_parser.o obex_message_builder.o btstack_resample.o btstack_sample_rate_compensation.o a2dp_sink_demo.c 493 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 494 495avrcp_browsing_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${AVRCP_OBJ} ${AVDTP_OBJ} avrcp_browsing_client.c 496 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 497 498dut_mode_classic: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} dut_mode_classic.c 499 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 500 501le_credit_based_flow_control_mode_client: ${CORE_OBJ} ${COMMON_OBJ} le_credit_based_flow_control_mode_client.c 502 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 503 504 505le_credit_based_flow_control_mode_server.o: le_credit_based_flow_control_mode_server.h le_credit_based_flow_control_mode_server.c 506 ${CC} ${CFLAGS} -c $(filter-out le_credit_based_flow_control_mode_server.h,$^) -o $@ 507 508le_credit_based_flow_control_mode_server: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} le_credit_based_flow_control_mode_server.o 509 ${CC} $^ ${LDFLAGS} -o $@ 510 511 512mod_player: ${CORE_OBJ} ${COMMON_OBJ} ${HXCMOD_PLAYER_OBJ} btstack_audio.o mod_player.c 513 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 514 515sine_player: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o sine_player.c 516 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 517 518audio_duplex: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o btstack_ring_buffer.o audio_duplex.c 519 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 520 521 522nordic_spp_le_counter.o: nordic_spp_le_counter.h nordic_spp_le_counter.c 523 ${CC} ${CFLAGS} -c $(filter-out nordic_spp_le_counter.h,$^) -o $@ 524 525nordic_spp_le_counter: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} nordic_spp_service_server.o nordic_spp_le_counter.o 526 ${CC} $^ ${LDFLAGS} -o $@ 527 528 529nordic_spp_le_streamer.o: nordic_spp_le_streamer.h nordic_spp_le_streamer.c 530 ${CC} ${CFLAGS} -c $(filter-out nordic_spp_le_streamer.h,$^) -o $@ 531 532nordic_spp_le_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} nordic_spp_service_server.o nordic_spp_le_streamer.o 533 ${CC} $^ ${LDFLAGS} -o $@ 534 535 536ublox_spp_le_counter.o: ublox_spp_le_counter.h ublox_spp_le_counter.c 537 ${CC} ${CFLAGS} -c $(filter-out ublox_spp_le_counter.h,$^) -o $@ 538 539ublox_spp_le_counter: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} device_information_service_server.o ublox_spp_service_server.o ublox_spp_le_counter.o 540 ${CC} $^ ${LDFLAGS} -o $@ 541 542 543mesh_node_demo.o: mesh_node_demo.h mesh_node_demo.c 544 ${CC} ${CFLAGS} -c $(filter-out mesh_node_demo.h,$^) -o $@ 545 546mesh_node_demo:${CORE_OBJ} ${COMMON_OBJ} ${MESH_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} mesh_node_demo.o 547 ${CC} $^ ${LDFLAGS} -o $@ 548 549clean: 550 rm -f ${EXAMPLES} ${EXAMPLES_GATT_H_FILES} 551 rm -f *.o *.out *.hex *.exe *.wav *.sbc 552 rm -rf *.dSYM 553 rm -rf ${BTSTACK_ROOT}/src/*.o 554 rm -rf ${BTSTACK_ROOT}/src/ble/*.o 555 rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o 556 rm -rf ${BTSTACK_ROOT}/src/classic/*.o 557 rm -rf ${BTSTACK_ROOT}/example/*.o 558