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 760da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce 860da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/srce 9f40f8caeSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player 1060da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player 1160da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods 12c1bc0b8eSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/md5 13c692d776SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc 14e03b79abSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/yxml 15bcf00d8fSMatthias Ringwald 16bcf00d8fSMatthias RingwaldCFLAGS += -I. 17bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/ble 18bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/classic 19bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src 2060da6912SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include 2160da6912SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include 22f40f8caeSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player 23c1bc0b8eSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/md5 24c692d776SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc 25e03b79abSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/yxml 2640e13339SMatthias Ringwald 2740e13339SMatthias Ringwald# for CVSD/SBC PLC 2840e13339SMatthias RingwaldLDFLAGS += -lm 2940e13339SMatthias Ringwald 30bcf00d8fSMatthias RingwaldCORE += \ 31bcf00d8fSMatthias Ringwald btstack_memory.c \ 32bcf00d8fSMatthias Ringwald btstack_linked_list.c \ 33bcf00d8fSMatthias Ringwald btstack_memory_pool.c \ 34bcf00d8fSMatthias Ringwald btstack_run_loop.c \ 35bcf00d8fSMatthias Ringwald btstack_util.c \ 36bcf00d8fSMatthias Ringwald 37bcf00d8fSMatthias RingwaldCOMMON += \ 381cfb383eSMatthias Ringwald ad_parser.c \ 39bcf00d8fSMatthias Ringwald hci.c \ 40bcf00d8fSMatthias Ringwald hci_cmd.c \ 41bcf00d8fSMatthias Ringwald hci_dump.c \ 42bcf00d8fSMatthias Ringwald l2cap.c \ 43bcf00d8fSMatthias Ringwald l2cap_signaling.c \ 44b88bf5bfSMatthias Ringwald btstack_audio.c \ 452ef57735SMatthias Ringwald btstack_tlv.c \ 46d1a1f6a4SMatthias Ringwald btstack_crypto.c \ 472b3b87f9SMatthias Ringwald uECC.c \ 483a18db10SMatthias Ringwald 493a18db10SMatthias RingwaldCLASSIC += \ 50bcf00d8fSMatthias Ringwald btstack_link_key_db_memory.c \ 51bcf00d8fSMatthias Ringwald sdp_util.c \ 52efda0b48SMatthias Ringwald spp_server.c \ 53bcf00d8fSMatthias Ringwald rfcomm.c \ 54bcf00d8fSMatthias Ringwald bnep.c \ 55bcf00d8fSMatthias Ringwald sdp_server.c \ 56c4b3290dSMatthias Ringwald device_id_server.c \ 57bcf00d8fSMatthias Ringwald 58bcf00d8fSMatthias RingwaldSDP_CLIENT += \ 59bcf00d8fSMatthias Ringwald sdp_client.o \ 60efda0b48SMatthias Ringwald sdp_client_rfcomm.o \ 61bcf00d8fSMatthias Ringwald 62bcf00d8fSMatthias RingwaldATT += \ 63bcf00d8fSMatthias Ringwald att_dispatch.c \ 64bcf00d8fSMatthias Ringwald 65bcf00d8fSMatthias RingwaldGATT_SERVER += \ 66bcf00d8fSMatthias Ringwald att_db.c \ 67bcf00d8fSMatthias Ringwald att_server.c \ 68bcf00d8fSMatthias Ringwald 69bcf00d8fSMatthias RingwaldGATT_CLIENT += \ 70bcf00d8fSMatthias Ringwald gatt_client.c \ 71bcf00d8fSMatthias Ringwald 725b9c6aadSMatthias RingwaldSM += \ 73bcf00d8fSMatthias Ringwald sm.c \ 74bcf00d8fSMatthias Ringwald 75bcf00d8fSMatthias RingwaldPAN += \ 76bcf00d8fSMatthias Ringwald pan.c \ 77bcf00d8fSMatthias Ringwald 78faccbb29SMatthias RingwaldMBEDTLS = \ 79faccbb29SMatthias Ringwald bignum.c \ 80faccbb29SMatthias Ringwald ecp.c \ 81faccbb29SMatthias Ringwald ecp_curves.c \ 8268437d83SMatthias Ringwald sm_mbedtls_allocator.c \ 83d3bd9600SMatthias Ringwald memory_buffer_alloc.c \ 846643eff8SMatthias Ringwald platform.c \ 85faccbb29SMatthias Ringwald 860e5ac34fSMatthias Ringwald# List of files for Bluedroid SBC codec 870e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc 880e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc 89fcb08cdbSMilanka Ringwald 90fcb08cdbSMilanka RingwaldSBC_DECODER += \ 91cd7b9db2SMatthias Ringwald btstack_sbc_plc.c \ 92c37cd8f3SMatthias Ringwald btstack_sbc_decoder_bluedroid.c \ 93fcb08cdbSMilanka Ringwald 944f0d422dSMilanka RingwaldSBC_ENCODER += \ 95c37cd8f3SMatthias Ringwald btstack_sbc_encoder_bluedroid.c \ 96cd7b9db2SMatthias Ringwald hfp_msbc.c \ 974f0d422dSMilanka Ringwald 98fbc7c9f2SMilanka RingwaldCVSD_PLC = \ 99cd7b9db2SMatthias Ringwald btstack_cvsd_plc.c \ 100fbc7c9f2SMilanka Ringwald 101f40f8caeSMatthias RingwaldAVDTP += \ 102f40f8caeSMatthias Ringwald avdtp_util.c \ 103f40f8caeSMatthias Ringwald avdtp.c \ 104f40f8caeSMatthias Ringwald avdtp_initiator.c \ 105f40f8caeSMatthias Ringwald avdtp_acceptor.c \ 106f40f8caeSMatthias Ringwald avdtp_source.c \ 107f40f8caeSMatthias Ringwald avdtp_sink.c \ 108f40f8caeSMatthias Ringwald a2dp_source.c \ 109f40f8caeSMatthias Ringwald a2dp_sink.c \ 110f40f8caeSMatthias Ringwald btstack_ring_buffer.c \ 111f40f8caeSMatthias Ringwald 112f40f8caeSMatthias RingwaldHXCMOD_PLAYER = \ 11360da6912SMatthias Ringwald hxcmod.c \ 11460da6912SMatthias Ringwald nao-deceased_by_disease.c \ 115fbc7c9f2SMilanka Ringwald 116bcf00d8fSMatthias RingwaldEXAMPLES = \ 117*9eddf5e8SMatthias Ringwald audio_duplex \ 1189f951df8SMilanka Ringwald a2dp_sink_demo \ 1193fb2c90bSMilanka Ringwald a2dp_source_demo \ 120bcf00d8fSMatthias Ringwald ancs_client_demo \ 121a796c06fSMilanka Ringwald att_delayed_response \ 122a796c06fSMilanka Ringwald avrcp_browsing_client \ 123486d2354SMatthias Ringwald dut_mode_classic \ 124bcf00d8fSMatthias Ringwald gap_dedicated_bonding \ 125bcf00d8fSMatthias Ringwald gap_inquiry \ 1263fb2c90bSMilanka Ringwald gap_le_advertisements \ 127caa3fd52SMatthias Ringwald gap_link_keys \ 128bcf00d8fSMatthias Ringwald gatt_battery_query \ 129bcf00d8fSMatthias Ringwald gatt_browser \ 1306104991bSMatthias Ringwald gatt_heart_rate_client \ 1313fb2c90bSMilanka Ringwald hfp_ag_demo \ 1323fb2c90bSMilanka Ringwald hfp_hf_demo \ 1332d05904dSMatthias Ringwald hid_host_demo \ 1342fa56ea6SMatthias Ringwald hid_keyboard_demo \ 135aa29f587SMatthias Ringwald hid_mouse_demo \ 136a4bfc4feSMatthias Ringwald hog_keyboard_demo \ 137fbf7b2f3SMatthias Ringwald hog_mouse_demo \ 1383fb2c90bSMilanka Ringwald hsp_ag_demo \ 1393fb2c90bSMilanka Ringwald hsp_hs_demo \ 140bcf00d8fSMatthias Ringwald le_counter \ 141ff01079bSMatthias Ringwald le_data_channel_client \ 142ff01079bSMatthias Ringwald le_data_channel_server \ 143bcf00d8fSMatthias Ringwald le_streamer \ 144c8f97be6SMatthias Ringwald le_streamer_client \ 145bcf00d8fSMatthias Ringwald led_counter \ 146f8903005SMatthias Ringwald mod_player \ 147733ac1e8SMilanka Ringwald nordic_spp_le_counter \ 148733ac1e8SMilanka Ringwald nordic_spp_le_streamer \ 1493fb2c90bSMilanka Ringwald pbap_client_demo \ 150bcf00d8fSMatthias Ringwald sdp_bnep_query \ 151bcf00d8fSMatthias Ringwald sdp_general_query \ 152bcf00d8fSMatthias Ringwald sdp_rfcomm_query \ 15369fa7fc6SMatthias Ringwald sine_player \ 1543fb2c90bSMilanka Ringwald sm_pairing_central \ 1553fb2c90bSMilanka Ringwald sm_pairing_peripheral \ 156bcf00d8fSMatthias Ringwald spp_and_le_counter \ 1573d581950SMatthias Ringwald spp_and_le_streamer \ 158bcf00d8fSMatthias Ringwald spp_counter \ 159bcf00d8fSMatthias Ringwald spp_streamer \ 160cee62800SMatthias Ringwald spp_streamer_client \ 161733ac1e8SMilanka Ringwald ublox_spp_le_counter \ 162bcf00d8fSMatthias Ringwald 163bcf00d8fSMatthias RingwaldEXAMPLES_USING_LE = \ 164bcf00d8fSMatthias Ringwald ancs_client_demo \ 165ebdf3c68SMilanka Ringwald gap_le_advertisements \ 166bcf00d8fSMatthias Ringwald gatt_battery_query \ 167bcf00d8fSMatthias Ringwald gatt_browser \ 168ebdf3c68SMilanka Ringwald hog_keyboard_demo \ 169ebdf3c68SMilanka Ringwald hog_mouse_demo \ 170bcf00d8fSMatthias Ringwald le_counter \ 1711add4db5SMatthias Ringwald le_data_channel_client \ 1721add4db5SMatthias Ringwald le_data_channel_server \ 173bcf00d8fSMatthias Ringwald le_streamer \ 174c8f97be6SMatthias Ringwald le_streamer_client \ 175ebdf3c68SMilanka Ringwald nordic_spp_le_counter \ 176ebdf3c68SMilanka Ringwald nordic_spp_le_streamer \ 1777c485f8bSMatthias Ringwald sm_pairing_central \ 178ebdf3c68SMilanka Ringwald sm_pairing_peripheral \ 179ebdf3c68SMilanka Ringwald spp_and_le_counter \ 180733ac1e8SMilanka Ringwald ublox_spp_le_counter \ 181bcf00d8fSMatthias Ringwald 182bcf00d8fSMatthias Ringwald# .o for .c 183bcf00d8fSMatthias RingwaldCORE_OBJ = $(CORE:.c=.o) 184bcf00d8fSMatthias RingwaldCOMMON_OBJ = $(COMMON:.c=.o) 1853a18db10SMatthias RingwaldCLASSIC_OBJ = $(CLASSIC:.c=.o) 1862b3b87f9SMatthias RingwaldSM_OBJ = $(SM:.c=.o) 187bcf00d8fSMatthias RingwaldATT_OBJ = $(ATT:.c=.o) 188bcf00d8fSMatthias RingwaldGATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o) 189bcf00d8fSMatthias RingwaldGATT_SERVER_OBJ = $(GATT_SERVER:.c=.o) 190bcf00d8fSMatthias RingwaldPAN_OBJ = $(PAN:.c=.o) 191fcb08cdbSMilanka RingwaldSBC_DECODER_OBJ = $(SBC_DECODER:.c=.o) 192fcb08cdbSMilanka RingwaldSBC_ENCODER_OBJ = $(SBC_ENCODER:.c=.o) 193fbc7c9f2SMilanka RingwaldCVSD_PLC_OBJ = $(CVSD_PLC:.c=.o) 194f40f8caeSMatthias RingwaldAVDTP_OBJ = $(AVDTP:.c=.o) 195f40f8caeSMatthias RingwaldHXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o) 196bcf00d8fSMatthias Ringwald 197bcf00d8fSMatthias Ringwalddefault_target: all 198bcf00d8fSMatthias Ringwald 199bcf00d8fSMatthias Ringwald# compile .gatt descriptions 200fbf7b2f3SMatthias Ringwald%.h: %.gatt 201d7ee901aSMatthias Ringwald python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@ 202bcf00d8fSMatthias Ringwald 203bcf00d8fSMatthias Ringwald# examples 20495c72533SMatthias Ringwaldant_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ant_test.c 20595c72533SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 20695c72533SMatthias Ringwald 2073a18db10SMatthias Ringwaldsdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c 208bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 209bcf00d8fSMatthias Ringwald 210e03b79abSMatthias Ringwaldpbap_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} md5.o obex_iterator.o goep_client.o yxml.o pbap_client.o pbap_client_demo.o 211f1b34e8dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 212f1b34e8dSMatthias Ringwald 2133a18db10SMatthias Ringwaldsdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c 214bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 215bcf00d8fSMatthias Ringwald 2163a18db10SMatthias Ringwaldsdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c 217bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 218bcf00d8fSMatthias Ringwald 2193a18db10SMatthias Ringwaldspp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c 220bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 221bcf00d8fSMatthias Ringwald 2228577affdSMatthias Ringwaldle_counter: le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o le_counter.c 223bcf00d8fSMatthias Ringwald ${CC} $(filter-out le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 224bcf00d8fSMatthias Ringwald 225beb20288SMatthias Ringwaldatt_delayed_response: att_delayed_response.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} att_delayed_response.c 226beb20288SMatthias Ringwald ${CC} $(filter-out att_delayed_response.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2277d405bedSMatthias Ringwald 228a4bfc4feSMatthias 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 229a4bfc4feSMatthias Ringwald ${CC} $(filter-out hog_keyboard_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 230a4bfc4feSMatthias Ringwald 231fbf7b2f3SMatthias 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 232fbf7b2f3SMatthias Ringwald ${CC} $(filter-out hog_mouse_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 233fbf7b2f3SMatthias Ringwald 2345b9c6aadSMatthias Ringwaldsm_pairing_peripheral: sm_pairing_peripheral.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_peripheral.c 235d7ee901aSMatthias Ringwald ${CC} $(filter-out sm_pairing_peripheral.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 236d7ee901aSMatthias Ringwald 237e5779dd2SMatthias Ringwaldsm_pairing_central: sm_pairing_central.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_central.o 238e5779dd2SMatthias Ringwald ${CC} $(filter-out sm_pairing_central.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2397c485f8bSMatthias Ringwald 2405b9c6aadSMatthias Ringwaldle_streamer: le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_streamer.c 241bcf00d8fSMatthias Ringwald ${CC} $(filter-out le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 242bcf00d8fSMatthias Ringwald 243c8f97be6SMatthias Ringwaldle_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} le_streamer_client.c 244c8f97be6SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 245c8f97be6SMatthias Ringwald 2466104991bSMatthias Ringwaldgatt_heart_rate_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} gatt_heart_rate_client.c 2476104991bSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 2486104991bSMatthias Ringwald 2495b9c6aadSMatthias 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 250bcf00d8fSMatthias Ringwald ${CC} $(filter-out spp_and_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 251bcf00d8fSMatthias Ringwald 2523d581950SMatthias 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 2533d581950SMatthias Ringwald ${CC} $(filter-out spp_and_le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2543d581950SMatthias Ringwald 255cee62800SMatthias Ringwaldspp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c 256bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 257bcf00d8fSMatthias Ringwald 25896cb50ecSMatthias Ringwaldspp_flowcontrol: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_flowcontrol.c 25996cb50ecSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 26096cb50ecSMatthias Ringwald 261cee62800SMatthias Ringwaldspp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_streamer_client.c 262bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 263bcf00d8fSMatthias Ringwald 2643a18db10SMatthias Ringwaldgap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c 265bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 266bcf00d8fSMatthias Ringwald 2671cfb383eSMatthias Ringwaldgap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c 268bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 269bcf00d8fSMatthias Ringwald 270caa3fd52SMatthias Ringwaldgap_link_keys: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_link_keys.c 271caa3fd52SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 272caa3fd52SMatthias Ringwald 2733a18db10SMatthias Ringwaldpanu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} panu_demo.c 274bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 275bcf00d8fSMatthias Ringwald 276add9769eSMatthias Ringwaldgatt_browser: gatt_browser.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} gatt_browser.c 277add9769eSMatthias Ringwald ${CC} $(filter-out gatt_browser.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 278bcf00d8fSMatthias Ringwald 279add9769eSMatthias 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 280add9769eSMatthias Ringwald ${CC} $(filter-out gatt_battery_query.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 281bcf00d8fSMatthias Ringwald 2825b9c6aadSMatthias 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 283bcf00d8fSMatthias Ringwald ${CC} $(filter-out ancs_client_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 284bcf00d8fSMatthias Ringwald 285bcf00d8fSMatthias Ringwaldled_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c 286bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 287bcf00d8fSMatthias Ringwald 2880c92bcc6SMatthias Ringwaldgap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} gap_le_advertisements.c 289bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 290bcf00d8fSMatthias Ringwald 291dbb41bfeSMilanka 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 292486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 293bcf00d8fSMatthias Ringwald 294dbb41bfeSMilanka 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 295486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 296fffdd288SMatthias Ringwald 297dbb41bfeSMilanka 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 298486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 299fffdd288SMatthias Ringwald 300dbb41bfeSMilanka 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 301486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 302fffdd288SMatthias Ringwald 3031d5191c9SMatthias Ringwaldhid_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_hid_parser.o hid_host_demo.o 3042d05904dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3052d05904dSMatthias Ringwald 306a796c06fSMilanka 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 307486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3082fa56ea6SMatthias Ringwald 309a796c06fSMilanka 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 310486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 311aa29f587SMatthias Ringwald 31250259306SMilanka 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 313486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 31408c0d996SMatthias Ringwald 31514e3e2c2SMilanka 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 316486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 317486d2354SMatthias Ringwald 318954cc391SMilanka 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 319f12a3722SMilanka Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 320f12a3722SMilanka Ringwald 321486d2354SMatthias Ringwalddut_mode_classic: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} dut_mode_classic.c 322486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 323f40f8caeSMatthias Ringwald 3241add4db5SMatthias Ringwaldle_data_channel_client: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} le_data_channel_client.c 325e69f2530SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3261add4db5SMatthias Ringwald 327483d3461SMatthias 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 328483d3461SMatthias Ringwald ${CC} $(filter-out le_data_channel_server.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 3291add4db5SMatthias Ringwald 330f8903005SMatthias Ringwaldmod_player: ${CORE_OBJ} ${COMMON_OBJ} ${HXCMOD_PLAYER_OBJ} btstack_audio.o mod_player.c 331f8903005SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 332f8903005SMatthias Ringwald 33369fa7fc6SMatthias Ringwaldsine_player: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o sine_player.c 33469fa7fc6SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 33569fa7fc6SMatthias Ringwald 336*9eddf5e8SMatthias Ringwaldaudio_duplex: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o btstack_ring_buffer.o audio_duplex.c 337*9eddf5e8SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 338*9eddf5e8SMatthias Ringwald 339ebdf3c68SMilanka Ringwaldnordic_spp_le_counter: nordic_spp_le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} nordic_spp_service_server.o nordic_spp_le_counter.c 340ebdf3c68SMilanka Ringwald ${CC} $(filter-out nordic_spp_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 341ebdf3c68SMilanka Ringwald 342ebdf3c68SMilanka Ringwaldnordic_spp_le_streamer: nordic_spp_le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} nordic_spp_service_server.o nordic_spp_le_streamer.c 343ebdf3c68SMilanka Ringwald ${CC} $(filter-out nordic_spp_le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 344ebdf3c68SMilanka Ringwald 34516e3e4afSMilanka Ringwaldublox_spp_le_counter: ublox_spp_le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} device_information_service_server.o ublox_spp_service_server.o ublox_spp_le_counter.c 346733ac1e8SMilanka Ringwald ${CC} $(filter-out ublox_spp_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 347733ac1e8SMilanka Ringwald 348bcf00d8fSMatthias Ringwaldclean: 3493fb2c90bSMilanka Ringwald rm -f ${EXAMPLES} *_demo 350de804f9eSMilanka Ringwald rm -f *.o *.out *.hex *.exe *.wav *.sbc 351fbf7b2f3SMatthias 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 352bacdd2abSMatthias Ringwald rm -f gatt_battery_query.h gatt_browser.h sm_pairing_peripheral.h spp_and_le_streamer.h 353483d3461SMatthias Ringwald rm -f le_data_channel_server.h sm_pairing_central.h 354ba7944beSMilanka Ringwald rm -f nordic_spp_le_counter.h nordic_spp_le_streamer.h nordic_spp_le_counter nordic_spp_le_streamer 355733ac1e8SMilanka Ringwald rm -f ublox_spp_le_counter.h ublox_spp_le_counter 356ba7944beSMilanka Ringwald rm -f le_streamer_and_counter_client.h le_streamer_and_counter_client 357ba7944beSMilanka Ringwald rm -f sco_output.msbc sco_input.msbc 358bcf00d8fSMatthias Ringwald rm -rf *.dSYM 359bcf00d8fSMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/*.o 360c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/*.o 361c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o 362c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/*.o 363c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/ancs_client_demo.h 364c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/profile.h 365c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/spp_and_le_counter.h 366c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/le_counter.h 367c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/le_streamer.h 368