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 \ 382ef57735SMatthias Ringwald btstack_tlv.c \ 39d1a1f6a4SMatthias Ringwald btstack_crypto.c \ 40*2b3b87f9SMatthias Ringwald uECC.c \ 413a18db10SMatthias Ringwald 423a18db10SMatthias RingwaldCLASSIC += \ 43bcf00d8fSMatthias Ringwald btstack_link_key_db_memory.c \ 44bcf00d8fSMatthias Ringwald sdp_util.c \ 45efda0b48SMatthias Ringwald spp_server.c \ 46bcf00d8fSMatthias Ringwald rfcomm.c \ 47bcf00d8fSMatthias Ringwald bnep.c \ 48bcf00d8fSMatthias Ringwald sdp_server.c \ 49c4b3290dSMatthias Ringwald device_id_server.c \ 50bcf00d8fSMatthias Ringwald 51bcf00d8fSMatthias RingwaldSDP_CLIENT += \ 52bcf00d8fSMatthias Ringwald sdp_client.o \ 53efda0b48SMatthias Ringwald sdp_client_rfcomm.o \ 54bcf00d8fSMatthias Ringwald 55bcf00d8fSMatthias RingwaldATT += \ 56bcf00d8fSMatthias Ringwald att_dispatch.c \ 57bcf00d8fSMatthias Ringwald 58bcf00d8fSMatthias RingwaldGATT_SERVER += \ 59bcf00d8fSMatthias Ringwald att_db.c \ 60bcf00d8fSMatthias Ringwald att_server.c \ 61bcf00d8fSMatthias Ringwald 62bcf00d8fSMatthias RingwaldGATT_CLIENT += \ 63bcf00d8fSMatthias Ringwald gatt_client.c \ 64bcf00d8fSMatthias Ringwald 655b9c6aadSMatthias RingwaldSM += \ 66bcf00d8fSMatthias Ringwald sm.c \ 67bcf00d8fSMatthias Ringwald 68bcf00d8fSMatthias RingwaldPAN += \ 69bcf00d8fSMatthias Ringwald pan.c \ 70bcf00d8fSMatthias Ringwald 71faccbb29SMatthias RingwaldMBEDTLS = \ 72faccbb29SMatthias Ringwald bignum.c \ 73faccbb29SMatthias Ringwald ecp.c \ 74faccbb29SMatthias Ringwald ecp_curves.c \ 7568437d83SMatthias Ringwald sm_mbedtls_allocator.c \ 76d3bd9600SMatthias Ringwald memory_buffer_alloc.c \ 776643eff8SMatthias Ringwald platform.c \ 78faccbb29SMatthias Ringwald 790e5ac34fSMatthias Ringwald# List of files for Bluedroid SBC codec 800e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc 810e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc 82fcb08cdbSMilanka Ringwald 83fcb08cdbSMilanka RingwaldSBC_DECODER += \ 84cd7b9db2SMatthias Ringwald btstack_sbc_plc.c \ 85c37cd8f3SMatthias Ringwald btstack_sbc_decoder_bluedroid.c \ 86fcb08cdbSMilanka Ringwald 874f0d422dSMilanka RingwaldSBC_ENCODER += \ 88c37cd8f3SMatthias Ringwald btstack_sbc_encoder_bluedroid.c \ 89cd7b9db2SMatthias Ringwald hfp_msbc.c \ 904f0d422dSMilanka Ringwald 91fbc7c9f2SMilanka RingwaldCVSD_PLC = \ 92cd7b9db2SMatthias Ringwald btstack_cvsd_plc.c \ 93fbc7c9f2SMilanka Ringwald 94f40f8caeSMatthias RingwaldAVDTP += \ 95f40f8caeSMatthias Ringwald avdtp_util.c \ 96f40f8caeSMatthias Ringwald avdtp.c \ 97f40f8caeSMatthias Ringwald avdtp_initiator.c \ 98f40f8caeSMatthias Ringwald avdtp_acceptor.c \ 99f40f8caeSMatthias Ringwald avdtp_source.c \ 100f40f8caeSMatthias Ringwald avdtp_sink.c \ 101f40f8caeSMatthias Ringwald a2dp_source.c \ 102f40f8caeSMatthias Ringwald a2dp_sink.c \ 103f40f8caeSMatthias Ringwald btstack_ring_buffer.c \ 104f40f8caeSMatthias Ringwald 105f40f8caeSMatthias RingwaldHXCMOD_PLAYER = \ 106f40f8caeSMatthias Ringwald ${BTSTACK_ROOT}/3rd-party/hxcmod-player/hxcmod.c \ 107f40f8caeSMatthias Ringwald ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c \ 108fbc7c9f2SMilanka Ringwald 109bcf00d8fSMatthias RingwaldEXAMPLES = \ 1107d405bedSMatthias Ringwald att_delayed_read_response \ 1119f951df8SMilanka Ringwald a2dp_sink_demo \ 1123fb2c90bSMilanka Ringwald a2dp_source_demo \ 113bcf00d8fSMatthias Ringwald ancs_client_demo \ 114486d2354SMatthias Ringwald dut_mode_classic \ 115bcf00d8fSMatthias Ringwald gap_dedicated_bonding \ 116bcf00d8fSMatthias Ringwald gap_inquiry \ 1173fb2c90bSMilanka Ringwald gap_le_advertisements \ 118caa3fd52SMatthias Ringwald gap_link_keys \ 119bcf00d8fSMatthias Ringwald gatt_battery_query \ 120bcf00d8fSMatthias Ringwald gatt_browser \ 1216104991bSMatthias Ringwald gatt_heart_rate_client \ 1223fb2c90bSMilanka Ringwald hfp_ag_demo \ 1233fb2c90bSMilanka Ringwald hfp_hf_demo \ 1242d05904dSMatthias Ringwald hid_host_demo \ 1252fa56ea6SMatthias Ringwald hid_keyboard_demo \ 126aa29f587SMatthias Ringwald hid_mouse_demo \ 127a4bfc4feSMatthias Ringwald hog_keyboard_demo \ 128fbf7b2f3SMatthias Ringwald hog_mouse_demo \ 1293fb2c90bSMilanka Ringwald hsp_ag_demo \ 1303fb2c90bSMilanka Ringwald hsp_hs_demo \ 131bcf00d8fSMatthias Ringwald le_counter \ 132ff01079bSMatthias Ringwald le_data_channel_client \ 133ff01079bSMatthias Ringwald le_data_channel_server \ 134bcf00d8fSMatthias Ringwald le_streamer \ 135c8f97be6SMatthias Ringwald le_streamer_client \ 136bcf00d8fSMatthias Ringwald led_counter \ 1373fb2c90bSMilanka Ringwald pbap_client_demo \ 138bcf00d8fSMatthias Ringwald sdp_bnep_query \ 139bcf00d8fSMatthias Ringwald sdp_general_query \ 140bcf00d8fSMatthias Ringwald sdp_rfcomm_query \ 1413fb2c90bSMilanka Ringwald sm_pairing_central \ 1423fb2c90bSMilanka Ringwald sm_pairing_peripheral \ 143bcf00d8fSMatthias Ringwald spp_and_le_counter \ 1443d581950SMatthias Ringwald spp_and_le_streamer \ 145bcf00d8fSMatthias Ringwald spp_counter \ 146bcf00d8fSMatthias Ringwald spp_streamer \ 147cee62800SMatthias Ringwald spp_streamer_client \ 148bcf00d8fSMatthias Ringwald 149bcf00d8fSMatthias RingwaldEXAMPLES_USING_LE = \ 150bcf00d8fSMatthias Ringwald ancs_client_demo \ 151bcf00d8fSMatthias Ringwald gatt_battery_query \ 152bcf00d8fSMatthias Ringwald gatt_browser \ 153bcf00d8fSMatthias Ringwald le_counter \ 1541add4db5SMatthias Ringwald le_data_channel_client \ 1551add4db5SMatthias Ringwald le_data_channel_server \ 156bcf00d8fSMatthias Ringwald le_streamer \ 157c8f97be6SMatthias Ringwald le_streamer_client \ 158bcf00d8fSMatthias Ringwald spp_and_le_counter \ 159bcf00d8fSMatthias Ringwald gap_le_advertisements \ 160d7ee901aSMatthias Ringwald sm_pairing_peripheral \ 1617c485f8bSMatthias Ringwald sm_pairing_central \ 162a4bfc4feSMatthias Ringwald hog_keyboard_demo \ 163fbf7b2f3SMatthias Ringwald hog_mouse_demo \ 164bcf00d8fSMatthias Ringwald 165bcf00d8fSMatthias Ringwald# .o for .c 166bcf00d8fSMatthias RingwaldCORE_OBJ = $(CORE:.c=.o) 167bcf00d8fSMatthias RingwaldCOMMON_OBJ = $(COMMON:.c=.o) 1683a18db10SMatthias RingwaldCLASSIC_OBJ = $(CLASSIC:.c=.o) 169*2b3b87f9SMatthias RingwaldSM_OBJ = $(SM:.c=.o) 170bcf00d8fSMatthias RingwaldATT_OBJ = $(ATT:.c=.o) 171bcf00d8fSMatthias RingwaldGATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o) 172bcf00d8fSMatthias RingwaldGATT_SERVER_OBJ = $(GATT_SERVER:.c=.o) 173bcf00d8fSMatthias RingwaldPAN_OBJ = $(PAN:.c=.o) 174fcb08cdbSMilanka RingwaldSBC_DECODER_OBJ = $(SBC_DECODER:.c=.o) 175fcb08cdbSMilanka RingwaldSBC_ENCODER_OBJ = $(SBC_ENCODER:.c=.o) 176fbc7c9f2SMilanka RingwaldCVSD_PLC_OBJ = $(CVSD_PLC:.c=.o) 177f40f8caeSMatthias RingwaldAVDTP_OBJ = $(AVDTP:.c=.o) 178f40f8caeSMatthias RingwaldHXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o) 179bcf00d8fSMatthias Ringwald 180bcf00d8fSMatthias Ringwalddefault_target: all 181bcf00d8fSMatthias Ringwald 182bcf00d8fSMatthias Ringwald# compile .gatt descriptions 183fbf7b2f3SMatthias Ringwald%.h: %.gatt 184d7ee901aSMatthias Ringwald python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@ 185bcf00d8fSMatthias Ringwald 186bcf00d8fSMatthias Ringwald# examples 18795c72533SMatthias Ringwaldant_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ant_test.c 18895c72533SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 18995c72533SMatthias Ringwald 1903a18db10SMatthias Ringwaldsdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c 191bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 192bcf00d8fSMatthias Ringwald 1932085ff84SMatthias Ringwaldpbap_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} obex_iterator.c goep_client.c pbap_client.c pbap_client_demo.c 194f1b34e8dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 195f1b34e8dSMatthias Ringwald 1963a18db10SMatthias Ringwaldsdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c 197bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 198bcf00d8fSMatthias Ringwald 1993a18db10SMatthias Ringwaldsdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c 200bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 201bcf00d8fSMatthias Ringwald 2023a18db10SMatthias Ringwaldspp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c 203bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 204bcf00d8fSMatthias Ringwald 2058577affdSMatthias Ringwaldle_counter: le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o le_counter.c 206bcf00d8fSMatthias Ringwald ${CC} $(filter-out le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 207bcf00d8fSMatthias Ringwald 2087d405bedSMatthias 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 2097d405bedSMatthias Ringwald ${CC} $(filter-out att_delayed_read_response.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2107d405bedSMatthias Ringwald 211a4bfc4feSMatthias 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 212a4bfc4feSMatthias Ringwald ${CC} $(filter-out hog_keyboard_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 213a4bfc4feSMatthias Ringwald 214fbf7b2f3SMatthias 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 215fbf7b2f3SMatthias Ringwald ${CC} $(filter-out hog_mouse_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 216fbf7b2f3SMatthias Ringwald 2175b9c6aadSMatthias Ringwaldsm_pairing_peripheral: sm_pairing_peripheral.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_peripheral.c 218d7ee901aSMatthias Ringwald ${CC} $(filter-out sm_pairing_peripheral.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 219d7ee901aSMatthias Ringwald 220e5779dd2SMatthias Ringwaldsm_pairing_central: sm_pairing_central.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_central.o 221e5779dd2SMatthias Ringwald ${CC} $(filter-out sm_pairing_central.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2227c485f8bSMatthias Ringwald 2235b9c6aadSMatthias Ringwaldle_streamer: le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_streamer.c 224bcf00d8fSMatthias Ringwald ${CC} $(filter-out le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 225bcf00d8fSMatthias Ringwald 226c8f97be6SMatthias Ringwaldle_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} le_streamer_client.c 227c8f97be6SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 228c8f97be6SMatthias Ringwald 2296104991bSMatthias Ringwaldgatt_heart_rate_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} gatt_heart_rate_client.c 2306104991bSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 2316104991bSMatthias Ringwald 2325b9c6aadSMatthias 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 233bcf00d8fSMatthias Ringwald ${CC} $(filter-out spp_and_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 234bcf00d8fSMatthias Ringwald 2353d581950SMatthias 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 2363d581950SMatthias Ringwald ${CC} $(filter-out spp_and_le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2373d581950SMatthias Ringwald 238cee62800SMatthias Ringwaldspp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c 239bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 240bcf00d8fSMatthias Ringwald 241cee62800SMatthias Ringwaldspp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_streamer_client.c 242bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 243bcf00d8fSMatthias Ringwald 2443a18db10SMatthias Ringwaldgap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c 245bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 246bcf00d8fSMatthias Ringwald 2471cfb383eSMatthias Ringwaldgap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c 248bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 249bcf00d8fSMatthias Ringwald 250caa3fd52SMatthias Ringwaldgap_link_keys: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_link_keys.c 251caa3fd52SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 252caa3fd52SMatthias Ringwald 2533a18db10SMatthias Ringwaldpanu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} panu_demo.c 254bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 255bcf00d8fSMatthias Ringwald 256add9769eSMatthias Ringwaldgatt_browser: gatt_browser.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} gatt_browser.c 257add9769eSMatthias Ringwald ${CC} $(filter-out gatt_browser.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 258bcf00d8fSMatthias Ringwald 259add9769eSMatthias 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 260add9769eSMatthias Ringwald ${CC} $(filter-out gatt_battery_query.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 261bcf00d8fSMatthias Ringwald 2625b9c6aadSMatthias 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 263bcf00d8fSMatthias Ringwald ${CC} $(filter-out ancs_client_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 264bcf00d8fSMatthias Ringwald 265bcf00d8fSMatthias Ringwaldled_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c 266bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 267bcf00d8fSMatthias Ringwald 2680c92bcc6SMatthias Ringwaldgap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} gap_le_advertisements.c 269bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 270bcf00d8fSMatthias Ringwald 271dbb41bfeSMilanka 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 272486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 273bcf00d8fSMatthias Ringwald 274dbb41bfeSMilanka 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 275486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 276fffdd288SMatthias Ringwald 277dbb41bfeSMilanka 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 278486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 279fffdd288SMatthias Ringwald 280dbb41bfeSMilanka 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 281486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 282fffdd288SMatthias Ringwald 2831d5191c9SMatthias Ringwaldhid_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_hid_parser.o hid_host_demo.o 2842d05904dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 2852d05904dSMatthias Ringwald 2862fa56ea6SMatthias Ringwaldhid_keyboard_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o hid_keyboard_demo.o 287486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 2882fa56ea6SMatthias Ringwald 289aa29f587SMatthias Ringwaldhid_mouse_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o hid_mouse_demo.o 290486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 291aa29f587SMatthias Ringwald 292a59e4bafSMatthias 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 293486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 29408c0d996SMatthias Ringwald 295a59e4bafSMatthias 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 296486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 297486d2354SMatthias Ringwald 298954cc391SMilanka 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 299f12a3722SMilanka Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 300f12a3722SMilanka Ringwald 301486d2354SMatthias Ringwalddut_mode_classic: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} dut_mode_classic.c 302486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 303f40f8caeSMatthias Ringwald 3041add4db5SMatthias Ringwaldle_data_channel_client: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} le_data_channel_client.c 305e69f2530SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3061add4db5SMatthias Ringwald 307483d3461SMatthias 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 308483d3461SMatthias Ringwald ${CC} $(filter-out le_data_channel_server.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 3091add4db5SMatthias Ringwald 310bcf00d8fSMatthias Ringwaldclean: 3113fb2c90bSMilanka Ringwald rm -f ${EXAMPLES} *_demo 312de804f9eSMilanka Ringwald rm -f *.o *.out *.hex *.exe *.wav *.sbc 313fbf7b2f3SMatthias 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 314bacdd2abSMatthias Ringwald rm -f gatt_battery_query.h gatt_browser.h sm_pairing_peripheral.h spp_and_le_streamer.h 315483d3461SMatthias Ringwald rm -f le_data_channel_server.h sm_pairing_central.h 316bcf00d8fSMatthias Ringwald rm -rf *.dSYM 317bcf00d8fSMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/*.o 318c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/*.o 319c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o 320c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/*.o 321c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/ancs_client_demo.h 322c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/profile.h 323c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/spp_and_le_counter.h 324c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/le_counter.h 325c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/le_streamer.h 326