xref: /btstack/example/Makefile.inc (revision 2769e469b32e03681df5702001bfaeecba079622)
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
6cf862b36SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/mesh
7bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/example
860da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce
960da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/srce
10f40f8caeSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player
1160da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player
1260da6912SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods
1397dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/
1497dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4
1597dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv6
1697dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/netif
1797dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/apps/http
1897dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server
19c1bc0b8eSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/md5
20c692d776SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc
21e03b79abSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/yxml
2297dc5e69SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/lwip
23235be4f4SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/lwip/port
2485417dcbSMatthias Ringwald
25bcf00d8fSMatthias Ringwald
26bcf00d8fSMatthias RingwaldCFLAGS += -I.
27bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/ble
28bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/classic
29cf862b36SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/mesh
30bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src
3160da6912SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include
3260da6912SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include
33f40f8caeSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player
3497dc5e69SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/lwip/core/src/include/
3597dc5e69SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server
36c1bc0b8eSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/md5
37c692d776SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc
38e03b79abSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/yxml
3997dc5e69SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/platform/lwip
40235be4f4SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/platform/lwip/port
4140e13339SMatthias Ringwald
4240e13339SMatthias Ringwald# for CVSD/SBC PLC
4340e13339SMatthias RingwaldLDFLAGS += -lm
4440e13339SMatthias Ringwald
45bcf00d8fSMatthias RingwaldCORE += \
46bcf00d8fSMatthias Ringwald	btstack_memory.c            \
47bcf00d8fSMatthias Ringwald	btstack_linked_list.c	    \
48bcf00d8fSMatthias Ringwald	btstack_memory_pool.c       \
49bcf00d8fSMatthias Ringwald	btstack_run_loop.c		    \
50bcf00d8fSMatthias Ringwald	btstack_util.c 	            \
51bcf00d8fSMatthias Ringwald
52bcf00d8fSMatthias RingwaldCOMMON += \
531cfb383eSMatthias Ringwald	ad_parser.c                 \
54bcf00d8fSMatthias Ringwald	hci.c			            \
55bcf00d8fSMatthias Ringwald	hci_cmd.c		            \
56bcf00d8fSMatthias Ringwald	hci_dump.c		            \
57bcf00d8fSMatthias Ringwald	l2cap.c			            \
58bcf00d8fSMatthias Ringwald	l2cap_signaling.c	        \
59b88bf5bfSMatthias Ringwald	btstack_audio.c             \
602ef57735SMatthias Ringwald	btstack_tlv.c               \
61d1a1f6a4SMatthias Ringwald	btstack_crypto.c            \
622b3b87f9SMatthias Ringwald	uECC.c                      \
63fedcc363SMatthias Ringwald	sm.c                        \
643a18db10SMatthias Ringwald
651b27a074SMatthias RingwaldCLASSIC ?= \
66bcf00d8fSMatthias Ringwald	sdp_util.c	                \
676bee1f95SMatthias Ringwald	gatt_sdp.c                  \
68efda0b48SMatthias Ringwald	spp_server.c  				\
69bcf00d8fSMatthias Ringwald	rfcomm.c	                \
70bcf00d8fSMatthias Ringwald	bnep.c	                    \
71bcf00d8fSMatthias Ringwald	sdp_server.c			            \
72c4b3290dSMatthias Ringwald	device_id_server.c          \
73bcf00d8fSMatthias Ringwald
74bcf00d8fSMatthias RingwaldSDP_CLIENT += \
75bcf00d8fSMatthias Ringwald	sdp_client.o		        \
76efda0b48SMatthias Ringwald	sdp_client_rfcomm.o		    \
77bcf00d8fSMatthias Ringwald
78bcf00d8fSMatthias RingwaldATT	+= \
79bcf00d8fSMatthias Ringwald	att_dispatch.c       	    \
80bcf00d8fSMatthias Ringwald
81bcf00d8fSMatthias RingwaldGATT_SERVER += \
82bcf00d8fSMatthias Ringwald	att_db.c 				 	    \
83bcf00d8fSMatthias Ringwald	att_server.c        	    \
84bcf00d8fSMatthias Ringwald
85bcf00d8fSMatthias RingwaldGATT_CLIENT += \
86bcf00d8fSMatthias Ringwald	gatt_client.c        	    			\
87174a0c1cSMilanka Ringwald	battery_service_client.c 				\
8877aad125SMilanka Ringwald	device_information_service_client.c 	\
8978ae886bSMilanka Ringwald	scan_parameters_service_client.c 	    \
90cf26c8fbSMilanka Ringwald	hids_client.c 	    					\
91bcf00d8fSMatthias Ringwald
92bcf00d8fSMatthias RingwaldPAN += \
93bcf00d8fSMatthias Ringwald	pan.c \
94bcf00d8fSMatthias Ringwald
95faccbb29SMatthias RingwaldMBEDTLS = 					\
96faccbb29SMatthias Ringwald	bignum.c 				\
97faccbb29SMatthias Ringwald	ecp.c 					\
98faccbb29SMatthias Ringwald	ecp_curves.c 			\
9968437d83SMatthias Ringwald	sm_mbedtls_allocator.c  \
100d3bd9600SMatthias Ringwald	memory_buffer_alloc.c   \
1016643eff8SMatthias Ringwald	platform.c 				\
102faccbb29SMatthias Ringwald
103665a00cbSMilanka Ringwald
10497dc5e69SMatthias RingwaldLWIP_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
10597dc5e69SMatthias RingwaldLWIP_IPV4_SRC  = acd.c dhcp.c etharp.c icmp.c ip4.c ip4_frag.c ip4_addr.c
10697dc5e69SMatthias RingwaldLWIP_NETIF_SRC = ethernet.c
10797dc5e69SMatthias RingwaldLWIP_HTTPD = altcp_proxyconnect.c fs.c httpd.c
10897dc5e69SMatthias RingwaldLWIP_SRC = ${LWIP_CORE_SRC} ${LWIP_IPV4_SRC} ${LWIP_NETIF_SRC} ${LWIP_HTTPD} dhserver.c
10997dc5e69SMatthias Ringwald
1100e5ac34fSMatthias Ringwald# List of files for Bluedroid SBC codec
1110e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc
1120e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
113fcb08cdbSMilanka Ringwald
114fcb08cdbSMilanka RingwaldSBC_DECODER += \
115cd7b9db2SMatthias Ringwald	btstack_sbc_plc.c \
116c37cd8f3SMatthias Ringwald	btstack_sbc_decoder_bluedroid.c \
117fcb08cdbSMilanka Ringwald
1184f0d422dSMilanka RingwaldSBC_ENCODER += \
119c37cd8f3SMatthias Ringwald	btstack_sbc_encoder_bluedroid.c \
120cd7b9db2SMatthias Ringwald	hfp_msbc.c \
1214f0d422dSMilanka Ringwald
122fbc7c9f2SMilanka RingwaldCVSD_PLC = \
123cd7b9db2SMatthias Ringwald	btstack_cvsd_plc.c \
124fbc7c9f2SMilanka Ringwald
125f40f8caeSMatthias RingwaldAVDTP += \
126f40f8caeSMatthias Ringwald	avdtp_util.c           \
127f40f8caeSMatthias Ringwald	avdtp.c                \
128f40f8caeSMatthias Ringwald	avdtp_initiator.c      \
129f40f8caeSMatthias Ringwald	avdtp_acceptor.c       \
130f40f8caeSMatthias Ringwald	avdtp_source.c 	       \
131f40f8caeSMatthias Ringwald	avdtp_sink.c           \
132f40f8caeSMatthias Ringwald	a2dp_source.c          \
133f40f8caeSMatthias Ringwald	a2dp_sink.c            \
134f40f8caeSMatthias Ringwald	btstack_ring_buffer.c \
135f40f8caeSMatthias Ringwald
136665a00cbSMilanka RingwaldAVRCP += \
137665a00cbSMilanka Ringwald	avrcp.c							\
138665a00cbSMilanka Ringwald	avrcp_controller.c				\
139665a00cbSMilanka Ringwald	avrcp_target.c					\
140665a00cbSMilanka Ringwald	avrcp_browsing.c				\
141665a00cbSMilanka Ringwald	avrcp_browsing_controller.c		\
142665a00cbSMilanka Ringwald	avrcp_browsing_target.c			\
143665a00cbSMilanka Ringwald	avrcp_media_item_iterator.c		\
144665a00cbSMilanka Ringwald
145f40f8caeSMatthias RingwaldHXCMOD_PLAYER = \
14660da6912SMatthias Ringwald	hxcmod.c                    \
14760da6912SMatthias Ringwald	nao-deceased_by_disease.c 	\
148fbc7c9f2SMilanka Ringwald
149cf862b36SMatthias RingwaldMESH = \
150cf862b36SMatthias Ringwald	adv_bearer.c \
151cf862b36SMatthias Ringwald	beacon.c \
152cf862b36SMatthias Ringwald	gatt_bearer.c \
15339018edaSMilanka Ringwald	mesh.c \
15439018edaSMilanka Ringwald	mesh_access.c \
155cc2a5f42SMilanka Ringwald	mesh_configuration_client.c \
15639018edaSMilanka Ringwald	mesh_configuration_server.c \
157cf862b36SMatthias Ringwald	mesh_crypto.c \
15839018edaSMilanka Ringwald	mesh_foundation.c \
15985dc67fcSMilanka Ringwald	mesh_generic_default_transition_time_client.c \
16007affd82SMilanka Ringwald	mesh_generic_default_transition_time_server.c \
16139018edaSMilanka Ringwald	mesh_generic_level_client.c \
16239018edaSMilanka Ringwald	mesh_generic_level_server.c \
16339018edaSMilanka Ringwald	mesh_generic_on_off_client.c \
16439018edaSMilanka Ringwald	mesh_generic_on_off_server.c \
16539018edaSMilanka Ringwald	mesh_health_server.c \
16639018edaSMilanka Ringwald	mesh_iv_index_seq_number.c \
16739018edaSMilanka Ringwald	mesh_keys.c \
168cf862b36SMatthias Ringwald	mesh_lower_transport.c \
169cf862b36SMatthias Ringwald	mesh_network.c \
170cf862b36SMatthias Ringwald	mesh_node.c \
17139018edaSMilanka Ringwald	mesh_peer.c \
17239018edaSMilanka Ringwald	mesh_provisioning_service_server.c \
17339018edaSMilanka Ringwald	mesh_proxy.c \
17439018edaSMilanka Ringwald	mesh_proxy_service_server.c \
175cf862b36SMatthias Ringwald	mesh_upper_transport.c \
17639018edaSMilanka Ringwald	mesh_virtual_addresses.c \
177cf862b36SMatthias Ringwald	pb_adv.c \
178cf862b36SMatthias Ringwald	pb_gatt.c \
17939018edaSMilanka Ringwald	provisioning.c \
18039018edaSMilanka Ringwald	provisioning_device.c \
18139018edaSMilanka Ringwald	provisioning_provisioner.c \
182cf862b36SMatthias Ringwald
183bdc352b1SMatthias Ringwald# List of General Examples without Bluetooth
184bdc352b1SMatthias Ringwald
185bdc352b1SMatthias RingwaldEXAMPLES_GENERAL =          \
1869eddf5e8SMatthias Ringwald	audio_duplex            \
187bdc352b1SMatthias Ringwald	led_counter             \
188bdc352b1SMatthias Ringwald	mod_player	            \
189bdc352b1SMatthias Ringwald	sine_player             \
190bdc352b1SMatthias Ringwald
191bdc352b1SMatthias Ringwald# List of Examples that only use Bluetooth BR/EDR = Classic
192bdc352b1SMatthias Ringwald
193bdc352b1SMatthias RingwaldEXAMPLES_CLASSIC_ONLY =     \
1949f951df8SMilanka Ringwald	a2dp_sink_demo          \
1953fb2c90bSMilanka Ringwald	a2dp_source_demo        \
196a796c06fSMilanka Ringwald	avrcp_browsing_client   \
197486d2354SMatthias Ringwald	dut_mode_classic        \
198bcf00d8fSMatthias Ringwald	gap_dedicated_bonding   \
199bcf00d8fSMatthias Ringwald	gap_inquiry             \
200caa3fd52SMatthias Ringwald	gap_link_keys           \
2013fb2c90bSMilanka Ringwald	hfp_ag_demo             \
2023fb2c90bSMilanka Ringwald	hfp_hf_demo             \
2032d05904dSMatthias Ringwald	hid_host_demo           \
2042fa56ea6SMatthias Ringwald	hid_keyboard_demo       \
205aa29f587SMatthias Ringwald	hid_mouse_demo          \
2063fb2c90bSMilanka Ringwald	hsp_ag_demo             \
2073fb2c90bSMilanka Ringwald	hsp_hs_demo             \
2083fb2c90bSMilanka Ringwald	pbap_client_demo        \
209bcf00d8fSMatthias Ringwald	sdp_bnep_query          \
210bcf00d8fSMatthias Ringwald	sdp_general_query       \
211bcf00d8fSMatthias Ringwald	sdp_rfcomm_query        \
212bcf00d8fSMatthias Ringwald	spp_counter             \
213bcf00d8fSMatthias Ringwald	spp_streamer            \
214cee62800SMatthias Ringwald	spp_streamer_client     \
215cf862b36SMatthias Ringwald	ublox_spp_le_counter    \
216bcf00d8fSMatthias Ringwald
217bdc352b1SMatthias Ringwald# List of Examples that only use Bluetooth LE
218bdc352b1SMatthias Ringwald
219bdc352b1SMatthias RingwaldEXAMPLES_LE_ONLY=           		\
220bcf00d8fSMatthias Ringwald	ancs_client_demo        		\
221bdc352b1SMatthias Ringwald	att_delayed_response    		\
222ebdf3c68SMilanka Ringwald	gap_le_advertisements   		\
223bcf00d8fSMatthias Ringwald	gatt_battery_query      		\
224bcf00d8fSMatthias Ringwald	gatt_browser            		\
225bdc352b1SMatthias Ringwald	gatt_counter            		\
22677aad125SMilanka Ringwald	gatt_device_information_query	\
2276d466148SMatthias Ringwald	gatt_heart_rate_client  		\
228bdc352b1SMatthias Ringwald	gatt_streamer_server    		\
22977aad125SMilanka Ringwald	hog_boot_host_demo      		\
230cf26c8fbSMilanka Ringwald	hog_host_demo      		        \
231ebdf3c68SMilanka Ringwald	hog_keyboard_demo       		\
232ebdf3c68SMilanka Ringwald	hog_mouse_demo          		\
2331add4db5SMatthias Ringwald	le_data_channel_client  		\
2341add4db5SMatthias Ringwald	le_data_channel_server  		\
23507f151d6SMatthias Ringwald	le_mitm                 		\
236c8f97be6SMatthias Ringwald	le_streamer_client      		\
2370b4518e2SMatthias Ringwald	mesh_node_demo          		\
238ebdf3c68SMilanka Ringwald	nordic_spp_le_counter   		\
239ebdf3c68SMilanka Ringwald	nordic_spp_le_streamer  		\
2407c485f8bSMatthias Ringwald	sm_pairing_central      		\
241ebdf3c68SMilanka Ringwald	sm_pairing_peripheral   		\
242733ac1e8SMilanka Ringwald	ublox_spp_le_counter    		\
243bcf00d8fSMatthias Ringwald
244bdc352b1SMatthias Ringwald# List of Examples that use Bluetooth BR/EDR/LE = Dual Mode
245bdc352b1SMatthias Ringwald
246bdc352b1SMatthias RingwaldEXAMPLES_DUAL_MODE=         \
247bdc352b1SMatthias Ringwald	gatt_counter            \
248bdc352b1SMatthias Ringwald	gatt_streamer_server    \
249bdc352b1SMatthias Ringwald	spp_and_gatt_counter    \
250bdc352b1SMatthias Ringwald	spp_and_gatt_streamer   \
251bdc352b1SMatthias Ringwald
252bdc352b1SMatthias Ringwald# List of GATT files used by either LE_ONLY or DUAL_MODE examples
253bdc352b1SMatthias Ringwald
254bdc352b1SMatthias RingwaldEXAMPLES_GATT_FILES =           		\
255bdc352b1SMatthias Ringwald	ancs_client_demo.gatt       		\
25677aad125SMilanka Ringwald	att_delayed_response.gatt   		\
257bdc352b1SMatthias Ringwald	gatt_battery_query.gatt     		\
258bdc352b1SMatthias Ringwald	gatt_browser.gatt           		\
259bdc352b1SMatthias Ringwald	gatt_counter.gatt           		\
26077aad125SMilanka Ringwald	gatt_device_information_query.gatt 	\
261bdc352b1SMatthias Ringwald	gatt_streamer_server.gatt   		\
262bdc352b1SMatthias Ringwald	hog_keyboard_demo.gatt      		\
263bdc352b1SMatthias Ringwald	hog_mouse_demo.gatt         		\
264bdc352b1SMatthias Ringwald	le_data_channel_server.gatt 		\
265bdc352b1SMatthias Ringwald	nordic_spp_le_counter.gatt  		\
266bdc352b1SMatthias Ringwald	nordic_spp_le_streamer.gatt 		\
267bdc352b1SMatthias Ringwald	sm_pairing_central.gatt     		\
268bdc352b1SMatthias Ringwald	sm_pairing_peripheral.gatt  		\
269bdc352b1SMatthias Ringwald	spp_and_gatt_counter.gatt   		\
270bdc352b1SMatthias Ringwald	spp_and_gatt_streamer.gatt  		\
271bdc352b1SMatthias Ringwald	ublox_spp_le_counter.gatt  			\
272bdc352b1SMatthias Ringwald
273bdc352b1SMatthias Ringwald# .h for .gatt
274bdc352b1SMatthias RingwaldEXAMPLES_GATT_H_FILES = $(EXAMPLES_GATT_FILES:.gatt=.h)
275bdc352b1SMatthias Ringwald
276bcf00d8fSMatthias Ringwald# .o for .c
277bcf00d8fSMatthias RingwaldCORE_OBJ    = $(CORE:.c=.o)
278bcf00d8fSMatthias RingwaldCOMMON_OBJ  = $(COMMON:.c=.o)
2793a18db10SMatthias RingwaldCLASSIC_OBJ  = $(CLASSIC:.c=.o)
280bcf00d8fSMatthias RingwaldATT_OBJ     = $(ATT:.c=.o)
281bcf00d8fSMatthias RingwaldGATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o)
282bcf00d8fSMatthias RingwaldGATT_SERVER_OBJ = $(GATT_SERVER:.c=.o)
283bcf00d8fSMatthias RingwaldPAN_OBJ = $(PAN:.c=.o)
284fcb08cdbSMilanka RingwaldSBC_DECODER_OBJ  = $(SBC_DECODER:.c=.o)
285fcb08cdbSMilanka RingwaldSBC_ENCODER_OBJ  = $(SBC_ENCODER:.c=.o)
286fbc7c9f2SMilanka RingwaldCVSD_PLC_OBJ = $(CVSD_PLC:.c=.o)
287f40f8caeSMatthias RingwaldAVDTP_OBJ  = $(AVDTP:.c=.o)
288665a00cbSMilanka RingwaldAVRCP_OBJ  = $(AVRCP:.c=.o)
289f40f8caeSMatthias RingwaldHXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o)
29097dc5e69SMatthias RingwaldLWIP_OBJ = $(LWIP_SRC:.c=.o)
291cf862b36SMatthias RingwaldMESH_OBJ = $(MESH:.c=.o)
292bcf00d8fSMatthias Ringwald
293bcf00d8fSMatthias Ringwalddefault_target: all
294bcf00d8fSMatthias Ringwald
295bcf00d8fSMatthias Ringwald# compile .gatt descriptions
296fbf7b2f3SMatthias Ringwald%.h: %.gatt
2974783d256SMatheus Garbelini	python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
298bcf00d8fSMatthias Ringwald
299bcf00d8fSMatthias Ringwald# examples
30048b86f8aSMilanka Ringwald
30195c72533SMatthias Ringwaldant_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ant_test.c
30295c72533SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
30395c72533SMatthias Ringwald
3043a18db10SMatthias Ringwaldsdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c
305bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
306bcf00d8fSMatthias Ringwald
307c4466456SMilanka Ringwaldpbap_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
308f1b34e8dSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
309f1b34e8dSMatthias Ringwald
3103a18db10SMatthias Ringwaldsdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c
311bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
312bcf00d8fSMatthias Ringwald
3133a18db10SMatthias Ringwaldsdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c
314bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
315bcf00d8fSMatthias Ringwald
3163a18db10SMatthias Ringwaldspp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c
317bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
318bcf00d8fSMatthias Ringwald
3197d405bedSMatthias Ringwald
320*2769e469SMatthias Ringwaldatt_delayed_response.o: att_delayed_response.h att_delayed_response.c
321*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out att_delayed_response.h,$^) -o $@
322a4bfc4feSMatthias Ringwald
323*2769e469SMatthias Ringwaldatt_delayed_response: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} att_delayed_response.o
324*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
325fbf7b2f3SMatthias Ringwald
3261aadab7aSMatthias Ringwald
327*2769e469SMatthias Ringwaldhog_keyboard_demo.o: hog_keyboard_demo.h hog_keyboard_demo.c
328*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out hog_keyboard_demo.h,$^) -o $@
329cf26c8fbSMilanka Ringwald
330*2769e469SMatthias Ringwaldhog_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
331*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
332d7ee901aSMatthias Ringwald
3337c485f8bSMatthias Ringwald
334*2769e469SMatthias Ringwaldhog_mouse_demo.o: hog_mouse_demo.h hog_mouse_demo.c
335*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out hog_mouse_demo.h,$^) -o $@
3366bee1f95SMatthias Ringwald
337*2769e469SMatthias Ringwaldhog_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
338*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
339*2769e469SMatthias Ringwald
340*2769e469SMatthias Ringwald
341*2769e469SMatthias Ringwaldhog_boot_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} hog_boot_host_demo.o
342*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
343*2769e469SMatthias Ringwald
344*2769e469SMatthias Ringwald
345*2769e469SMatthias Ringwald
346*2769e469SMatthias Ringwaldhog_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} btstack_hid_parser.o btstack_hid.o hog_host_demo.o
347*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
348*2769e469SMatthias Ringwald
349*2769e469SMatthias Ringwald
350*2769e469SMatthias Ringwaldsm_pairing_peripheral.o: sm_pairing_peripheral.h sm_pairing_peripheral.c
351*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out sm_pairing_peripheral.h,$^) -o $@
352*2769e469SMatthias Ringwald
353*2769e469SMatthias Ringwaldsm_pairing_peripheral: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} sm_pairing_peripheral.o
354*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
355*2769e469SMatthias Ringwald
356*2769e469SMatthias Ringwald
357*2769e469SMatthias Ringwaldsm_pairing_central.o: sm_pairing_central.h sm_pairing_central.c
358*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out sm_pairing_central.h,$^) -o $@
359*2769e469SMatthias Ringwald
360*2769e469SMatthias Ringwaldsm_pairing_central: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} sm_pairing_central.o
361*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
362*2769e469SMatthias Ringwald
363*2769e469SMatthias Ringwald
364*2769e469SMatthias Ringwaldgatt_counter.o: gatt_counter.h gatt_counter.c
365*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out gatt_counter.h,$^) -o $@
366*2769e469SMatthias Ringwald
367*2769e469SMatthias Ringwaldgatt_counter: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${CLASSIC_OBJ} battery_service_server.o gatt_counter.o
368*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
369*2769e469SMatthias Ringwald
370*2769e469SMatthias Ringwald
371*2769e469SMatthias Ringwaldgatt_streamer_server.o: gatt_streamer_server.h gatt_streamer_server.c
372*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out gatt_streamer_server.h,$^) -o $@
373*2769e469SMatthias Ringwald
374*2769e469SMatthias Ringwaldgatt_streamer_server: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${CLASSIC_OBJ} gatt_streamer_server.o
375*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
376*2769e469SMatthias Ringwald
377bcf00d8fSMatthias Ringwald
378fedcc363SMatthias Ringwaldle_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} le_streamer_client.c
379c8f97be6SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
380c8f97be6SMatthias Ringwald
38107f151d6SMatthias Ringwaldle_mitm: ${CORE_OBJ} ${COMMON_OBJ} le_mitm.c
38207f151d6SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
38307f151d6SMatthias Ringwald
384fedcc363SMatthias Ringwaldgatt_heart_rate_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} gatt_heart_rate_client.c
3856104991bSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
3866104991bSMatthias Ringwald
387bcf00d8fSMatthias Ringwald
388*2769e469SMatthias Ringwaldspp_and_gatt_counter.o: spp_and_gatt_counter.h spp_and_gatt_counter.c
389*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out spp_and_gatt_counter.h,$^) -o $@
390*2769e469SMatthias Ringwald
391*2769e469SMatthias Ringwaldspp_and_gatt_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} spp_and_gatt_counter.o
392*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
393*2769e469SMatthias Ringwald
394*2769e469SMatthias Ringwald
395*2769e469SMatthias Ringwaldspp_and_gatt_streamer.o: spp_and_gatt_streamer.h spp_and_gatt_streamer.c
396*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out spp_and_gatt_streamer.h,$^) -o $@
397*2769e469SMatthias Ringwald
398*2769e469SMatthias Ringwaldspp_and_gatt_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} spp_and_gatt_streamer.o
399*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
400*2769e469SMatthias Ringwald
4013d581950SMatthias Ringwald
402cee62800SMatthias Ringwaldspp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c
403bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
404bcf00d8fSMatthias Ringwald
40596cb50ecSMatthias Ringwaldspp_flowcontrol: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_flowcontrol.c
40696cb50ecSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
40796cb50ecSMatthias Ringwald
408df6b38e6SMatthias Ringwaldspp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer_client.c
409bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
410bcf00d8fSMatthias Ringwald
4113a18db10SMatthias Ringwaldgap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c
412bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
413bcf00d8fSMatthias Ringwald
4141cfb383eSMatthias Ringwaldgap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c
415bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
416bcf00d8fSMatthias Ringwald
417caa3fd52SMatthias Ringwaldgap_link_keys: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_link_keys.c
418caa3fd52SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
419caa3fd52SMatthias Ringwald
4206a4fc708SMatthias Ringwaldpanu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${PAN_OBJ} panu_demo.c
421bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
422bcf00d8fSMatthias Ringwald
42397dc5e69SMatthias Ringwaldpan_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
42497dc5e69SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
42597dc5e69SMatthias Ringwald
426bcf00d8fSMatthias Ringwald
427*2769e469SMatthias Ringwaldgatt_browser.o: gatt_browser.h gatt_browser.c
428*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out gatt_browser.h,$^) -o $@
429bcf00d8fSMatthias Ringwald
430*2769e469SMatthias Ringwaldgatt_browser: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_browser.o
431*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
43277aad125SMilanka Ringwald
433*2769e469SMatthias Ringwald
434*2769e469SMatthias Ringwaldgatt_battery_query.o: gatt_battery_query.h gatt_battery_query.c
435*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out gatt_battery_query.h,$^) -o $@
436*2769e469SMatthias Ringwald
437*2769e469SMatthias Ringwaldgatt_battery_query: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_battery_query.o
438*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
439*2769e469SMatthias Ringwald
440*2769e469SMatthias Ringwald
441*2769e469SMatthias Ringwaldgatt_device_information_query.o: gatt_device_information_query.h gatt_device_information_query.c
442*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out gatt_device_information_query.h,$^) -o $@
443*2769e469SMatthias Ringwald
444*2769e469SMatthias Ringwaldgatt_device_information_query: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} gatt_device_information_query.o
445*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
446*2769e469SMatthias Ringwald
447*2769e469SMatthias Ringwald
448*2769e469SMatthias Ringwaldancs_client_demo.o: ancs_client_demo.h ancs_client_demo.c
449*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out ancs_client_demo.h,$^) -o $@
450*2769e469SMatthias Ringwald
451*2769e469SMatthias Ringwaldancs_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${GATT_CLIENT_OBJ} ancs_client.o ancs_client_demo.o
452*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
453*2769e469SMatthias Ringwald
454bcf00d8fSMatthias Ringwald
455bcf00d8fSMatthias Ringwaldled_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c
456bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
457bcf00d8fSMatthias Ringwald
458fedcc363SMatthias Ringwaldgap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ}  gap_le_advertisements.c
459bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
460bcf00d8fSMatthias Ringwald
461dbb41bfeSMilanka 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
462486d2354SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
463bcf00d8fSMatthias Ringwald
464dbb41bfeSMilanka 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
465486d2354SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
466fffdd288SMatthias Ringwald
467dbb41bfeSMilanka 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
468486d2354SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
469fffdd288SMatthias Ringwald
470dbb41bfeSMilanka 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
471486d2354SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
472fffdd288SMatthias Ringwald
47305439aa6SMilanka Ringwaldhid_host_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_hid_parser.o hid_host.o hid_host_demo.o
4742d05904dSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
4752d05904dSMatthias Ringwald
476a796c06fSMilanka 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
477486d2354SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
4782fa56ea6SMatthias Ringwald
479a796c06fSMilanka 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
480486d2354SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
481aa29f587SMatthias Ringwald
48250259306SMilanka 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
483486d2354SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
48408c0d996SMatthias Ringwald
48514e3e2c2SMilanka 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
486486d2354SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
487486d2354SMatthias Ringwald
4885666fff4SMilanka Ringwaldavrcp_browsing_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${AVRCP_OBJ} ${AVDTP_OBJ} avrcp_browsing_client.c
489f12a3722SMilanka Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
490f12a3722SMilanka Ringwald
491486d2354SMatthias Ringwalddut_mode_classic: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} dut_mode_classic.c
492486d2354SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
493f40f8caeSMatthias Ringwald
494fedcc363SMatthias Ringwaldle_data_channel_client: ${CORE_OBJ} ${COMMON_OBJ} le_data_channel_client.c
495e69f2530SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
4961add4db5SMatthias Ringwald
497*2769e469SMatthias Ringwald
498*2769e469SMatthias Ringwaldle_data_channel_server.o: le_data_channel_server.h le_data_channel_server.c
499*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out le_data_channel_server.h,$^) -o $@
500*2769e469SMatthias Ringwald
501*2769e469SMatthias Ringwaldle_data_channel_server: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} le_data_channel_server.o
502*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
503*2769e469SMatthias Ringwald
5041add4db5SMatthias Ringwald
505f8903005SMatthias Ringwaldmod_player: ${CORE_OBJ} ${COMMON_OBJ} ${HXCMOD_PLAYER_OBJ} btstack_audio.o mod_player.c
506f8903005SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
507f8903005SMatthias Ringwald
50869fa7fc6SMatthias Ringwaldsine_player: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o sine_player.c
50969fa7fc6SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
51069fa7fc6SMatthias Ringwald
5119eddf5e8SMatthias Ringwaldaudio_duplex: ${CORE_OBJ} ${COMMON_OBJ} btstack_audio.o btstack_ring_buffer.o audio_duplex.c
5129eddf5e8SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
5139eddf5e8SMatthias Ringwald
514ebdf3c68SMilanka Ringwald
515*2769e469SMatthias Ringwaldnordic_spp_le_counter.o: nordic_spp_le_counter.h nordic_spp_le_counter.c
516*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out nordic_spp_le_counter.h,$^) -o $@
517ebdf3c68SMilanka Ringwald
518*2769e469SMatthias Ringwaldnordic_spp_le_counter: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} nordic_spp_service_server.o nordic_spp_le_counter.o
519*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
520733ac1e8SMilanka Ringwald
521*2769e469SMatthias Ringwald
522*2769e469SMatthias Ringwaldnordic_spp_le_streamer.o: nordic_spp_le_streamer.h nordic_spp_le_streamer.c
523*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out nordic_spp_le_streamer.h,$^) -o $@
524*2769e469SMatthias Ringwald
525*2769e469SMatthias Ringwaldnordic_spp_le_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} nordic_spp_service_server.o nordic_spp_le_streamer.o
526*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
527*2769e469SMatthias Ringwald
528*2769e469SMatthias Ringwald
529*2769e469SMatthias Ringwaldublox_spp_le_counter.o: ublox_spp_le_counter.h ublox_spp_le_counter.c
530*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out ublox_spp_le_counter.h,$^) -o $@
531*2769e469SMatthias Ringwald
532*2769e469SMatthias Ringwaldublox_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
533*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
534*2769e469SMatthias Ringwald
535*2769e469SMatthias Ringwald
536*2769e469SMatthias Ringwaldmesh_node_demo.o: mesh_node_demo.h mesh_node_demo.c
537*2769e469SMatthias Ringwald	${CC} ${CFLAGS} -c $(filter-out mesh_node_demo.h,$^) -o $@
538*2769e469SMatthias Ringwald
539*2769e469SMatthias Ringwaldmesh_node_demo:${CORE_OBJ} ${COMMON_OBJ} ${MESH_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} mesh_node_demo.o
540*2769e469SMatthias Ringwald	${CC} ${LDFLAGS} $^ -o $@
541cf862b36SMatthias Ringwald
542bcf00d8fSMatthias Ringwaldclean:
543bdc352b1SMatthias Ringwald	rm -f ${EXAMPLES} ${EXAMPLES_GATT_H_FILES}
544bf8e3fa8SMatthias Ringwald	rm -f  *.o *.out *.hex *.exe *.wav *.sbc
545bf8e3fa8SMatthias Ringwald	rm -rf *.dSYM
546bcf00d8fSMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/*.o
547c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/ble/*.o
548c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o
549bdc352b1SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/classic/*.o
550c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/*.o
551