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 8c1bc0b8eSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/md5 9c692d776SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc 100e5ac34fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce 110e5ac34fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder//srce 12e03b79abSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/yxml 13bcf00d8fSMatthias Ringwald 14bcf00d8fSMatthias RingwaldCFLAGS += -I. 15bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/ble 16bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/classic 17bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src 18f40f8caeSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player 19c1bc0b8eSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/md5 20c692d776SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc 210e5ac34fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include 220e5ac34fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include 23e03b79abSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/yxml 2440e13339SMatthias Ringwald 2540e13339SMatthias Ringwald# for CVSD/SBC PLC 2640e13339SMatthias RingwaldLDFLAGS += -lm 2740e13339SMatthias Ringwald 28bcf00d8fSMatthias RingwaldCORE += \ 29bcf00d8fSMatthias Ringwald btstack_memory.c \ 30bcf00d8fSMatthias Ringwald btstack_linked_list.c \ 31bcf00d8fSMatthias Ringwald btstack_memory_pool.c \ 32bcf00d8fSMatthias Ringwald btstack_run_loop.c \ 33bcf00d8fSMatthias Ringwald btstack_util.c \ 34bcf00d8fSMatthias Ringwald 35bcf00d8fSMatthias RingwaldCOMMON += \ 361cfb383eSMatthias Ringwald ad_parser.c \ 37bcf00d8fSMatthias Ringwald hci.c \ 38bcf00d8fSMatthias Ringwald hci_cmd.c \ 39bcf00d8fSMatthias Ringwald hci_dump.c \ 40bcf00d8fSMatthias Ringwald l2cap.c \ 41bcf00d8fSMatthias Ringwald l2cap_signaling.c \ 42b88bf5bfSMatthias Ringwald btstack_audio.c \ 432ef57735SMatthias Ringwald btstack_tlv.c \ 44d1a1f6a4SMatthias Ringwald btstack_crypto.c \ 452b3b87f9SMatthias Ringwald uECC.c \ 463a18db10SMatthias Ringwald 473a18db10SMatthias RingwaldCLASSIC += \ 48bcf00d8fSMatthias Ringwald btstack_link_key_db_memory.c \ 49bcf00d8fSMatthias Ringwald sdp_util.c \ 50efda0b48SMatthias Ringwald spp_server.c \ 51bcf00d8fSMatthias Ringwald rfcomm.c \ 52bcf00d8fSMatthias Ringwald bnep.c \ 53bcf00d8fSMatthias Ringwald sdp_server.c \ 54c4b3290dSMatthias Ringwald device_id_server.c \ 55bcf00d8fSMatthias Ringwald 56bcf00d8fSMatthias RingwaldSDP_CLIENT += \ 57bcf00d8fSMatthias Ringwald sdp_client.o \ 58efda0b48SMatthias Ringwald sdp_client_rfcomm.o \ 59bcf00d8fSMatthias Ringwald 60bcf00d8fSMatthias RingwaldATT += \ 61bcf00d8fSMatthias Ringwald att_dispatch.c \ 62bcf00d8fSMatthias Ringwald 63bcf00d8fSMatthias RingwaldGATT_SERVER += \ 64bcf00d8fSMatthias Ringwald att_db.c \ 65bcf00d8fSMatthias Ringwald att_server.c \ 66bcf00d8fSMatthias Ringwald 67bcf00d8fSMatthias RingwaldGATT_CLIENT += \ 68bcf00d8fSMatthias Ringwald gatt_client.c \ 69bcf00d8fSMatthias Ringwald 705b9c6aadSMatthias RingwaldSM += \ 71bcf00d8fSMatthias Ringwald sm.c \ 72bcf00d8fSMatthias Ringwald 73bcf00d8fSMatthias RingwaldPAN += \ 74bcf00d8fSMatthias Ringwald pan.c \ 75bcf00d8fSMatthias Ringwald 76faccbb29SMatthias RingwaldMBEDTLS = \ 77faccbb29SMatthias Ringwald bignum.c \ 78faccbb29SMatthias Ringwald ecp.c \ 79faccbb29SMatthias Ringwald ecp_curves.c \ 8068437d83SMatthias Ringwald sm_mbedtls_allocator.c \ 81d3bd9600SMatthias Ringwald memory_buffer_alloc.c \ 826643eff8SMatthias Ringwald platform.c \ 83faccbb29SMatthias Ringwald 840e5ac34fSMatthias Ringwald# List of files for Bluedroid SBC codec 850e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc 860e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc 87fcb08cdbSMilanka Ringwald 88fcb08cdbSMilanka RingwaldSBC_DECODER += \ 89cd7b9db2SMatthias Ringwald btstack_sbc_plc.c \ 90c37cd8f3SMatthias Ringwald btstack_sbc_decoder_bluedroid.c \ 91fcb08cdbSMilanka Ringwald 924f0d422dSMilanka RingwaldSBC_ENCODER += \ 93c37cd8f3SMatthias Ringwald btstack_sbc_encoder_bluedroid.c \ 94cd7b9db2SMatthias Ringwald hfp_msbc.c \ 954f0d422dSMilanka Ringwald 96fbc7c9f2SMilanka RingwaldCVSD_PLC = \ 97cd7b9db2SMatthias Ringwald btstack_cvsd_plc.c \ 98fbc7c9f2SMilanka Ringwald 99f40f8caeSMatthias RingwaldAVDTP += \ 100f40f8caeSMatthias Ringwald avdtp_util.c \ 101f40f8caeSMatthias Ringwald avdtp.c \ 102f40f8caeSMatthias Ringwald avdtp_initiator.c \ 103f40f8caeSMatthias Ringwald avdtp_acceptor.c \ 104f40f8caeSMatthias Ringwald avdtp_source.c \ 105f40f8caeSMatthias Ringwald avdtp_sink.c \ 106f40f8caeSMatthias Ringwald a2dp_source.c \ 107f40f8caeSMatthias Ringwald a2dp_sink.c \ 108f40f8caeSMatthias Ringwald btstack_ring_buffer.c \ 109f40f8caeSMatthias Ringwald 110f40f8caeSMatthias RingwaldHXCMOD_PLAYER = \ 111f40f8caeSMatthias Ringwald ${BTSTACK_ROOT}/3rd-party/hxcmod-player/hxcmod.c \ 112f40f8caeSMatthias Ringwald ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c \ 113fbc7c9f2SMilanka Ringwald 114bcf00d8fSMatthias RingwaldEXAMPLES = \ 1159f951df8SMilanka Ringwald a2dp_sink_demo \ 1163fb2c90bSMilanka Ringwald a2dp_source_demo \ 117bcf00d8fSMatthias Ringwald ancs_client_demo \ 118a796c06fSMilanka Ringwald att_delayed_response \ 119a796c06fSMilanka Ringwald avrcp_browsing_client \ 120486d2354SMatthias Ringwald dut_mode_classic \ 121bcf00d8fSMatthias Ringwald gap_dedicated_bonding \ 122bcf00d8fSMatthias Ringwald gap_inquiry \ 1233fb2c90bSMilanka Ringwald gap_le_advertisements \ 124caa3fd52SMatthias Ringwald gap_link_keys \ 125bcf00d8fSMatthias Ringwald gatt_battery_query \ 126bcf00d8fSMatthias Ringwald gatt_browser \ 1276104991bSMatthias Ringwald gatt_heart_rate_client \ 1283fb2c90bSMilanka Ringwald hfp_ag_demo \ 1293fb2c90bSMilanka Ringwald hfp_hf_demo \ 1302d05904dSMatthias Ringwald hid_host_demo \ 1312fa56ea6SMatthias Ringwald hid_keyboard_demo \ 132aa29f587SMatthias Ringwald hid_mouse_demo \ 133a4bfc4feSMatthias Ringwald hog_keyboard_demo \ 134fbf7b2f3SMatthias Ringwald hog_mouse_demo \ 1353fb2c90bSMilanka Ringwald hsp_ag_demo \ 1363fb2c90bSMilanka Ringwald hsp_hs_demo \ 137bcf00d8fSMatthias Ringwald le_counter \ 138ff01079bSMatthias Ringwald le_data_channel_client \ 139ff01079bSMatthias Ringwald le_data_channel_server \ 140bcf00d8fSMatthias Ringwald le_streamer \ 141c8f97be6SMatthias Ringwald le_streamer_client \ 142bcf00d8fSMatthias Ringwald led_counter \ 143f8903005SMatthias Ringwald mod_player \ 1443fb2c90bSMilanka Ringwald pbap_client_demo \ 145bcf00d8fSMatthias Ringwald sdp_bnep_query \ 146bcf00d8fSMatthias Ringwald sdp_general_query \ 147bcf00d8fSMatthias Ringwald sdp_rfcomm_query \ 148*69fa7fc6SMatthias Ringwald sine_player \ 1493fb2c90bSMilanka Ringwald sm_pairing_central \ 1503fb2c90bSMilanka Ringwald sm_pairing_peripheral \ 151bcf00d8fSMatthias Ringwald spp_and_le_counter \ 1523d581950SMatthias Ringwald spp_and_le_streamer \ 153bcf00d8fSMatthias Ringwald spp_counter \ 154bcf00d8fSMatthias Ringwald spp_streamer \ 155cee62800SMatthias Ringwald spp_streamer_client \ 156bcf00d8fSMatthias Ringwald 157bcf00d8fSMatthias RingwaldEXAMPLES_USING_LE = \ 158bcf00d8fSMatthias Ringwald ancs_client_demo \ 159ebdf3c68SMilanka Ringwald gap_le_advertisements \ 160bcf00d8fSMatthias Ringwald gatt_battery_query \ 161bcf00d8fSMatthias Ringwald gatt_browser \ 162ebdf3c68SMilanka Ringwald hog_keyboard_demo \ 163ebdf3c68SMilanka Ringwald hog_mouse_demo \ 164bcf00d8fSMatthias Ringwald le_counter \ 1651add4db5SMatthias Ringwald le_data_channel_client \ 1661add4db5SMatthias Ringwald le_data_channel_server \ 167bcf00d8fSMatthias Ringwald le_streamer \ 168c8f97be6SMatthias Ringwald le_streamer_client \ 169ebdf3c68SMilanka Ringwald nordic_spp_le_counter \ 170ebdf3c68SMilanka Ringwald nordic_spp_le_streamer \ 1717c485f8bSMatthias Ringwald sm_pairing_central \ 172ebdf3c68SMilanka Ringwald sm_pairing_peripheral \ 173ebdf3c68SMilanka Ringwald spp_and_le_counter \ 174bcf00d8fSMatthias Ringwald 175bcf00d8fSMatthias Ringwald# .o for .c 176bcf00d8fSMatthias RingwaldCORE_OBJ = $(CORE:.c=.o) 177bcf00d8fSMatthias RingwaldCOMMON_OBJ = $(COMMON:.c=.o) 1783a18db10SMatthias RingwaldCLASSIC_OBJ = $(CLASSIC:.c=.o) 1792b3b87f9SMatthias RingwaldSM_OBJ = $(SM:.c=.o) 180bcf00d8fSMatthias RingwaldATT_OBJ = $(ATT:.c=.o) 181bcf00d8fSMatthias RingwaldGATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o) 182bcf00d8fSMatthias RingwaldGATT_SERVER_OBJ = $(GATT_SERVER:.c=.o) 183bcf00d8fSMatthias RingwaldPAN_OBJ = $(PAN:.c=.o) 184fcb08cdbSMilanka RingwaldSBC_DECODER_OBJ = $(SBC_DECODER:.c=.o) 185fcb08cdbSMilanka RingwaldSBC_ENCODER_OBJ = $(SBC_ENCODER:.c=.o) 186fbc7c9f2SMilanka RingwaldCVSD_PLC_OBJ = $(CVSD_PLC:.c=.o) 187f40f8caeSMatthias RingwaldAVDTP_OBJ = $(AVDTP:.c=.o) 188f40f8caeSMatthias RingwaldHXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o) 189bcf00d8fSMatthias Ringwald 190bcf00d8fSMatthias Ringwalddefault_target: all 191bcf00d8fSMatthias Ringwald 192bcf00d8fSMatthias Ringwald# compile .gatt descriptions 193fbf7b2f3SMatthias Ringwald%.h: %.gatt 194d7ee901aSMatthias Ringwald python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@ 195bcf00d8fSMatthias Ringwald 196bcf00d8fSMatthias Ringwald# examples 19795c72533SMatthias Ringwaldant_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ant_test.c 19895c72533SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 19995c72533SMatthias Ringwald 2003a18db10SMatthias Ringwaldsdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c 201bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 202bcf00d8fSMatthias Ringwald 203e03b79abSMatthias 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 204f1b34e8dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 205f1b34e8dSMatthias Ringwald 2063a18db10SMatthias Ringwaldsdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c 207bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 208bcf00d8fSMatthias Ringwald 2093a18db10SMatthias Ringwaldsdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c 210bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 211bcf00d8fSMatthias Ringwald 2123a18db10SMatthias Ringwaldspp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c 213bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 214bcf00d8fSMatthias Ringwald 2158577affdSMatthias Ringwaldle_counter: le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o le_counter.c 216bcf00d8fSMatthias Ringwald ${CC} $(filter-out le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 217bcf00d8fSMatthias Ringwald 218beb20288SMatthias Ringwaldatt_delayed_response: att_delayed_response.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} att_delayed_response.c 219beb20288SMatthias Ringwald ${CC} $(filter-out att_delayed_response.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2207d405bedSMatthias Ringwald 221a4bfc4feSMatthias 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 222a4bfc4feSMatthias Ringwald ${CC} $(filter-out hog_keyboard_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 223a4bfc4feSMatthias Ringwald 224fbf7b2f3SMatthias 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 225fbf7b2f3SMatthias Ringwald ${CC} $(filter-out hog_mouse_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 226fbf7b2f3SMatthias Ringwald 2275b9c6aadSMatthias Ringwaldsm_pairing_peripheral: sm_pairing_peripheral.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_peripheral.c 228d7ee901aSMatthias Ringwald ${CC} $(filter-out sm_pairing_peripheral.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 229d7ee901aSMatthias Ringwald 230e5779dd2SMatthias Ringwaldsm_pairing_central: sm_pairing_central.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_central.o 231e5779dd2SMatthias Ringwald ${CC} $(filter-out sm_pairing_central.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2327c485f8bSMatthias Ringwald 2335b9c6aadSMatthias Ringwaldle_streamer: le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_streamer.c 234bcf00d8fSMatthias Ringwald ${CC} $(filter-out le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 235bcf00d8fSMatthias Ringwald 236c8f97be6SMatthias Ringwaldle_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} le_streamer_client.c 237c8f97be6SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 238c8f97be6SMatthias Ringwald 2396104991bSMatthias Ringwaldgatt_heart_rate_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} gatt_heart_rate_client.c 2406104991bSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 2416104991bSMatthias Ringwald 2425b9c6aadSMatthias 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 243bcf00d8fSMatthias Ringwald ${CC} $(filter-out spp_and_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 244bcf00d8fSMatthias Ringwald 2453d581950SMatthias 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 2463d581950SMatthias Ringwald ${CC} $(filter-out spp_and_le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 2473d581950SMatthias Ringwald 248cee62800SMatthias Ringwaldspp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c 249bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 250bcf00d8fSMatthias Ringwald 25196cb50ecSMatthias Ringwaldspp_flowcontrol: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_flowcontrol.c 25296cb50ecSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 25396cb50ecSMatthias Ringwald 254cee62800SMatthias Ringwaldspp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_streamer_client.c 255bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 256bcf00d8fSMatthias Ringwald 2573a18db10SMatthias Ringwaldgap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c 258bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 259bcf00d8fSMatthias Ringwald 2601cfb383eSMatthias Ringwaldgap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c 261bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 262bcf00d8fSMatthias Ringwald 263caa3fd52SMatthias Ringwaldgap_link_keys: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_link_keys.c 264caa3fd52SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 265caa3fd52SMatthias Ringwald 2663a18db10SMatthias Ringwaldpanu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} panu_demo.c 267bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 268bcf00d8fSMatthias Ringwald 269add9769eSMatthias Ringwaldgatt_browser: gatt_browser.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} gatt_browser.c 270add9769eSMatthias Ringwald ${CC} $(filter-out gatt_browser.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 271bcf00d8fSMatthias Ringwald 272add9769eSMatthias 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 273add9769eSMatthias Ringwald ${CC} $(filter-out gatt_battery_query.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 274bcf00d8fSMatthias Ringwald 2755b9c6aadSMatthias 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 276bcf00d8fSMatthias Ringwald ${CC} $(filter-out ancs_client_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 277bcf00d8fSMatthias Ringwald 278bcf00d8fSMatthias Ringwaldled_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c 279bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 280bcf00d8fSMatthias Ringwald 2810c92bcc6SMatthias Ringwaldgap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} gap_le_advertisements.c 282bcf00d8fSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 283bcf00d8fSMatthias Ringwald 284dbb41bfeSMilanka 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 285486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 286bcf00d8fSMatthias Ringwald 287dbb41bfeSMilanka 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 288486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 289fffdd288SMatthias Ringwald 290dbb41bfeSMilanka 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 291486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 292fffdd288SMatthias Ringwald 293dbb41bfeSMilanka 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 294486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 295fffdd288SMatthias Ringwald 2961d5191c9SMatthias Ringwaldhid_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_hid_parser.o hid_host_demo.o 2972d05904dSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 2982d05904dSMatthias Ringwald 299a796c06fSMilanka 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 300486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3012fa56ea6SMatthias Ringwald 302a796c06fSMilanka 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 303486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 304aa29f587SMatthias Ringwald 305a59e4bafSMatthias 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 306486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 30708c0d996SMatthias Ringwald 308a59e4bafSMatthias 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 309486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 310486d2354SMatthias Ringwald 311954cc391SMilanka 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 312f12a3722SMilanka Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 313f12a3722SMilanka Ringwald 314486d2354SMatthias Ringwalddut_mode_classic: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} dut_mode_classic.c 315486d2354SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 316f40f8caeSMatthias Ringwald 3171add4db5SMatthias Ringwaldle_data_channel_client: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} le_data_channel_client.c 318e69f2530SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3191add4db5SMatthias Ringwald 320483d3461SMatthias 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 321483d3461SMatthias Ringwald ${CC} $(filter-out le_data_channel_server.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 3221add4db5SMatthias Ringwald 323f8903005SMatthias Ringwaldmod_player: ${CORE_OBJ} ${COMMON_OBJ} ${HXCMOD_PLAYER_OBJ} btstack_audio.o mod_player.c 324f8903005SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 325f8903005SMatthias Ringwald 326*69fa7fc6SMatthias Ringwaldsine_player: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o sine_player.c 327*69fa7fc6SMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 328*69fa7fc6SMatthias Ringwald 329ebdf3c68SMilanka 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 330ebdf3c68SMilanka Ringwald ${CC} $(filter-out nordic_spp_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 331ebdf3c68SMilanka Ringwald 332ebdf3c68SMilanka 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 333ebdf3c68SMilanka Ringwald ${CC} $(filter-out nordic_spp_le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ 334ebdf3c68SMilanka Ringwald 335bcf00d8fSMatthias Ringwaldclean: 3363fb2c90bSMilanka Ringwald rm -f ${EXAMPLES} *_demo 337de804f9eSMilanka Ringwald rm -f *.o *.out *.hex *.exe *.wav *.sbc 338fbf7b2f3SMatthias 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 339bacdd2abSMatthias Ringwald rm -f gatt_battery_query.h gatt_browser.h sm_pairing_peripheral.h spp_and_le_streamer.h 340483d3461SMatthias Ringwald rm -f le_data_channel_server.h sm_pairing_central.h 341bcf00d8fSMatthias Ringwald rm -rf *.dSYM 342bcf00d8fSMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/*.o 343c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/*.o 344c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o 345c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/*.o 346c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/ancs_client_demo.h 347c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/profile.h 348c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/spp_and_le_counter.h 349c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/le_counter.h 350c8b300b9SMatthias Ringwald rm -rf ${BTSTACK_ROOT}/example/le_streamer.h 351