xref: /btstack/example/Makefile.inc (revision aa29f5873da810152ea5c55e4ead4d15c25afab0)
1fcb08cdbSMilanka Ringwald
2bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src
3bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble
4fe5451faSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble/gatt-service
5bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/classic
6bcf00d8fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/example
7f40f8caeSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player
8c692d776SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc
90e5ac34fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce
100e5ac34fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder//srce
11bcf00d8fSMatthias Ringwald
12bcf00d8fSMatthias RingwaldCFLAGS += -I.
13bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/ble
14bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/classic
15bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src
16f40f8caeSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player
17c692d776SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc
180e5ac34fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include
190e5ac34fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include
2040e13339SMatthias Ringwald
2140e13339SMatthias Ringwald# for CVSD/SBC PLC
2240e13339SMatthias RingwaldLDFLAGS += -lm
2340e13339SMatthias Ringwald
24bcf00d8fSMatthias RingwaldCORE += \
25bcf00d8fSMatthias Ringwald	btstack_memory.c            \
26bcf00d8fSMatthias Ringwald	btstack_linked_list.c	    \
27bcf00d8fSMatthias Ringwald	btstack_memory_pool.c       \
28bcf00d8fSMatthias Ringwald	btstack_run_loop.c		    \
29bcf00d8fSMatthias Ringwald	btstack_util.c 	            \
30bcf00d8fSMatthias Ringwald
31bcf00d8fSMatthias RingwaldCOMMON += \
321cfb383eSMatthias Ringwald	ad_parser.c                 \
33bcf00d8fSMatthias Ringwald	hci.c			            \
34bcf00d8fSMatthias Ringwald	hci_cmd.c		            \
35bcf00d8fSMatthias Ringwald	hci_dump.c		            \
36bcf00d8fSMatthias Ringwald	l2cap.c			            \
37bcf00d8fSMatthias Ringwald	l2cap_signaling.c	        \
383a18db10SMatthias Ringwald
393a18db10SMatthias RingwaldCLASSIC += \
40bcf00d8fSMatthias Ringwald	btstack_link_key_db_memory.c   \
41bcf00d8fSMatthias Ringwald	sdp_util.c	                \
42efda0b48SMatthias Ringwald	spp_server.c  				\
43bcf00d8fSMatthias Ringwald	rfcomm.c	                \
44bcf00d8fSMatthias Ringwald	bnep.c	                    \
45bcf00d8fSMatthias Ringwald	sdp_server.c			            \
46c4b3290dSMatthias Ringwald	device_id_server.c          \
47bcf00d8fSMatthias Ringwald
48bcf00d8fSMatthias RingwaldSDP_CLIENT += \
49bcf00d8fSMatthias Ringwald	sdp_client.o		        \
50efda0b48SMatthias Ringwald	sdp_client_rfcomm.o		    \
51bcf00d8fSMatthias Ringwald
52bcf00d8fSMatthias RingwaldATT	+= \
53bcf00d8fSMatthias Ringwald	att_dispatch.c       	    \
54bcf00d8fSMatthias Ringwald
55bcf00d8fSMatthias RingwaldGATT_SERVER += \
56bcf00d8fSMatthias Ringwald	att_db.c 				 	    \
57bcf00d8fSMatthias Ringwald	att_server.c        	    \
58bcf00d8fSMatthias Ringwald
59bcf00d8fSMatthias RingwaldGATT_CLIENT += \
60bcf00d8fSMatthias Ringwald	gatt_client.c        	    \
61bcf00d8fSMatthias Ringwald
625b9c6aadSMatthias RingwaldSM += \
63bcf00d8fSMatthias Ringwald	sm.c 				 	    \
64bcf00d8fSMatthias Ringwald
65bcf00d8fSMatthias RingwaldPAN += \
66bcf00d8fSMatthias Ringwald	pan.c \
67bcf00d8fSMatthias Ringwald
68faccbb29SMatthias RingwaldMBEDTLS = 					\
69faccbb29SMatthias Ringwald	bignum.c 				\
70faccbb29SMatthias Ringwald	ecp.c 					\
71faccbb29SMatthias Ringwald	ecp_curves.c 			\
7268437d83SMatthias Ringwald	sm_mbedtls_allocator.c  \
73d3bd9600SMatthias Ringwald	memory_buffer_alloc.c   \
746643eff8SMatthias Ringwald	platform.c 				\
75faccbb29SMatthias Ringwald
76c692d776SMatthias RingwaldMICROECC = \
77c692d776SMatthias Ringwald	uECC.c
78c692d776SMatthias Ringwald
790e5ac34fSMatthias Ringwald# List of files for Bluedroid SBC codec
800e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc
810e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
82fcb08cdbSMilanka Ringwald
83fcb08cdbSMilanka RingwaldSBC_DECODER += \
84cd7b9db2SMatthias Ringwald	btstack_sbc_plc.c \
85cd7b9db2SMatthias Ringwald	btstack_sbc_bludroid.c \
86fcb08cdbSMilanka Ringwald
874f0d422dSMilanka RingwaldSBC_ENCODER += \
88cd7b9db2SMatthias Ringwald	btstack_sbc_bludroid.c \
89cd7b9db2SMatthias Ringwald	hfp_msbc.c \
904f0d422dSMilanka Ringwald
91fbc7c9f2SMilanka RingwaldCVSD_PLC = \
92cd7b9db2SMatthias Ringwald	btstack_cvsd_plc.c \
93fbc7c9f2SMilanka Ringwald
94f40f8caeSMatthias RingwaldAVDTP += \
95f40f8caeSMatthias Ringwald	avdtp_util.c  		\
96f40f8caeSMatthias Ringwald	avdtp.c  			\
97f40f8caeSMatthias Ringwald	avdtp_initiator.c 	\
98f40f8caeSMatthias Ringwald	avdtp_acceptor.c  	\
99f40f8caeSMatthias Ringwald	avdtp_source.c 		\
100f40f8caeSMatthias Ringwald	avdtp_sink.c  		\
101f40f8caeSMatthias Ringwald	a2dp_source.c 		\
102f40f8caeSMatthias Ringwald	a2dp_sink.c  		\
103f40f8caeSMatthias Ringwald	btstack_ring_buffer.c \
104f40f8caeSMatthias Ringwald
105f40f8caeSMatthias RingwaldHXCMOD_PLAYER = \
106f40f8caeSMatthias Ringwald	${BTSTACK_ROOT}/3rd-party/hxcmod-player/hxcmod.c 						\
107f40f8caeSMatthias Ringwald	${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c 	\
108fbc7c9f2SMilanka Ringwald
109bcf00d8fSMatthias RingwaldEXAMPLES = 					\
1109f951df8SMilanka Ringwald	a2dp_sink_demo			\
1113fb2c90bSMilanka Ringwald	a2dp_source_demo       \
112bcf00d8fSMatthias Ringwald	ancs_client_demo		\
113bcf00d8fSMatthias Ringwald	gap_dedicated_bonding	\
114bcf00d8fSMatthias Ringwald	gap_inquiry 			\
1153fb2c90bSMilanka Ringwald	gap_le_advertisements   \
116bcf00d8fSMatthias Ringwald	gatt_battery_query		\
117bcf00d8fSMatthias Ringwald	gatt_browser            \
1183fb2c90bSMilanka Ringwald	hfp_ag_demo             \
1193fb2c90bSMilanka Ringwald	hfp_hf_demo             \
1202fa56ea6SMatthias Ringwald	hid_keyboard_demo 	    \
121*aa29f587SMatthias Ringwald	hid_mouse_demo          \
122a4bfc4feSMatthias Ringwald	hog_keyboard_demo       \
123fbf7b2f3SMatthias Ringwald	hog_mouse_demo          \
1243fb2c90bSMilanka Ringwald	hsp_ag_demo             \
1253fb2c90bSMilanka Ringwald	hsp_hs_demo             \
126bcf00d8fSMatthias Ringwald	le_counter              \
127bcf00d8fSMatthias Ringwald	le_streamer				\
128c8f97be6SMatthias Ringwald	le_streamer_client      \
129bcf00d8fSMatthias Ringwald	led_counter				\
1303fb2c90bSMilanka Ringwald	pbap_client_demo		\
131bcf00d8fSMatthias Ringwald	sdp_bnep_query 			\
132bcf00d8fSMatthias Ringwald	sdp_general_query		\
133bcf00d8fSMatthias Ringwald	sdp_rfcomm_query		\
1343fb2c90bSMilanka Ringwald	sm_pairing_central      \
1353fb2c90bSMilanka Ringwald	sm_pairing_peripheral   \
136bcf00d8fSMatthias Ringwald	spp_and_le_counter 		\
1373d581950SMatthias Ringwald	spp_and_le_streamer     \
138bcf00d8fSMatthias Ringwald	spp_counter 			\
139bcf00d8fSMatthias Ringwald	spp_streamer			\
140cee62800SMatthias Ringwald	spp_streamer_client     \
141bcf00d8fSMatthias Ringwald
142bcf00d8fSMatthias RingwaldEXAMPLES_USING_LE =			\
143bcf00d8fSMatthias Ringwald	ancs_client_demo		\
144bcf00d8fSMatthias Ringwald	gatt_battery_query      \
145bcf00d8fSMatthias Ringwald	gatt_browser			\
146bcf00d8fSMatthias Ringwald	le_counter              \
147bcf00d8fSMatthias Ringwald	le_streamer				\
148c8f97be6SMatthias Ringwald	le_streamer_client      \
149bcf00d8fSMatthias Ringwald	spp_and_le_counter	    \
150bcf00d8fSMatthias Ringwald	gap_le_advertisements   \
151d7ee901aSMatthias Ringwald	sm_pairing_peripheral   \
1527c485f8bSMatthias Ringwald	sm_pairing_central      \
153a4bfc4feSMatthias Ringwald	hog_keyboard_demo       \
154fbf7b2f3SMatthias Ringwald	hog_mouse_demo          \
155bcf00d8fSMatthias Ringwald
156bcf00d8fSMatthias Ringwald# .o for .c
157bcf00d8fSMatthias RingwaldCORE_OBJ    = $(CORE:.c=.o)
158bcf00d8fSMatthias RingwaldCOMMON_OBJ  = $(COMMON:.c=.o)
1593a18db10SMatthias RingwaldCLASSIC_OBJ  = $(CLASSIC:.c=.o)
160c692d776SMatthias RingwaldSM_OBJ = $(SM:.c=.o) $(MICROECC:.c=.o)
161bcf00d8fSMatthias RingwaldATT_OBJ     = $(ATT:.c=.o)
162bcf00d8fSMatthias RingwaldGATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o)
163bcf00d8fSMatthias RingwaldGATT_SERVER_OBJ = $(GATT_SERVER:.c=.o)
164bcf00d8fSMatthias RingwaldPAN_OBJ = $(PAN:.c=.o)
165fcb08cdbSMilanka RingwaldSBC_DECODER_OBJ  = $(SBC_DECODER:.c=.o)
166fcb08cdbSMilanka RingwaldSBC_ENCODER_OBJ  = $(SBC_ENCODER:.c=.o)
167fbc7c9f2SMilanka RingwaldCVSD_PLC_OBJ = $(CVSD_PLC:.c=.o)
168f40f8caeSMatthias RingwaldAVDTP_OBJ  = $(AVDTP:.c=.o)
169f40f8caeSMatthias RingwaldHXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o)
170bcf00d8fSMatthias Ringwald
171bcf00d8fSMatthias Ringwalddefault_target: all
172bcf00d8fSMatthias Ringwald
173bcf00d8fSMatthias Ringwald# compile .gatt descriptions
174fbf7b2f3SMatthias Ringwald%.h: %.gatt
175d7ee901aSMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
176bcf00d8fSMatthias Ringwald
177bcf00d8fSMatthias Ringwald# examples
1783a18db10SMatthias Ringwaldsdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c
179bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
180bcf00d8fSMatthias Ringwald
1812085ff84SMatthias Ringwaldpbap_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} obex_iterator.c goep_client.c pbap_client.c pbap_client_demo.c
182f1b34e8dSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
183f1b34e8dSMatthias Ringwald
1843a18db10SMatthias Ringwaldsdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c
185bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
186bcf00d8fSMatthias Ringwald
1873a18db10SMatthias Ringwaldsdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c
188bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
189bcf00d8fSMatthias Ringwald
1903a18db10SMatthias Ringwaldspp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c
191bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
192bcf00d8fSMatthias Ringwald
1938577affdSMatthias Ringwaldle_counter: le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o le_counter.c
194bcf00d8fSMatthias Ringwald	${CC} $(filter-out le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
195bcf00d8fSMatthias Ringwald
196a4bfc4feSMatthias 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
197a4bfc4feSMatthias Ringwald	${CC} $(filter-out hog_keyboard_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
198a4bfc4feSMatthias Ringwald
199fbf7b2f3SMatthias 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
200fbf7b2f3SMatthias Ringwald	${CC} $(filter-out hog_mouse_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
201fbf7b2f3SMatthias Ringwald
2025b9c6aadSMatthias Ringwaldsm_pairing_peripheral: sm_pairing_peripheral.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_peripheral.c
203d7ee901aSMatthias Ringwald	${CC} $(filter-out sm_pairing_peripheral.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
204d7ee901aSMatthias Ringwald
2051cfb383eSMatthias Ringwaldsm_pairing_central: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} sm_pairing_central.o
20605cb0471SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
2077c485f8bSMatthias Ringwald
2085b9c6aadSMatthias Ringwaldle_streamer: le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_streamer.c
209bcf00d8fSMatthias Ringwald	${CC} $(filter-out le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
210bcf00d8fSMatthias Ringwald
211c8f97be6SMatthias Ringwaldle_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} le_streamer_client.c
212c8f97be6SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
213c8f97be6SMatthias Ringwald
2145b9c6aadSMatthias 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
215bcf00d8fSMatthias Ringwald	${CC} $(filter-out spp_and_le_counter.h,$^)  ${CFLAGS} ${LDFLAGS} -o $@
216bcf00d8fSMatthias Ringwald
2173d581950SMatthias 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
2183d581950SMatthias Ringwald	${CC} $(filter-out spp_and_le_streamer.h,$^)  ${CFLAGS} ${LDFLAGS} -o $@
2193d581950SMatthias Ringwald
220cee62800SMatthias Ringwaldspp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c
221bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
222bcf00d8fSMatthias Ringwald
223cee62800SMatthias Ringwaldspp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_streamer_client.c
224bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
225bcf00d8fSMatthias Ringwald
2263a18db10SMatthias Ringwaldgap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c
227bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
228bcf00d8fSMatthias Ringwald
2291cfb383eSMatthias Ringwaldgap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c
230bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
231bcf00d8fSMatthias Ringwald
2323a18db10SMatthias Ringwaldpanu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} panu_demo.c
233bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
234bcf00d8fSMatthias Ringwald
235add9769eSMatthias Ringwaldgatt_browser: gatt_browser.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} gatt_browser.c
236add9769eSMatthias Ringwald	${CC} $(filter-out gatt_browser.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
237bcf00d8fSMatthias Ringwald
238add9769eSMatthias 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
239add9769eSMatthias Ringwald	${CC} $(filter-out gatt_battery_query.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
240bcf00d8fSMatthias Ringwald
2415b9c6aadSMatthias 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
242bcf00d8fSMatthias Ringwald	${CC} $(filter-out ancs_client_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
243bcf00d8fSMatthias Ringwald
244bcf00d8fSMatthias Ringwaldled_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c
245bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
246bcf00d8fSMatthias Ringwald
2470c92bcc6SMatthias Ringwaldgap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ}  gap_le_advertisements.c
248bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
249bcf00d8fSMatthias Ringwald
250dbb41bfeSMilanka 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
251fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
252bcf00d8fSMatthias Ringwald
253dbb41bfeSMilanka 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
254fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
255fffdd288SMatthias Ringwald
256dbb41bfeSMilanka 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
257fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
258fffdd288SMatthias Ringwald
259dbb41bfeSMilanka 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
260fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
261fffdd288SMatthias Ringwald
2622fa56ea6SMatthias Ringwaldhid_keyboard_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o hid_keyboard_demo.o
2632fa56ea6SMatthias Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
2642fa56ea6SMatthias Ringwald
265*aa29f587SMatthias Ringwaldhid_mouse_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o hid_mouse_demo.o
266*aa29f587SMatthias Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
267*aa29f587SMatthias Ringwald
26801dc6e35SMilanka Ringwalda2dp_source_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} ${HXCMOD_PLAYER_OBJ} avrcp.o avrcp_target.o a2dp_source_demo.c
26908c0d996SMatthias Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
27008c0d996SMatthias Ringwald
27101dc6e35SMilanka Ringwalda2dp_sink_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} avrcp.o avrcp_controller.o a2dp_sink_demo.c
2729f951df8SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
273f40f8caeSMatthias Ringwald
274bcf00d8fSMatthias Ringwaldclean:
2753fb2c90bSMilanka Ringwald	rm -f ${EXAMPLES} *_demo
276de804f9eSMilanka Ringwald	rm -f  *.o *.out *.hex *.exe *.wav *.sbc
277fbf7b2f3SMatthias 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
278bacdd2abSMatthias Ringwald	rm -f  gatt_battery_query.h gatt_browser.h sm_pairing_peripheral.h spp_and_le_streamer.h
279bcf00d8fSMatthias Ringwald	rm -rf *.dSYM
280bcf00d8fSMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/*.o
281c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/ble/*.o
282c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o
283c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/*.o
284c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/ancs_client_demo.h
285c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/profile.h
286c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/spp_and_le_counter.h
287c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/le_counter.h
288c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/le_streamer.h
289