Makefile.inc 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. VPATH += ${BTSTACK_ROOT}/src
  2. VPATH += ${BTSTACK_ROOT}/src/ble
  3. VPATH += ${BTSTACK_ROOT}/src/ble/gatt-service
  4. VPATH += ${BTSTACK_ROOT}/src/classic
  5. VPATH += ${BTSTACK_ROOT}/src/mesh
  6. VPATH += ${BTSTACK_ROOT}/example
  7. VPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce
  8. VPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/srce
  9. VPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player
  10. VPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player
  11. VPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods
  12. VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/
  13. VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4
  14. VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv6
  15. VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/netif
  16. VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/apps/http
  17. VPATH += ${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server
  18. VPATH += ${BTSTACK_ROOT}/3rd-party/md5
  19. VPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc
  20. VPATH += ${BTSTACK_ROOT}/3rd-party/yxml
  21. VPATH += ${BTSTACK_ROOT}/platform/lwip
  22. VPATH += ${BTSTACK_ROOT}/platform/lwip/port
  23. CFLAGS += -I.
  24. CFLAGS += -I${BTSTACK_ROOT}/src/ble
  25. CFLAGS += -I${BTSTACK_ROOT}/src/classic
  26. CFLAGS += -I${BTSTACK_ROOT}/src/mesh
  27. CFLAGS += -I${BTSTACK_ROOT}/src
  28. CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include
  29. CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include
  30. CFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player
  31. CFLAGS += -I${BTSTACK_ROOT}/3rd-party/lwip/core/src/include/
  32. CFLAGS += -I${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server
  33. CFLAGS += -I${BTSTACK_ROOT}/3rd-party/md5
  34. CFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc
  35. CFLAGS += -I${BTSTACK_ROOT}/3rd-party/yxml
  36. CFLAGS += -I${BTSTACK_ROOT}/platform/lwip
  37. CFLAGS += -I${BTSTACK_ROOT}/platform/lwip/port
  38. # for CVSD/SBC PLC
  39. LDFLAGS += -lm
  40. CORE += \
  41. btstack_memory.c \
  42. btstack_linked_list.c \
  43. btstack_memory_pool.c \
  44. btstack_run_loop.c \
  45. btstack_util.c \
  46. COMMON += \
  47. ad_parser.c \
  48. hci.c \
  49. hci_cmd.c \
  50. hci_dump.c \
  51. l2cap.c \
  52. l2cap_signaling.c \
  53. btstack_audio.c \
  54. btstack_tlv.c \
  55. btstack_crypto.c \
  56. uECC.c \
  57. sm.c \
  58. CLASSIC ?= \
  59. sdp_util.c \
  60. gatt_sdp.c \
  61. spp_server.c \
  62. rfcomm.c \
  63. bnep.c \
  64. sdp_server.c \
  65. device_id_server.c \
  66. SDP_CLIENT += \
  67. sdp_client.o \
  68. sdp_client_rfcomm.o \
  69. ATT += \
  70. att_dispatch.c \
  71. GATT_SERVER += \
  72. att_db.c \
  73. att_server.c \
  74. GATT_CLIENT += \
  75. gatt_client.c \
  76. battery_service_client.c \
  77. device_information_service_client.c \
  78. scan_parameters_service_client.c \
  79. hids_client.c \
  80. PAN += \
  81. pan.c \
  82. MBEDTLS = \
  83. bignum.c \
  84. ecp.c \
  85. ecp_curves.c \
  86. sm_mbedtls_allocator.c \
  87. memory_buffer_alloc.c \
  88. platform.c \
  89. LWIP_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
  90. LWIP_IPV4_SRC = acd.c dhcp.c etharp.c icmp.c ip4.c ip4_frag.c ip4_addr.c
  91. LWIP_NETIF_SRC = ethernet.c
  92. LWIP_HTTPD = altcp_proxyconnect.c fs.c httpd.c
  93. LWIP_SRC = ${LWIP_CORE_SRC} ${LWIP_IPV4_SRC} ${LWIP_NETIF_SRC} ${LWIP_HTTPD} dhserver.c
  94. # List of files for Bluedroid SBC codec
  95. include ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc
  96. include ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
  97. SBC_DECODER += \
  98. btstack_sbc_plc.c \
  99. btstack_sbc_decoder_bluedroid.c \
  100. SBC_ENCODER += \
  101. btstack_sbc_encoder_bluedroid.c \
  102. hfp_msbc.c \
  103. CVSD_PLC = \
  104. btstack_cvsd_plc.c \
  105. AVDTP += \
  106. avdtp_util.c \
  107. avdtp.c \
  108. avdtp_initiator.c \
  109. avdtp_acceptor.c \
  110. avdtp_source.c \
  111. avdtp_sink.c \
  112. a2dp_source.c \
  113. a2dp_sink.c \
  114. btstack_ring_buffer.c \
  115. AVRCP += \
  116. avrcp.c \
  117. avrcp_controller.c \
  118. avrcp_target.c \
  119. avrcp_browsing.c \
  120. avrcp_browsing_controller.c \
  121. avrcp_browsing_target.c \
  122. avrcp_media_item_iterator.c \
  123. HXCMOD_PLAYER = \
  124. hxcmod.c \
  125. nao-deceased_by_disease.c \
  126. MESH = \
  127. adv_bearer.c \
  128. beacon.c \
  129. gatt_bearer.c \
  130. mesh.c \
  131. mesh_access.c \
  132. mesh_configuration_client.c \
  133. mesh_configuration_server.c \
  134. mesh_crypto.c \
  135. mesh_foundation.c \
  136. mesh_generic_default_transition_time_client.c \
  137. mesh_generic_default_transition_time_server.c \
  138. mesh_generic_level_client.c \
  139. mesh_generic_level_server.c \
  140. mesh_generic_on_off_client.c \
  141. mesh_generic_on_off_server.c \
  142. mesh_health_server.c \
  143. mesh_iv_index_seq_number.c \
  144. mesh_keys.c \
  145. mesh_lower_transport.c \
  146. mesh_network.c \
  147. mesh_node.c \
  148. mesh_peer.c \
  149. mesh_provisioning_service_server.c \
  150. mesh_proxy.c \
  151. mesh_proxy_service_server.c \
  152. mesh_upper_transport.c \
  153. mesh_virtual_addresses.c \
  154. pb_adv.c \
  155. pb_gatt.c \
  156. provisioning.c \
  157. provisioning_device.c \
  158. provisioning_provisioner.c \
  159. # List of General Examples without Bluetooth
  160. EXAMPLES_GENERAL = \
  161. audio_duplex \
  162. led_counter \
  163. mod_player \
  164. sine_player \
  165. # List of Examples that only use Bluetooth BR/EDR = Classic
  166. EXAMPLES_CLASSIC_ONLY = \
  167. a2dp_sink_demo \
  168. a2dp_source_demo \
  169. avrcp_browsing_client \
  170. dut_mode_classic \
  171. gap_dedicated_bonding \
  172. gap_inquiry \
  173. gap_link_keys \
  174. hfp_ag_demo \
  175. hfp_hf_demo \
  176. hid_host_demo \
  177. hid_keyboard_demo \
  178. hid_mouse_demo \
  179. hsp_ag_demo \
  180. hsp_hs_demo \
  181. pbap_client_demo \
  182. sdp_bnep_query \
  183. sdp_general_query \
  184. sdp_rfcomm_query \
  185. spp_counter \
  186. spp_streamer \
  187. spp_streamer_client \
  188. ublox_spp_le_counter \
  189. # List of Examples that only use Bluetooth LE
  190. EXAMPLES_LE_ONLY= \
  191. ancs_client_demo \
  192. att_delayed_response \
  193. gap_le_advertisements \
  194. gatt_battery_query \
  195. gatt_browser \
  196. gatt_counter \
  197. gatt_device_information_query \
  198. gatt_heart_rate_client \
  199. gatt_streamer_server \
  200. hog_boot_host_demo \
  201. hog_host_demo \
  202. hog_mouse_demo \
  203. le_data_channel_client \
  204. le_data_channel_server \
  205. le_mitm \
  206. le_streamer_client \
  207. mesh_node_demo \
  208. nordic_spp_le_counter \
  209. nordic_spp_le_streamer \
  210. sm_pairing_central \
  211. sm_pairing_peripheral \
  212. ublox_spp_le_counter \
  213. # List of Examples that use Bluetooth BR/EDR/LE = Dual Mode
  214. EXAMPLES_DUAL_MODE= \
  215. gatt_counter \
  216. gatt_streamer_server \
  217. spp_and_gatt_counter \
  218. spp_and_gatt_streamer \
  219. # List of GATT files used by either LE_ONLY or DUAL_MODE examples
  220. EXAMPLES_GATT_FILES = \
  221. ancs_client_demo.gatt \
  222. att_delayed_response.gatt \
  223. gatt_battery_query.gatt \
  224. gatt_browser.gatt \
  225. gatt_counter.gatt \
  226. gatt_device_information_query.gatt \
  227. gatt_streamer_server.gatt \
  228. hog_keyboard_demo.gatt \
  229. hog_mouse_demo.gatt \
  230. le_data_channel_server.gatt \
  231. nordic_spp_le_counter.gatt \
  232. nordic_spp_le_streamer.gatt \
  233. sm_pairing_central.gatt \
  234. sm_pairing_peripheral.gatt \
  235. spp_and_gatt_counter.gatt \
  236. spp_and_gatt_streamer.gatt \
  237. ublox_spp_le_counter.gatt \
  238. # .h for .gatt
  239. EXAMPLES_GATT_H_FILES = $(EXAMPLES_GATT_FILES:.gatt=.h)
  240. # .o for .c
  241. CORE_OBJ = $(CORE:.c=.o)
  242. COMMON_OBJ = $(COMMON:.c=.o)
  243. CLASSIC_OBJ = $(CLASSIC:.c=.o)
  244. ATT_OBJ = $(ATT:.c=.o)
  245. GATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o)
  246. GATT_SERVER_OBJ = $(GATT_SERVER:.c=.o)
  247. PAN_OBJ = $(PAN:.c=.o)
  248. SBC_DECODER_OBJ = $(SBC_DECODER:.c=.o)
  249. SBC_ENCODER_OBJ = $(SBC_ENCODER:.c=.o)
  250. CVSD_PLC_OBJ = $(CVSD_PLC:.c=.o)
  251. AVDTP_OBJ = $(AVDTP:.c=.o)
  252. AVRCP_OBJ = $(AVRCP:.c=.o)
  253. HXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o)
  254. LWIP_OBJ = $(LWIP_SRC:.c=.o)
  255. MESH_OBJ = $(MESH:.c=.o)
  256. default_target: all
  257. # compile .gatt descriptions
  258. %.h: %.gatt
  259. python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
  260. # examples
  261. ant_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ant_test.c
  262. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  263. sdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c
  264. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  265. pbap_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
  266. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  267. sdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c
  268. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  269. sdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c
  270. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  271. spp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c
  272. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  273. att_delayed_response.o: att_delayed_response.h att_delayed_response.c
  274. ${CC} ${CFLAGS} -c $(filter-out att_delayed_response.h,$^) -o $@
  275. att_delayed_response: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} att_delayed_response.o
  276. ${CC} $^ ${LDFLAGS} -o $@
  277. hog_keyboard_demo.o: hog_keyboard_demo.h hog_keyboard_demo.c
  278. ${CC} ${CFLAGS} -c $(filter-out hog_keyboard_demo.h,$^) -o $@
  279. hog_keyboard_demo: ${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.o
  280. ${CC} $^ ${LDFLAGS} -o $@
  281. hog_mouse_demo.o: hog_mouse_demo.h hog_mouse_demo.c
  282. ${CC} ${CFLAGS} -c $(filter-out hog_mouse_demo.h,$^) -o $@
  283. hog_mouse_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} battery_service_server.o device_information_service_server.o hids_device.o hog_mouse_demo.o
  284. ${CC} $^ ${LDFLAGS} -o $@
  285. hog_boot_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} hog_boot_host_demo.o
  286. ${CC} $^ ${LDFLAGS} -o $@
  287. hog_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} btstack_hid_parser.o btstack_hid.o hog_host_demo.o
  288. ${CC} $^ ${LDFLAGS} -o $@
  289. sm_pairing_peripheral.o: sm_pairing_peripheral.h sm_pairing_peripheral.c
  290. ${CC} ${CFLAGS} -c $(filter-out sm_pairing_peripheral.h,$^) -o $@
  291. sm_pairing_peripheral: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} sm_pairing_peripheral.o
  292. ${CC} $^ ${LDFLAGS} -o $@
  293. sm_pairing_central.o: sm_pairing_central.h sm_pairing_central.c
  294. ${CC} ${CFLAGS} -c $(filter-out sm_pairing_central.h,$^) -o $@
  295. sm_pairing_central: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} sm_pairing_central.o
  296. ${CC} $^ ${LDFLAGS} -o $@
  297. gatt_counter.o: gatt_counter.h gatt_counter.c
  298. ${CC} ${CFLAGS} -c $(filter-out gatt_counter.h,$^) -o $@
  299. gatt_counter: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${CLASSIC_OBJ} battery_service_server.o gatt_counter.o
  300. ${CC} $^ ${LDFLAGS} -o $@
  301. gatt_streamer_server.o: gatt_streamer_server.h gatt_streamer_server.c
  302. ${CC} ${CFLAGS} -c $(filter-out gatt_streamer_server.h,$^) -o $@
  303. gatt_streamer_server: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${CLASSIC_OBJ} gatt_streamer_server.o
  304. ${CC} $^ ${LDFLAGS} -o $@
  305. le_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} le_streamer_client.c
  306. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  307. le_mitm: ${CORE_OBJ} ${COMMON_OBJ} le_mitm.c
  308. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  309. gatt_heart_rate_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} gatt_heart_rate_client.c
  310. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  311. spp_and_gatt_counter.o: spp_and_gatt_counter.h spp_and_gatt_counter.c
  312. ${CC} ${CFLAGS} -c $(filter-out spp_and_gatt_counter.h,$^) -o $@
  313. spp_and_gatt_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} spp_and_gatt_counter.o
  314. ${CC} $^ ${LDFLAGS} -o $@
  315. spp_and_gatt_streamer.o: spp_and_gatt_streamer.h spp_and_gatt_streamer.c
  316. ${CC} ${CFLAGS} -c $(filter-out spp_and_gatt_streamer.h,$^) -o $@
  317. spp_and_gatt_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} spp_and_gatt_streamer.o
  318. ${CC} $^ ${LDFLAGS} -o $@
  319. spp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c
  320. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  321. spp_flowcontrol: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_flowcontrol.c
  322. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  323. spp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer_client.c
  324. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  325. gap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c
  326. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  327. gap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c
  328. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  329. gap_link_keys: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_link_keys.c
  330. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  331. panu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${PAN_OBJ} panu_demo.c
  332. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  333. pan_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
  334. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  335. gatt_browser.o: gatt_browser.h gatt_browser.c
  336. ${CC} ${CFLAGS} -c $(filter-out gatt_browser.h,$^) -o $@
  337. gatt_browser: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_browser.o
  338. ${CC} $^ ${LDFLAGS} -o $@
  339. gatt_battery_query.o: gatt_battery_query.h gatt_battery_query.c
  340. ${CC} ${CFLAGS} -c $(filter-out gatt_battery_query.h,$^) -o $@
  341. gatt_battery_query: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_battery_query.o
  342. ${CC} $^ ${LDFLAGS} -o $@
  343. gatt_device_information_query.o: gatt_device_information_query.h gatt_device_information_query.c
  344. ${CC} ${CFLAGS} -c $(filter-out gatt_device_information_query.h,$^) -o $@
  345. gatt_device_information_query: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_device_information_query.o
  346. ${CC} $^ ${LDFLAGS} -o $@
  347. ancs_client_demo.o: ancs_client_demo.h ancs_client_demo.c
  348. ${CC} ${CFLAGS} -c $(filter-out ancs_client_demo.h,$^) -o $@
  349. ancs_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} ancs_client.o ancs_client_demo.o
  350. ${CC} $^ ${LDFLAGS} -o $@
  351. led_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c
  352. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  353. gap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} gap_le_advertisements.c
  354. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  355. hsp_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
  356. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  357. hsp_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
  358. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  359. hfp_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
  360. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  361. hfp_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
  362. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  363. hid_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_hid_parser.o hid_host.o hid_host_demo.o
  364. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  365. hid_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
  366. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  367. hid_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
  368. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  369. a2dp_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
  370. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  371. a2dp_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
  372. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  373. avrcp_browsing_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${AVRCP_OBJ} ${AVDTP_OBJ} avrcp_browsing_client.c
  374. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  375. dut_mode_classic: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} dut_mode_classic.c
  376. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  377. le_data_channel_client: ${CORE_OBJ} ${COMMON_OBJ} le_data_channel_client.c
  378. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  379. le_data_channel_server.o: le_data_channel_server.h le_data_channel_server.c
  380. ${CC} ${CFLAGS} -c $(filter-out le_data_channel_server.h,$^) -o $@
  381. le_data_channel_server: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} le_data_channel_server.o
  382. ${CC} $^ ${LDFLAGS} -o $@
  383. mod_player: ${CORE_OBJ} ${COMMON_OBJ} ${HXCMOD_PLAYER_OBJ} btstack_audio.o mod_player.c
  384. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  385. sine_player: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o sine_player.c
  386. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  387. audio_duplex: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o btstack_ring_buffer.o audio_duplex.c
  388. ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
  389. nordic_spp_le_counter.o: nordic_spp_le_counter.h nordic_spp_le_counter.c
  390. ${CC} ${CFLAGS} -c $(filter-out nordic_spp_le_counter.h,$^) -o $@
  391. nordic_spp_le_counter: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} nordic_spp_service_server.o nordic_spp_le_counter.o
  392. ${CC} $^ ${LDFLAGS} -o $@
  393. nordic_spp_le_streamer.o: nordic_spp_le_streamer.h nordic_spp_le_streamer.c
  394. ${CC} ${CFLAGS} -c $(filter-out nordic_spp_le_streamer.h,$^) -o $@
  395. nordic_spp_le_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} nordic_spp_service_server.o nordic_spp_le_streamer.o
  396. ${CC} $^ ${LDFLAGS} -o $@
  397. ublox_spp_le_counter.o: ublox_spp_le_counter.h ublox_spp_le_counter.c
  398. ${CC} ${CFLAGS} -c $(filter-out ublox_spp_le_counter.h,$^) -o $@
  399. ublox_spp_le_counter: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} device_information_service_server.o ublox_spp_service_server.o ublox_spp_le_counter.o
  400. ${CC} $^ ${LDFLAGS} -o $@
  401. mesh_node_demo.o: mesh_node_demo.h mesh_node_demo.c
  402. ${CC} ${CFLAGS} -c $(filter-out mesh_node_demo.h,$^) -o $@
  403. mesh_node_demo:${CORE_OBJ} ${COMMON_OBJ} ${MESH_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} mesh_node_demo.o
  404. ${CC} $^ ${LDFLAGS} -o $@
  405. clean:
  406. rm -f ${EXAMPLES} ${EXAMPLES_GATT_H_FILES}
  407. rm -f *.o *.out *.hex *.exe *.wav *.sbc
  408. rm -rf *.dSYM
  409. rm -rf ${BTSTACK_ROOT}/src/*.o
  410. rm -rf ${BTSTACK_ROOT}/src/ble/*.o
  411. rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o
  412. rm -rf ${BTSTACK_ROOT}/src/classic/*.o
  413. rm -rf ${BTSTACK_ROOT}/example/*.o