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 6bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/example 7f40f8caeSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player 8c692d776SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc 90e5ac34fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce 100e5ac34fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder//srce 11bcf00d8fSMatthias Ringwald 12bcf00d8fSMatthias RingwaldCFLAGS += -I. 13bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/ble 14bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/classic 15bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src 16f40f8caeSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player 17c692d776SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc 180e5ac34fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include 190e5ac34fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include 2040e13339SMatthias Ringwald 2140e13339SMatthias Ringwald# for CVSD/SBC PLC 2240e13339SMatthias RingwaldLDFLAGS += -lm 2340e13339SMatthias Ringwald 24bcf00d8fSMatthias RingwaldCORE += \ 25bcf00d8fSMatthias Ringwald btstack_memory.c \ 26bcf00d8fSMatthias Ringwald btstack_linked_list.c \ 27bcf00d8fSMatthias Ringwald btstack_memory_pool.c \ 28bcf00d8fSMatthias Ringwald btstack_run_loop.c \ 29bcf00d8fSMatthias Ringwald btstack_util.c \ 30bcf00d8fSMatthias Ringwald 31bcf00d8fSMatthias RingwaldCOMMON += \ 321cfb383eSMatthias Ringwald ad_parser.c \ 33bcf00d8fSMatthias Ringwald hci.c \ 34bcf00d8fSMatthias Ringwald hci_cmd.c \ 35bcf00d8fSMatthias Ringwald hci_dump.c \ 36bcf00d8fSMatthias Ringwald l2cap.c \ 37bcf00d8fSMatthias Ringwald l2cap_signaling.c \ 38*b88bf5bfSMatthias Ringwald btstack_audio.c \ 392ef57735SMatthias Ringwald btstack_tlv.c \ 40d1a1f6a4SMatthias Ringwald btstack_crypto.c \ 412b3b87f9SMatthias Ringwald uECC.c \ 423a18db10SMatthias Ringwald 433a18db10SMatthias RingwaldCLASSIC += \ 44bcf00d8fSMatthias Ringwald btstack_link_key_db_memory.c \ 45bcf00d8fSMatthias Ringwald sdp_util.c \ 46efda0b48SMatthias Ringwald spp_server.c \ 47bcf00d8fSMatthias Ringwald rfcomm.c \ 48bcf00d8fSMatthias Ringwald bnep.c \ 49bcf00d8fSMatthias Ringwald sdp_server.c \ 50c4b3290dSMatthias Ringwald device_id_server.c \ 51bcf00d8fSMatthias Ringwald 52bcf00d8fSMatthias RingwaldSDP_CLIENT += \ 53bcf00d8fSMatthias Ringwald sdp_client.o \ 54efda0b48SMatthias Ringwald sdp_client_rfcomm.o \ 55bcf00d8fSMatthias Ringwald 56bcf00d8fSMatthias RingwaldATT += \ 57bcf00d8fSMatthias Ringwald att_dispatch.c \ 58bcf00d8fSMatthias Ringwald 59bcf00d8fSMatthias RingwaldGATT_SERVER += \ 60bcf00d8fSMatthias Ringwald att_db.c \ 61bcf00d8fSMatthias Ringwald att_server.c \ 62bcf00d8fSMatthias Ringwald 63bcf00d8fSMatthias RingwaldGATT_CLIENT += \ 64bcf00d8fSMatthias Ringwald gatt_client.c \ 65bcf00d8fSMatthias Ringwald 665b9c6aadSMatthias RingwaldSM += \ 67bcf00d8fSMatthias Ringwald sm.c \ 68bcf00d8fSMatthias Ringwald 69bcf00d8fSMatthias RingwaldPAN += \ 70bcf00d8fSMatthias Ringwald pan.c \ 71bcf00d8fSMatthias Ringwald 72faccbb29SMatthias RingwaldMBEDTLS = \ 73faccbb29SMatthias Ringwald bignum.c \ 74faccbb29SMatthias Ringwald ecp.c \ 75faccbb29SMatthias Ringwald ecp_curves.c \ 7668437d83SMatthias Ringwald sm_mbedtls_allocator.c \ 77d3bd9600SMatthias Ringwald memory_buffer_alloc.c \ 786643eff8SMatthias Ringwald platform.c \ 79faccbb29SMatthias Ringwald 800e5ac34fSMatthias Ringwald# List of files for Bluedroid SBC codec 810e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc 820e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc 83fcb08cdbSMilanka Ringwald 84fcb08cdbSMilanka RingwaldSBC_DECODER += \ 85cd7b9db2SMatthias Ringwald btstack_sbc_plc.c \ 86c37cd8f3SMatthias Ringwald btstack_sbc_decoder_bluedroid.c \ 87fcb08cdbSMilanka Ringwald 884f0d422dSMilanka RingwaldSBC_ENCODER += \ 89c37cd8f3SMatthias Ringwald btstack_sbc_encoder_bluedroid.c \ 90cd7b9db2SMatthias Ringwald hfp_msbc.c \ 914f0d422dSMilanka Ringwald 92fbc7c9f2SMilanka RingwaldCVSD_PLC = \ 93cd7b9db2SMatthias Ringwald btstack_cvsd_plc.c \ 94fbc7c9f2SMilanka Ringwald 95f40f8caeSMatthias RingwaldAVDTP += \ 96f40f8caeSMatthias Ringwald avdtp_util.c \ 97f40f8caeSMatthias Ringwald avdtp.c \ 98f40f8caeSMatthias Ringwald avdtp_initiator.c \ 99f40f8caeSMatthias Ringwald avdtp_acceptor.c \ 100f40f8caeSMatthias Ringwald avdtp_source.c \ 101f40f8caeSMatthias Ringwald avdtp_sink.c \ 102f40f8caeSMatthias Ringwald a2dp_source.c \ 103f40f8caeSMatthias Ringwald a2dp_sink.c \ 104f40f8caeSMatthias Ringwald btstack_ring_buffer.c \ 105f40f8caeSMatthias Ringwald 106f40f8caeSMatthias RingwaldHXCMOD_PLAYER = \ 107f40f8caeSMatthias Ringwald ${BTSTACK_ROOT}/3rd-party/hxcmod-player/hxcmod.c \ 108f40f8caeSMatthias Ringwald ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c \ 109fbc7c9f2SMilanka Ringwald 110bcf00d8fSMatthias RingwaldEXAMPLES = \ 1117d405bedSMatthias Ringwald att_delayed_read_response \ 1129f951df8SMilanka Ringwald a2dp_sink_demo \ 1133fb2c90bSMilanka Ringwald a2dp_source_demo \ 114bcf00d8fSMatthias Ringwald ancs_client_demo \ 115486d2354SMatthias Ringwald dut_mode_classic \ 116bcf00d8fSMatthias Ringwald gap_dedicated_bonding \ 117bcf00d8fSMatthias Ringwald gap_inquiry \ 1183fb2c90bSMilanka Ringwald gap_le_advertisements \ 119caa3fd52SMatthias Ringwald gap_link_keys \ 120bcf00d8fSMatthias Ringwald gatt_battery_query \ 121bcf00d8fSMatthias Ringwald gatt_browser \ 1226104991bSMatthias Ringwald gatt_heart_rate_client \ 1233fb2c90bSMilanka Ringwald hfp_ag_demo \ 1243fb2c90bSMilanka Ringwald hfp_hf_demo \ 1252d05904dSMatthias Ringwald hid_host_demo \ 1262fa56ea6SMatthias Ringwald hid_keyboard_demo \ 127aa29f587SMatthias Ringwald hid_mouse_demo \ 128a4bfc4feSMatthias Ringwald hog_keyboard_demo \ 129fbf7b2f3SMatthias Ringwald hog_mouse_demo \ 1303fb2c90bSMilanka Ringwald hsp_ag_demo \ 1313fb2c90bSMilanka Ringwald hsp_hs_demo \ 132bcf00d8fSMatthias Ringwald le_counter \ 133ff01079bSMatthias Ringwald le_data_channel_client \ 134ff01079bSMatthias Ringwald le_data_channel_server \ 135bcf00d8fSMatthias Ringwald le_streamer \ 136c8f97be6SMatthias Ringwald le_streamer_client \ 137bcf00d8fSMatthias Ringwald led_counter \ 138f8903005SMatthias Ringwald mod_player \ 1393fb2c90bSMilanka Ringwald pbap_client_demo \ 140bcf00d8fSMatthias Ringwald sdp_bnep_query \ 141bcf00d8fSMatthias Ringwald sdp_general_query \ 142bcf00d8fSMatthias Ringwald sdp_rfcomm_query \ 1433fb2c90bSMilanka Ringwald sm_pairing_central \ 1443fb2c90bSMilanka Ringwald sm_pairing_peripheral \ 145bcf00d8fSMatthias Ringwald spp_and_le_counter \ 1463d581950SMatthias Ringwald spp_and_le_streamer \ 147bcf00d8fSMatthias Ringwald spp_counter \ 148bcf00d8fSMatthias Ringwald spp_streamer \ 149cee62800SMatthias Ringwald spp_streamer_client \ 150bcf00d8fSMatthias Ringwald 151bcf00d8fSMatthias RingwaldEXAMPLES_USING_LE = \ 152bcf00d8fSMatthias Ringwald ancs_client_demo \ 153bcf00d8fSMatthias Ringwald gatt_battery_query \ 154bcf00d8fSMatthias Ringwald gatt_browser \ 155bcf00d8fSMatthias Ringwald le_counter \ 1561add4db5SMatthias Ringwald le_data_channel_client \ 1571add4db5SMatthias Ringwald le_data_channel_server \ 158bcf00d8fSMatthias Ringwald le_streamer \ 159c8f97be6SMatthias Ringwald le_streamer_client \ 160bcf00d8fSMatthias Ringwald spp_and_le_counter \ 161bcf00d8fSMatthias Ringwald gap_le_advertisements \ 162d7ee901aSMatthias Ringwald sm_pairing_peripheral \ 1637c485f8bSMatthias Ringwald sm_pairing_central \ 164a4bfc4feSMatthias Ringwald hog_keyboard_demo \ 165fbf7b2f3SMatthias Ringwald hog_mouse_demo \ 166bcf00d8fSMatthias Ringwald 167bcf00d8fSMatthias Ringwald# .o for .c 168bcf00d8fSMatthias RingwaldCORE_OBJ = $(CORE:.c=.o) 169bcf00d8fSMatthias RingwaldCOMMON_OBJ = $(COMMON:.c=.o) 1703a18db10SMatthias RingwaldCLASSIC_OBJ = $(CLASSIC:.c=.o) 1712b3b87f9SMatthias RingwaldSM_OBJ = $(SM:.c=.o) 172bcf00d8fSMatthias RingwaldATT_OBJ = $(ATT:.c=.o) 173bcf00d8fSMatthias RingwaldGATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o) 174bcf00d8fSMatthias RingwaldGATT_SERVER_OBJ = $(GATT_SERVER:.c=.o) 175bcf00d8fSMatthias RingwaldPAN_OBJ = $(PAN:.c=.o) 176fcb08cdbSMilanka RingwaldSBC_DECODER_OBJ = $(SBC_DECODER:.c=.o) 177fcb08cdbSMilanka RingwaldSBC_ENCODER_OBJ = $(SBC_ENCODER:.c=.o) 178fbc7c9f2SMilanka RingwaldCVSD_PLC_OBJ = $(CVSD_PLC:.c=.o) 179f40f8caeSMatthias RingwaldAVDTP_OBJ = $(AVDTP:.c=.o) 180f40f8caeSMatthias RingwaldHXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o) 181bcf00d8fSMatthias Ringwald 182bcf00d8fSMatthias Ringwalddefault_target: all 183bcf00d8fSMatthias Ringwald 184bcf00d8fSMatthias Ringwald# compile .gatt descriptions 185fbf7b2f3SMatthias Ringwald%.h: %.gatt 186d7ee901aSMatthias Ringwald python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@ 187bcf00d8fSMatthias Ringwald 188bcf00d8fSMatthias Ringwald# examples 18995c72533SMatthias Ringwaldant_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ant_test.c 19095c72533SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 19195c72533SMatthias Ringwald 1923a18db10SMatthias Ringwaldsdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c 193bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 194bcf00d8fSMatthias Ringwald 1952085ff84SMatthias Ringwaldpbap_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} obex_iterator.c goep_client.c pbap_client.c pbap_client_demo.c 196f1b34e8dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 197f1b34e8dSMatthias Ringwald 1983a18db10SMatthias Ringwaldsdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c 199bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 200bcf00d8fSMatthias Ringwald 2013a18db10SMatthias Ringwaldsdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c 202bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 203bcf00d8fSMatthias Ringwald 2043a18db10SMatthias Ringwaldspp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c 205bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 206bcf00d8fSMatthias Ringwald 2078577affdSMatthias Ringwaldle_counter: le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o le_counter.c 208bcf00d8fSMatthias Ringwald ${CC} $(filter-out le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 209bcf00d8fSMatthias Ringwald 2107d405bedSMatthias Ringwaldatt_delayed_read_response: att_delayed_read_response.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} att_delayed_read_response.c 2117d405bedSMatthias Ringwald ${CC} $(filter-out att_delayed_read_response.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2127d405bedSMatthias Ringwald 213a4bfc4feSMatthias Ringwaldhog_keyboard_demo: hog_keyboard_demo.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o device_information_service_server.o hids_device.o btstack_ring_buffer.o hog_keyboard_demo.c 214a4bfc4feSMatthias Ringwald ${CC} $(filter-out hog_keyboard_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 215a4bfc4feSMatthias Ringwald 216fbf7b2f3SMatthias Ringwaldhog_mouse_demo: hog_mouse_demo.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o device_information_service_server.o hids_device.o hog_mouse_demo.c 217fbf7b2f3SMatthias Ringwald ${CC} $(filter-out hog_mouse_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 218fbf7b2f3SMatthias Ringwald 2195b9c6aadSMatthias Ringwaldsm_pairing_peripheral: sm_pairing_peripheral.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_peripheral.c 220d7ee901aSMatthias Ringwald ${CC} $(filter-out sm_pairing_peripheral.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 221d7ee901aSMatthias Ringwald 222e5779dd2SMatthias Ringwaldsm_pairing_central: sm_pairing_central.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_central.o 223e5779dd2SMatthias Ringwald ${CC} $(filter-out sm_pairing_central.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2247c485f8bSMatthias Ringwald 2255b9c6aadSMatthias Ringwaldle_streamer: le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_streamer.c 226bcf00d8fSMatthias Ringwald ${CC} $(filter-out le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 227bcf00d8fSMatthias Ringwald 228c8f97be6SMatthias Ringwaldle_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} le_streamer_client.c 229c8f97be6SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 230c8f97be6SMatthias Ringwald 2316104991bSMatthias Ringwaldgatt_heart_rate_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} gatt_heart_rate_client.c 2326104991bSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 2336104991bSMatthias Ringwald 2345b9c6aadSMatthias Ringwaldspp_and_le_counter: spp_and_le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} spp_and_le_counter.c 235bcf00d8fSMatthias Ringwald ${CC} $(filter-out spp_and_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 236bcf00d8fSMatthias Ringwald 2373d581950SMatthias Ringwaldspp_and_le_streamer: spp_and_le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} spp_and_le_streamer.c 2383d581950SMatthias Ringwald ${CC} $(filter-out spp_and_le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2393d581950SMatthias Ringwald 240cee62800SMatthias Ringwaldspp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c 241bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 242bcf00d8fSMatthias Ringwald 243cee62800SMatthias Ringwaldspp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_streamer_client.c 244bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 245bcf00d8fSMatthias Ringwald 2463a18db10SMatthias Ringwaldgap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c 247bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 248bcf00d8fSMatthias Ringwald 2491cfb383eSMatthias Ringwaldgap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c 250bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 251bcf00d8fSMatthias Ringwald 252caa3fd52SMatthias Ringwaldgap_link_keys: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_link_keys.c 253caa3fd52SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 254caa3fd52SMatthias Ringwald 2553a18db10SMatthias Ringwaldpanu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} panu_demo.c 256bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 257bcf00d8fSMatthias Ringwald 258add9769eSMatthias Ringwaldgatt_browser: gatt_browser.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} gatt_browser.c 259add9769eSMatthias Ringwald ${CC} $(filter-out gatt_browser.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 260bcf00d8fSMatthias Ringwald 261add9769eSMatthias Ringwaldgatt_battery_query: gatt_battery_query.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} gatt_battery_query.c 262add9769eSMatthias Ringwald ${CC} $(filter-out gatt_battery_query.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 263bcf00d8fSMatthias Ringwald 2645b9c6aadSMatthias Ringwaldancs_client_demo: ancs_client_demo.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} ancs_client.c ancs_client_demo.c 265bcf00d8fSMatthias Ringwald ${CC} $(filter-out ancs_client_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 266bcf00d8fSMatthias Ringwald 267bcf00d8fSMatthias Ringwaldled_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c 268bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 269bcf00d8fSMatthias Ringwald 2700c92bcc6SMatthias Ringwaldgap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} gap_le_advertisements.c 271bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 272bcf00d8fSMatthias Ringwald 273dbb41bfeSMilanka 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 274486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 275bcf00d8fSMatthias Ringwald 276dbb41bfeSMilanka 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 277486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 278fffdd288SMatthias Ringwald 279dbb41bfeSMilanka 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 280486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 281fffdd288SMatthias Ringwald 282dbb41bfeSMilanka 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 283486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 284fffdd288SMatthias Ringwald 2851d5191c9SMatthias Ringwaldhid_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_hid_parser.o hid_host_demo.o 2862d05904dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 2872d05904dSMatthias Ringwald 2882fa56ea6SMatthias Ringwaldhid_keyboard_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o hid_keyboard_demo.o 289486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 2902fa56ea6SMatthias Ringwald 291aa29f587SMatthias Ringwaldhid_mouse_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o hid_mouse_demo.o 292486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 293aa29f587SMatthias Ringwald 294a59e4bafSMatthias Ringwalda2dp_source_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${AVDTP_OBJ} ${HXCMOD_PLAYER_OBJ} avrcp.o avrcp_target.o a2dp_source_demo.c 295486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 29608c0d996SMatthias Ringwald 297a59e4bafSMatthias Ringwalda2dp_sink_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} avrcp.o avrcp_controller.o a2dp_sink_demo.c 298486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 299486d2354SMatthias Ringwald 300954cc391SMilanka 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 301f12a3722SMilanka Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 302f12a3722SMilanka Ringwald 303486d2354SMatthias Ringwalddut_mode_classic: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} dut_mode_classic.c 304486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 305f40f8caeSMatthias Ringwald 3061add4db5SMatthias Ringwaldle_data_channel_client: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} le_data_channel_client.c 307e69f2530SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3081add4db5SMatthias Ringwald 309483d3461SMatthias Ringwaldle_data_channel_server: le_data_channel_server.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_data_channel_server.c 310483d3461SMatthias Ringwald ${CC} $(filter-out le_data_channel_server.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 3111add4db5SMatthias Ringwald 312f8903005SMatthias Ringwaldmod_player: ${CORE_OBJ} ${COMMON_OBJ} ${HXCMOD_PLAYER_OBJ} btstack_audio.o mod_player.c 313f8903005SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 314f8903005SMatthias Ringwald 315bcf00d8fSMatthias Ringwaldclean: 3163fb2c90bSMilanka Ringwald rm -f ${EXAMPLES} *_demo 317de804f9eSMilanka Ringwald rm -f *.o *.out *.hex *.exe *.wav *.sbc 318fbf7b2f3SMatthias Ringwald rm -f ancs_client_demo.h profile.h spp_and_le_counter.h le_counter.h le_streamer.h hog_keyboard_demo.h hog_mouse_demo.h 319bacdd2abSMatthias Ringwald rm -f gatt_battery_query.h gatt_browser.h sm_pairing_peripheral.h spp_and_le_streamer.h 320483d3461SMatthias Ringwald rm -f le_data_channel_server.h sm_pairing_central.h 321bcf00d8fSMatthias Ringwald rm -rf *.dSYM 322bcf00d8fSMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/*.o 323c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/*.o 324c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o 325c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/*.o 326c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/ancs_client_demo.h 327c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/profile.h 328c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/spp_and_le_counter.h 329c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/le_counter.h 330c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/le_streamer.h 331