1fcb08cdbSMilanka Ringwald 2bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src 3bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble 4fe5451faSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble/gatt-service 5bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/classic 6*cf862b36SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/mesh 7bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/example 860da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce 960da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/srce 10f40f8caeSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player 1160da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player 1260da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods 1397dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ 1497dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4 1597dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv6 1697dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/netif 1797dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/apps/http 1897dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server 19c1bc0b8eSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/md5 20c692d776SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc 21e03b79abSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/yxml 2297dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/lwip 23235be4f4SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/lwip/port 24*cf862b36SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/test/mesh 25bcf00d8fSMatthias Ringwald 26bcf00d8fSMatthias RingwaldCFLAGS += -I. 27bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/ble 28bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/classic 29*cf862b36SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/mesh 30bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src 3160da6912SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include 3260da6912SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include 33f40f8caeSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player 3497dc5e69SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/lwip/core/src/include/ 3597dc5e69SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server 36c1bc0b8eSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/md5 37c692d776SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc 38e03b79abSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/yxml 3997dc5e69SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/platform/lwip 40235be4f4SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/platform/lwip/port 41*cf862b36SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/test/mesh 4240e13339SMatthias Ringwald 4340e13339SMatthias Ringwald# for CVSD/SBC PLC 4440e13339SMatthias RingwaldLDFLAGS += -lm 4540e13339SMatthias Ringwald 46bcf00d8fSMatthias RingwaldCORE += \ 47bcf00d8fSMatthias Ringwald btstack_memory.c \ 48bcf00d8fSMatthias Ringwald btstack_linked_list.c \ 49bcf00d8fSMatthias Ringwald btstack_memory_pool.c \ 50bcf00d8fSMatthias Ringwald btstack_run_loop.c \ 51bcf00d8fSMatthias Ringwald btstack_util.c \ 52bcf00d8fSMatthias Ringwald 53bcf00d8fSMatthias RingwaldCOMMON += \ 541cfb383eSMatthias Ringwald ad_parser.c \ 55bcf00d8fSMatthias Ringwald hci.c \ 56bcf00d8fSMatthias Ringwald hci_cmd.c \ 57bcf00d8fSMatthias Ringwald hci_dump.c \ 58bcf00d8fSMatthias Ringwald l2cap.c \ 59bcf00d8fSMatthias Ringwald l2cap_signaling.c \ 60b88bf5bfSMatthias Ringwald btstack_audio.c \ 612ef57735SMatthias Ringwald btstack_tlv.c \ 62d1a1f6a4SMatthias Ringwald btstack_crypto.c \ 632b3b87f9SMatthias Ringwald uECC.c \ 64fedcc363SMatthias Ringwald sm.c \ 653a18db10SMatthias Ringwald 663a18db10SMatthias RingwaldCLASSIC += \ 67bcf00d8fSMatthias Ringwald btstack_link_key_db_memory.c \ 68bcf00d8fSMatthias Ringwald sdp_util.c \ 696bee1f95SMatthias Ringwald gatt_sdp.c \ 70efda0b48SMatthias Ringwald spp_server.c \ 71bcf00d8fSMatthias Ringwald rfcomm.c \ 72bcf00d8fSMatthias Ringwald bnep.c \ 73bcf00d8fSMatthias Ringwald sdp_server.c \ 74c4b3290dSMatthias Ringwald device_id_server.c \ 75bcf00d8fSMatthias Ringwald 76bcf00d8fSMatthias RingwaldSDP_CLIENT += \ 77bcf00d8fSMatthias Ringwald sdp_client.o \ 78efda0b48SMatthias Ringwald sdp_client_rfcomm.o \ 79bcf00d8fSMatthias Ringwald 80bcf00d8fSMatthias RingwaldATT += \ 81bcf00d8fSMatthias Ringwald att_dispatch.c \ 82bcf00d8fSMatthias Ringwald 83bcf00d8fSMatthias RingwaldGATT_SERVER += \ 84bcf00d8fSMatthias Ringwald att_db.c \ 85bcf00d8fSMatthias Ringwald att_server.c \ 86bcf00d8fSMatthias Ringwald 87bcf00d8fSMatthias RingwaldGATT_CLIENT += \ 88bcf00d8fSMatthias Ringwald gatt_client.c \ 89bcf00d8fSMatthias Ringwald 90bcf00d8fSMatthias RingwaldPAN += \ 91bcf00d8fSMatthias Ringwald pan.c \ 92bcf00d8fSMatthias Ringwald 93faccbb29SMatthias RingwaldMBEDTLS = \ 94faccbb29SMatthias Ringwald bignum.c \ 95faccbb29SMatthias Ringwald ecp.c \ 96faccbb29SMatthias Ringwald ecp_curves.c \ 9768437d83SMatthias Ringwald sm_mbedtls_allocator.c \ 98d3bd9600SMatthias Ringwald memory_buffer_alloc.c \ 996643eff8SMatthias Ringwald platform.c \ 100faccbb29SMatthias Ringwald 10197dc5e69SMatthias RingwaldLWIP_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 10297dc5e69SMatthias RingwaldLWIP_IPV4_SRC = acd.c dhcp.c etharp.c icmp.c ip4.c ip4_frag.c ip4_addr.c 10397dc5e69SMatthias RingwaldLWIP_NETIF_SRC = ethernet.c 10497dc5e69SMatthias RingwaldLWIP_HTTPD = altcp_proxyconnect.c fs.c httpd.c 10597dc5e69SMatthias RingwaldLWIP_SRC = ${LWIP_CORE_SRC} ${LWIP_IPV4_SRC} ${LWIP_NETIF_SRC} ${LWIP_HTTPD} dhserver.c 10697dc5e69SMatthias Ringwald 1070e5ac34fSMatthias Ringwald# List of files for Bluedroid SBC codec 1080e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc 1090e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc 110fcb08cdbSMilanka Ringwald 111fcb08cdbSMilanka RingwaldSBC_DECODER += \ 112cd7b9db2SMatthias Ringwald btstack_sbc_plc.c \ 113c37cd8f3SMatthias Ringwald btstack_sbc_decoder_bluedroid.c \ 114fcb08cdbSMilanka Ringwald 1154f0d422dSMilanka RingwaldSBC_ENCODER += \ 116c37cd8f3SMatthias Ringwald btstack_sbc_encoder_bluedroid.c \ 117cd7b9db2SMatthias Ringwald hfp_msbc.c \ 1184f0d422dSMilanka Ringwald 119fbc7c9f2SMilanka RingwaldCVSD_PLC = \ 120cd7b9db2SMatthias Ringwald btstack_cvsd_plc.c \ 121fbc7c9f2SMilanka Ringwald 122f40f8caeSMatthias RingwaldAVDTP += \ 123f40f8caeSMatthias Ringwald avdtp_util.c \ 124f40f8caeSMatthias Ringwald avdtp.c \ 125f40f8caeSMatthias Ringwald avdtp_initiator.c \ 126f40f8caeSMatthias Ringwald avdtp_acceptor.c \ 127f40f8caeSMatthias Ringwald avdtp_source.c \ 128f40f8caeSMatthias Ringwald avdtp_sink.c \ 129f40f8caeSMatthias Ringwald a2dp_source.c \ 130f40f8caeSMatthias Ringwald a2dp_sink.c \ 131f40f8caeSMatthias Ringwald btstack_ring_buffer.c \ 132f40f8caeSMatthias Ringwald 133f40f8caeSMatthias RingwaldHXCMOD_PLAYER = \ 13460da6912SMatthias Ringwald hxcmod.c \ 13560da6912SMatthias Ringwald nao-deceased_by_disease.c \ 136fbc7c9f2SMilanka Ringwald 137*cf862b36SMatthias RingwaldMESH = \ 138*cf862b36SMatthias Ringwald mesh.c \ 139*cf862b36SMatthias Ringwald mesh_access.c \ 140*cf862b36SMatthias Ringwald mesh_configuration_server.c \ 141*cf862b36SMatthias Ringwald mesh_foundation.c \ 142*cf862b36SMatthias Ringwald mesh_keys.c \ 143*cf862b36SMatthias Ringwald mesh_virtual_addresses.c \ 144*cf862b36SMatthias Ringwald mesh_peer.c \ 145*cf862b36SMatthias Ringwald mesh_proxy.c \ 146*cf862b36SMatthias Ringwald provisioning.c \ 147*cf862b36SMatthias Ringwald provisioning_device.c \ 148*cf862b36SMatthias Ringwald provisioning_provisioner.c \ 149*cf862b36SMatthias Ringwald mesh_generic_server.c \ 150*cf862b36SMatthias Ringwald mesh_iv_index_seq_number.c \ 151*cf862b36SMatthias Ringwald adv_bearer.c \ 152*cf862b36SMatthias Ringwald beacon.c \ 153*cf862b36SMatthias Ringwald gatt_bearer.c \ 154*cf862b36SMatthias Ringwald mesh_crypto.c \ 155*cf862b36SMatthias Ringwald mesh_lower_transport.c \ 156*cf862b36SMatthias Ringwald mesh_network.c \ 157*cf862b36SMatthias Ringwald mesh_node.c \ 158*cf862b36SMatthias Ringwald mesh_upper_transport.c \ 159*cf862b36SMatthias Ringwald pb_adv.c \ 160*cf862b36SMatthias Ringwald pb_gatt.c \ 161*cf862b36SMatthias Ringwald mesh_provisioning_service_server.c \ 162*cf862b36SMatthias Ringwald mesh_proxy_service_server.c \ 163*cf862b36SMatthias Ringwald 164bdc352b1SMatthias Ringwald# List of General Examples without Bluetooth 165bdc352b1SMatthias Ringwald 166bdc352b1SMatthias RingwaldEXAMPLES_GENERAL = \ 1679eddf5e8SMatthias Ringwald audio_duplex \ 168bdc352b1SMatthias Ringwald led_counter \ 169bdc352b1SMatthias Ringwald mod_player \ 170bdc352b1SMatthias Ringwald sine_player \ 171bdc352b1SMatthias Ringwald 172bdc352b1SMatthias Ringwald# List of Examples that only use Bluetooth BR/EDR = Classic 173bdc352b1SMatthias Ringwald 174bdc352b1SMatthias RingwaldEXAMPLES_CLASSIC_ONLY = \ 1759f951df8SMilanka Ringwald a2dp_sink_demo \ 1763fb2c90bSMilanka Ringwald a2dp_source_demo \ 177a796c06fSMilanka Ringwald avrcp_browsing_client \ 178486d2354SMatthias Ringwald dut_mode_classic \ 179bcf00d8fSMatthias Ringwald gap_dedicated_bonding \ 180bcf00d8fSMatthias Ringwald gap_inquiry \ 181caa3fd52SMatthias Ringwald gap_link_keys \ 1823fb2c90bSMilanka Ringwald hfp_ag_demo \ 1833fb2c90bSMilanka Ringwald hfp_hf_demo \ 1842d05904dSMatthias Ringwald hid_host_demo \ 1852fa56ea6SMatthias Ringwald hid_keyboard_demo \ 186aa29f587SMatthias Ringwald hid_mouse_demo \ 1873fb2c90bSMilanka Ringwald hsp_ag_demo \ 1883fb2c90bSMilanka Ringwald hsp_hs_demo \ 1893fb2c90bSMilanka Ringwald pbap_client_demo \ 190bcf00d8fSMatthias Ringwald sdp_bnep_query \ 191bcf00d8fSMatthias Ringwald sdp_general_query \ 192bcf00d8fSMatthias Ringwald sdp_rfcomm_query \ 193bcf00d8fSMatthias Ringwald spp_counter \ 194bcf00d8fSMatthias Ringwald spp_streamer \ 195cee62800SMatthias Ringwald spp_streamer_client \ 196*cf862b36SMatthias Ringwald ublox_spp_le_counter \ 197*cf862b36SMatthias Ringwald mesh_node_demo \ 198bcf00d8fSMatthias Ringwald 199bdc352b1SMatthias Ringwald# List of Examples that only use Bluetooth LE 200bdc352b1SMatthias Ringwald 201bdc352b1SMatthias RingwaldEXAMPLES_LE_ONLY= \ 202bcf00d8fSMatthias Ringwald ancs_client_demo \ 203bdc352b1SMatthias Ringwald att_delayed_response \ 204ebdf3c68SMilanka Ringwald gap_le_advertisements \ 205bcf00d8fSMatthias Ringwald gatt_battery_query \ 206bcf00d8fSMatthias Ringwald gatt_browser \ 207bdc352b1SMatthias Ringwald gatt_counter \ 208bdc352b1SMatthias Ringwald gatt_streamer_server \ 209ebdf3c68SMilanka Ringwald hog_keyboard_demo \ 210ebdf3c68SMilanka Ringwald hog_mouse_demo \ 2111add4db5SMatthias Ringwald le_data_channel_client \ 2121add4db5SMatthias Ringwald le_data_channel_server \ 213c8f97be6SMatthias Ringwald le_streamer_client \ 214ebdf3c68SMilanka Ringwald nordic_spp_le_counter \ 215ebdf3c68SMilanka Ringwald nordic_spp_le_streamer \ 2167c485f8bSMatthias Ringwald sm_pairing_central \ 217ebdf3c68SMilanka Ringwald sm_pairing_peripheral \ 218bdc352b1SMatthias Ringwald spp_and_gatt_counter \ 219733ac1e8SMilanka Ringwald ublox_spp_le_counter \ 220bcf00d8fSMatthias Ringwald 221bdc352b1SMatthias Ringwald# List of Examples that use Bluetooth BR/EDR/LE = Dual Mode 222bdc352b1SMatthias Ringwald 223bdc352b1SMatthias RingwaldEXAMPLES_DUAL_MODE= \ 224bdc352b1SMatthias Ringwald gatt_counter \ 225bdc352b1SMatthias Ringwald gatt_streamer_server \ 226bdc352b1SMatthias Ringwald spp_and_gatt_counter \ 227bdc352b1SMatthias Ringwald spp_and_gatt_streamer \ 228bdc352b1SMatthias Ringwald 229bdc352b1SMatthias Ringwald# List of GATT files used by either LE_ONLY or DUAL_MODE examples 230bdc352b1SMatthias Ringwald 231bdc352b1SMatthias RingwaldEXAMPLES_GATT_FILES = \ 232bdc352b1SMatthias Ringwald att_delayed_response.gatt \ 233bdc352b1SMatthias Ringwald ancs_client_demo.gatt \ 234bdc352b1SMatthias Ringwald gatt_battery_query.gatt \ 235bdc352b1SMatthias Ringwald gatt_browser.gatt \ 236bdc352b1SMatthias Ringwald gatt_counter.gatt \ 237bdc352b1SMatthias Ringwald gatt_streamer_server.gatt \ 238bdc352b1SMatthias Ringwald hog_keyboard_demo.gatt \ 239bdc352b1SMatthias Ringwald hog_mouse_demo.gatt \ 240bdc352b1SMatthias Ringwald le_data_channel_server.gatt \ 241bdc352b1SMatthias Ringwald nordic_spp_le_counter.gatt \ 242bdc352b1SMatthias Ringwald nordic_spp_le_streamer.gatt \ 243bdc352b1SMatthias Ringwald sm_pairing_central.gatt \ 244bdc352b1SMatthias Ringwald sm_pairing_peripheral.gatt \ 245bdc352b1SMatthias Ringwald spp_and_gatt_counter.gatt \ 246bdc352b1SMatthias Ringwald spp_and_gatt_streamer.gatt \ 247bdc352b1SMatthias Ringwald ublox_spp_le_counter.gatt \ 248bdc352b1SMatthias Ringwald 249bdc352b1SMatthias Ringwald# .h for .gatt 250bdc352b1SMatthias RingwaldEXAMPLES_GATT_H_FILES = $(EXAMPLES_GATT_FILES:.gatt=.h) 251bdc352b1SMatthias Ringwald 252bcf00d8fSMatthias Ringwald# .o for .c 253bcf00d8fSMatthias RingwaldCORE_OBJ = $(CORE:.c=.o) 254bcf00d8fSMatthias RingwaldCOMMON_OBJ = $(COMMON:.c=.o) 2553a18db10SMatthias RingwaldCLASSIC_OBJ = $(CLASSIC:.c=.o) 256bcf00d8fSMatthias RingwaldATT_OBJ = $(ATT:.c=.o) 257bcf00d8fSMatthias RingwaldGATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o) 258bcf00d8fSMatthias RingwaldGATT_SERVER_OBJ = $(GATT_SERVER:.c=.o) 259bcf00d8fSMatthias RingwaldPAN_OBJ = $(PAN:.c=.o) 260fcb08cdbSMilanka RingwaldSBC_DECODER_OBJ = $(SBC_DECODER:.c=.o) 261fcb08cdbSMilanka RingwaldSBC_ENCODER_OBJ = $(SBC_ENCODER:.c=.o) 262fbc7c9f2SMilanka RingwaldCVSD_PLC_OBJ = $(CVSD_PLC:.c=.o) 263f40f8caeSMatthias RingwaldAVDTP_OBJ = $(AVDTP:.c=.o) 264f40f8caeSMatthias RingwaldHXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o) 26597dc5e69SMatthias RingwaldLWIP_OBJ = $(LWIP_SRC:.c=.o) 266*cf862b36SMatthias RingwaldMESH_OBJ = $(MESH:.c=.o) 267bcf00d8fSMatthias Ringwald 268bcf00d8fSMatthias Ringwalddefault_target: all 269bcf00d8fSMatthias Ringwald 270bcf00d8fSMatthias Ringwald# compile .gatt descriptions 271fbf7b2f3SMatthias Ringwald%.h: %.gatt 272d7ee901aSMatthias Ringwald python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@ 273bcf00d8fSMatthias Ringwald 274bcf00d8fSMatthias Ringwald# examples 27595c72533SMatthias Ringwaldant_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ant_test.c 27695c72533SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 27795c72533SMatthias Ringwald 2783a18db10SMatthias Ringwaldsdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c 279bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 280bcf00d8fSMatthias Ringwald 281c4466456SMilanka Ringwaldpbap_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} md5.o obex_iterator.o obex_message_builder.o goep_client.o yxml.o pbap_client.o pbap_client_demo.o 282f1b34e8dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 283f1b34e8dSMatthias Ringwald 2843a18db10SMatthias Ringwaldsdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c 285bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 286bcf00d8fSMatthias Ringwald 2873a18db10SMatthias Ringwaldsdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c 288bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 289bcf00d8fSMatthias Ringwald 2903a18db10SMatthias Ringwaldspp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c 291bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 292bcf00d8fSMatthias Ringwald 293fedcc363SMatthias Ringwaldatt_delayed_response: att_delayed_response.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} att_delayed_response.c 294beb20288SMatthias Ringwald ${CC} $(filter-out att_delayed_response.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2957d405bedSMatthias Ringwald 296fedcc363SMatthias Ringwaldhog_keyboard_demo: hog_keyboard_demo.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} battery_service_server.o device_information_service_server.o hids_device.o btstack_ring_buffer.o hog_keyboard_demo.c 297a4bfc4feSMatthias Ringwald ${CC} $(filter-out hog_keyboard_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 298a4bfc4feSMatthias Ringwald 299fedcc363SMatthias Ringwaldhog_mouse_demo: hog_mouse_demo.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} battery_service_server.o device_information_service_server.o hids_device.o hog_mouse_demo.c 300fbf7b2f3SMatthias Ringwald ${CC} $(filter-out hog_mouse_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 301fbf7b2f3SMatthias Ringwald 302fedcc363SMatthias Ringwaldsm_pairing_peripheral: sm_pairing_peripheral.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} sm_pairing_peripheral.c 303d7ee901aSMatthias Ringwald ${CC} $(filter-out sm_pairing_peripheral.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 304d7ee901aSMatthias Ringwald 305fedcc363SMatthias Ringwaldsm_pairing_central: sm_pairing_central.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} sm_pairing_central.o 306e5779dd2SMatthias Ringwald ${CC} $(filter-out sm_pairing_central.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 3077c485f8bSMatthias Ringwald 308bdc352b1SMatthias Ringwaldgatt_counter: gatt_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${CLASSIC_OBJ} battery_service_server.o gatt_counter.c 309bdc352b1SMatthias Ringwald ${CC} $(filter-out gatt_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 3106bee1f95SMatthias Ringwald 311bdc352b1SMatthias Ringwaldgatt_streamer_server: gatt_streamer_server.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${CLASSIC_OBJ} gatt_streamer_server.c 312bdc352b1SMatthias Ringwald ${CC} $(filter-out gatt_streamer_server.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 313bcf00d8fSMatthias Ringwald 314fedcc363SMatthias Ringwaldle_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} le_streamer_client.c 315c8f97be6SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 316c8f97be6SMatthias Ringwald 317fedcc363SMatthias Ringwaldgatt_heart_rate_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} gatt_heart_rate_client.c 3186104991bSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3196104991bSMatthias Ringwald 320bdc352b1SMatthias Ringwaldspp_and_gatt_counter: spp_and_gatt_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} spp_and_gatt_counter.c 321bdc352b1SMatthias Ringwald ${CC} $(filter-out spp_and_gatt_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 322bcf00d8fSMatthias Ringwald 323bdc352b1SMatthias Ringwaldspp_and_gatt_streamer: spp_and_gatt_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} spp_and_gatt_streamer.c 324bdc352b1SMatthias Ringwald ${CC} $(filter-out spp_and_gatt_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 3253d581950SMatthias Ringwald 326cee62800SMatthias Ringwaldspp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c 327bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 328bcf00d8fSMatthias Ringwald 32996cb50ecSMatthias Ringwaldspp_flowcontrol: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_flowcontrol.c 33096cb50ecSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 33196cb50ecSMatthias Ringwald 332cee62800SMatthias Ringwaldspp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_streamer_client.c 333bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 334bcf00d8fSMatthias Ringwald 3353a18db10SMatthias Ringwaldgap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c 336bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 337bcf00d8fSMatthias Ringwald 3381cfb383eSMatthias Ringwaldgap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c 339bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 340bcf00d8fSMatthias Ringwald 341caa3fd52SMatthias Ringwaldgap_link_keys: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_link_keys.c 342caa3fd52SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 343caa3fd52SMatthias Ringwald 3446a4fc708SMatthias Ringwaldpanu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${PAN_OBJ} panu_demo.c 345bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 346bcf00d8fSMatthias Ringwald 34797dc5e69SMatthias Ringwaldpan_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 34897dc5e69SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 34997dc5e69SMatthias Ringwald 350fedcc363SMatthias Ringwaldgatt_browser: gatt_browser.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_browser.c 351add9769eSMatthias Ringwald ${CC} $(filter-out gatt_browser.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 352bcf00d8fSMatthias Ringwald 353fedcc363SMatthias Ringwaldgatt_battery_query: gatt_battery_query.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_battery_query.c 354add9769eSMatthias Ringwald ${CC} $(filter-out gatt_battery_query.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 355bcf00d8fSMatthias Ringwald 356fedcc363SMatthias Ringwaldancs_client_demo: ancs_client_demo.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} ancs_client.c ancs_client_demo.c 357bcf00d8fSMatthias Ringwald ${CC} $(filter-out ancs_client_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 358bcf00d8fSMatthias Ringwald 359bcf00d8fSMatthias Ringwaldled_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c 360bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 361bcf00d8fSMatthias Ringwald 362fedcc363SMatthias Ringwaldgap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} gap_le_advertisements.c 363bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 364bcf00d8fSMatthias Ringwald 365dbb41bfeSMilanka Ringwaldhsp_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 366486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 367bcf00d8fSMatthias Ringwald 368dbb41bfeSMilanka Ringwaldhsp_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 369486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 370fffdd288SMatthias Ringwald 371dbb41bfeSMilanka Ringwaldhfp_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 372486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 373fffdd288SMatthias Ringwald 374dbb41bfeSMilanka Ringwaldhfp_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 375486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 376fffdd288SMatthias Ringwald 3771d5191c9SMatthias Ringwaldhid_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_hid_parser.o hid_host_demo.o 3782d05904dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3792d05904dSMatthias Ringwald 380a796c06fSMilanka Ringwaldhid_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 381486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3822fa56ea6SMatthias Ringwald 383a796c06fSMilanka Ringwaldhid_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 384486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 385aa29f587SMatthias Ringwald 38650259306SMilanka Ringwalda2dp_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 387486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 38808c0d996SMatthias Ringwald 38914e3e2c2SMilanka Ringwalda2dp_sink_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} avrcp.o avrcp_controller.o avrcp_target.o btstack_resample.o a2dp_sink_demo.c 390486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 391486d2354SMatthias Ringwald 392954cc391SMilanka Ringwaldavrcp_browsing_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} avrcp.o avrcp_controller.o avrcp_browsing_controller.o avrcp_media_item_iterator.o avrcp_browsing_client.c 393f12a3722SMilanka Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 394f12a3722SMilanka Ringwald 395486d2354SMatthias Ringwalddut_mode_classic: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} dut_mode_classic.c 396486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 397f40f8caeSMatthias Ringwald 398fedcc363SMatthias Ringwaldle_data_channel_client: ${CORE_OBJ} ${COMMON_OBJ} le_data_channel_client.c 399e69f2530SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 4001add4db5SMatthias Ringwald 401fedcc363SMatthias Ringwaldle_data_channel_server: le_data_channel_server.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} le_data_channel_server.c 402483d3461SMatthias Ringwald ${CC} $(filter-out le_data_channel_server.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 4031add4db5SMatthias Ringwald 404f8903005SMatthias Ringwaldmod_player: ${CORE_OBJ} ${COMMON_OBJ} ${HXCMOD_PLAYER_OBJ} btstack_audio.o mod_player.c 405f8903005SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 406f8903005SMatthias Ringwald 40769fa7fc6SMatthias Ringwaldsine_player: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o sine_player.c 40869fa7fc6SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 40969fa7fc6SMatthias Ringwald 4109eddf5e8SMatthias Ringwaldaudio_duplex: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o btstack_ring_buffer.o audio_duplex.c 4119eddf5e8SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 4129eddf5e8SMatthias Ringwald 413fedcc363SMatthias Ringwaldnordic_spp_le_counter: nordic_spp_le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} nordic_spp_service_server.o nordic_spp_le_counter.c 414ebdf3c68SMilanka Ringwald ${CC} $(filter-out nordic_spp_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 415ebdf3c68SMilanka Ringwald 416fedcc363SMatthias Ringwaldnordic_spp_le_streamer: nordic_spp_le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} nordic_spp_service_server.o nordic_spp_le_streamer.c 417ebdf3c68SMilanka Ringwald ${CC} $(filter-out nordic_spp_le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 418ebdf3c68SMilanka Ringwald 419fedcc363SMatthias Ringwaldublox_spp_le_counter: ublox_spp_le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} device_information_service_server.o ublox_spp_service_server.o ublox_spp_le_counter.c 420733ac1e8SMilanka Ringwald ${CC} $(filter-out ublox_spp_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 421733ac1e8SMilanka Ringwald 422*cf862b36SMatthias Ringwaldmesh_node_demo: mesh_node_demo.h ${CORE_OBJ} ${COMMON_OBJ} ${MESH_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} mesh_node_demo.o 423*cf862b36SMatthias Ringwald ${CC} $(filter-out mesh_node_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 424*cf862b36SMatthias Ringwald 425bcf00d8fSMatthias Ringwaldclean: 426bdc352b1SMatthias Ringwald rm -f ${EXAMPLES} ${EXAMPLES_GATT_H_FILES} 427bdc352b1SMatthias Ringwald rm -f *.o *.out *.hex *.exe *.wav *.sbc *.dSYM 428bcf00d8fSMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/*.o 429c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/*.o 430c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o 431bdc352b1SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/classic/*.o 432c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/*.o 433