xref: /btstack/example/Makefile.inc (revision 3d581950597e2b7c9537c9422aa27973fed9ee4e)
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
7faccbb29SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/mbedtls/library
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
16faccbb29SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/mbedtls/include
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
210e5ac34fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/test/security_manager
22bcf00d8fSMatthias Ringwald
2340e13339SMatthias Ringwald# for CVSD/SBC PLC
2440e13339SMatthias RingwaldLDFLAGS += -lm
2540e13339SMatthias Ringwald
26bcf00d8fSMatthias RingwaldCORE += \
27bcf00d8fSMatthias Ringwald	btstack_memory.c            \
28bcf00d8fSMatthias Ringwald	btstack_linked_list.c	    \
29bcf00d8fSMatthias Ringwald	btstack_memory_pool.c       \
30bcf00d8fSMatthias Ringwald	btstack_run_loop.c		    \
31bcf00d8fSMatthias Ringwald	btstack_util.c 	            \
32bcf00d8fSMatthias Ringwald
33bcf00d8fSMatthias RingwaldCOMMON += \
341cfb383eSMatthias Ringwald	ad_parser.c                 \
35bcf00d8fSMatthias Ringwald	hci.c			            \
36bcf00d8fSMatthias Ringwald	hci_cmd.c		            \
37bcf00d8fSMatthias Ringwald	hci_dump.c		            \
38bcf00d8fSMatthias Ringwald	l2cap.c			            \
39bcf00d8fSMatthias Ringwald	l2cap_signaling.c	        \
403a18db10SMatthias Ringwald
413a18db10SMatthias RingwaldCLASSIC += \
42bcf00d8fSMatthias Ringwald	btstack_link_key_db_memory.c   \
43bcf00d8fSMatthias Ringwald	sdp_util.c	                \
44efda0b48SMatthias Ringwald	spp_server.c  				\
45bcf00d8fSMatthias Ringwald	rfcomm.c	                \
46bcf00d8fSMatthias Ringwald	bnep.c	                    \
47bcf00d8fSMatthias Ringwald	sdp_server.c			            \
48c4b3290dSMatthias Ringwald	device_id_server.c          \
49bcf00d8fSMatthias Ringwald
50bcf00d8fSMatthias RingwaldSDP_CLIENT += \
51bcf00d8fSMatthias Ringwald	sdp_client.o		        \
52efda0b48SMatthias Ringwald	sdp_client_rfcomm.o		    \
53bcf00d8fSMatthias Ringwald
54bcf00d8fSMatthias RingwaldATT	+= \
55bcf00d8fSMatthias Ringwald	att_dispatch.c       	    \
56bcf00d8fSMatthias Ringwald
57bcf00d8fSMatthias RingwaldGATT_SERVER += \
58bcf00d8fSMatthias Ringwald	att_db.c 				 	    \
59bcf00d8fSMatthias Ringwald	att_server.c        	    \
60bcf00d8fSMatthias Ringwald
61bcf00d8fSMatthias RingwaldGATT_CLIENT += \
62bcf00d8fSMatthias Ringwald	gatt_client.c        	    \
63bcf00d8fSMatthias Ringwald
645b9c6aadSMatthias RingwaldSM += \
65bcf00d8fSMatthias Ringwald	sm.c 				 	    \
66bcf00d8fSMatthias Ringwald
67bcf00d8fSMatthias RingwaldPAN += \
68bcf00d8fSMatthias Ringwald	pan.c \
69bcf00d8fSMatthias Ringwald
70faccbb29SMatthias RingwaldMBEDTLS = 					\
71faccbb29SMatthias Ringwald	bignum.c 				\
72faccbb29SMatthias Ringwald	ecp.c 					\
73faccbb29SMatthias Ringwald	ecp_curves.c 			\
7468437d83SMatthias Ringwald	sm_mbedtls_allocator.c  \
75d3bd9600SMatthias Ringwald	memory_buffer_alloc.c   \
766643eff8SMatthias Ringwald	platform.c 				\
77faccbb29SMatthias Ringwald
78c692d776SMatthias RingwaldMICROECC = \
79c692d776SMatthias Ringwald	uECC.c
80c692d776SMatthias Ringwald
810e5ac34fSMatthias Ringwald# List of files for Bluedroid SBC codec
820e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc
830e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
84fcb08cdbSMilanka Ringwald
85fcb08cdbSMilanka RingwaldSBC_DECODER += \
86cd7b9db2SMatthias Ringwald	btstack_sbc_plc.c \
87cd7b9db2SMatthias Ringwald	btstack_sbc_bludroid.c \
88fcb08cdbSMilanka Ringwald
894f0d422dSMilanka RingwaldSBC_ENCODER += \
90cd7b9db2SMatthias Ringwald	btstack_sbc_bludroid.c \
91cd7b9db2SMatthias Ringwald	hfp_msbc.c \
924f0d422dSMilanka Ringwald
93fbc7c9f2SMilanka RingwaldCVSD_PLC = \
94cd7b9db2SMatthias Ringwald	btstack_cvsd_plc.c \
95fbc7c9f2SMilanka Ringwald
96fbc7c9f2SMilanka Ringwald
97bcf00d8fSMatthias RingwaldEXAMPLES = 					\
98bcf00d8fSMatthias Ringwald	ancs_client_demo		\
99bcf00d8fSMatthias Ringwald	gap_dedicated_bonding	\
100bcf00d8fSMatthias Ringwald	gap_inquiry 			\
101bcf00d8fSMatthias Ringwald	gatt_battery_query		\
102bcf00d8fSMatthias Ringwald	gatt_browser            \
1032fa56ea6SMatthias Ringwald	hid_keyboard_demo 	    \
104bcf00d8fSMatthias Ringwald	le_counter              \
105bcf00d8fSMatthias Ringwald	le_streamer				\
106c8f97be6SMatthias Ringwald	le_streamer_client      \
107bcf00d8fSMatthias Ringwald	led_counter				\
108bcf00d8fSMatthias Ringwald	sdp_bnep_query 			\
109bcf00d8fSMatthias Ringwald	sdp_general_query		\
110bcf00d8fSMatthias Ringwald	sdp_rfcomm_query		\
111bcf00d8fSMatthias Ringwald	spp_and_le_counter 		\
112*3d581950SMatthias Ringwald	spp_and_le_streamer     \
113bcf00d8fSMatthias Ringwald	spp_counter 			\
114bcf00d8fSMatthias Ringwald	spp_streamer			\
115bcf00d8fSMatthias Ringwald	gap_le_advertisements   \
116fffdd288SMatthias Ringwald	hfp_ag_demo             \
117d7ee901aSMatthias Ringwald	hfp_hf_demo             \
118d7ee901aSMatthias Ringwald	hsp_ag_demo             \
119d7ee901aSMatthias Ringwald	hsp_hs_demo             \
120d7ee901aSMatthias Ringwald	sm_pairing_peripheral   \
1217c485f8bSMatthias Ringwald	sm_pairing_central      \
1222085ff84SMatthias Ringwald	pbap_client_demo		\
123bcf00d8fSMatthias Ringwald
124bcf00d8fSMatthias RingwaldEXAMPLES_USING_LE =			\
125bcf00d8fSMatthias Ringwald	ancs_client_demo		\
126bcf00d8fSMatthias Ringwald	gatt_battery_query      \
127bcf00d8fSMatthias Ringwald	gatt_browser			\
128bcf00d8fSMatthias Ringwald	le_counter              \
129bcf00d8fSMatthias Ringwald	le_streamer				\
130c8f97be6SMatthias Ringwald	le_streamer_client      \
131bcf00d8fSMatthias Ringwald	spp_and_le_counter	    \
132bcf00d8fSMatthias Ringwald	gap_le_advertisements   \
133d7ee901aSMatthias Ringwald	sm_pairing_peripheral   \
1347c485f8bSMatthias Ringwald	sm_pairing_central      \
135bcf00d8fSMatthias Ringwald
136bcf00d8fSMatthias Ringwald# .o for .c
137bcf00d8fSMatthias RingwaldCORE_OBJ    = $(CORE:.c=.o)
138bcf00d8fSMatthias RingwaldCOMMON_OBJ  = $(COMMON:.c=.o)
1393a18db10SMatthias RingwaldCLASSIC_OBJ  = $(CLASSIC:.c=.o)
140c692d776SMatthias RingwaldSM_OBJ = $(SM:.c=.o) $(MICROECC:.c=.o)
141bcf00d8fSMatthias RingwaldATT_OBJ     = $(ATT:.c=.o)
142bcf00d8fSMatthias RingwaldGATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o)
143bcf00d8fSMatthias RingwaldGATT_SERVER_OBJ = $(GATT_SERVER:.c=.o)
144bcf00d8fSMatthias RingwaldPAN_OBJ = $(PAN:.c=.o)
145fcb08cdbSMilanka RingwaldSBC_DECODER_OBJ  = $(SBC_DECODER:.c=.o)
146fcb08cdbSMilanka RingwaldSBC_ENCODER_OBJ  = $(SBC_ENCODER:.c=.o)
147fbc7c9f2SMilanka RingwaldCVSD_PLC_OBJ = $(CVSD_PLC:.c=.o)
148bcf00d8fSMatthias Ringwald
149bcf00d8fSMatthias Ringwalddefault_target: all
150bcf00d8fSMatthias Ringwald
151bcf00d8fSMatthias Ringwald# compile .gatt descriptions
152bcf00d8fSMatthias Ringwaldprofile.h: profile.gatt
153b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
154bcf00d8fSMatthias Ringwaldancs_client_demo.h: ancs_client_demo.gatt
155b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
156add9769eSMatthias Ringwaldgatt_browser.h: gatt_browser.gatt
157add9769eSMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
158add9769eSMatthias Ringwaldgatt_battery_query.h: gatt_battery_query.gatt
159add9769eSMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
160bcf00d8fSMatthias Ringwaldspp_and_le_counter.h: spp_and_le_counter.gatt
161b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
162*3d581950SMatthias Ringwaldspp_and_le_streamer.h: spp_and_le_counter.gatt
163*3d581950SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
164bcf00d8fSMatthias Ringwaldle_counter.h: le_counter.gatt
165b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
166bcf00d8fSMatthias Ringwaldle_streamer.h: le_streamer.gatt
167b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
168d7ee901aSMatthias Ringwaldsm_pairing_peripheral.h: sm_pairing_peripheral.gatt
169d7ee901aSMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
170bcf00d8fSMatthias Ringwald
171bcf00d8fSMatthias Ringwald# examples
1723a18db10SMatthias Ringwaldsdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c
173bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
174bcf00d8fSMatthias Ringwald
1752085ff84SMatthias Ringwaldpbap_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} obex_iterator.c goep_client.c pbap_client.c pbap_client_demo.c
176f1b34e8dSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
177f1b34e8dSMatthias Ringwald
1783a18db10SMatthias Ringwaldsdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c
179bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
180bcf00d8fSMatthias Ringwald
1813a18db10SMatthias Ringwaldsdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c
182bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
183bcf00d8fSMatthias Ringwald
1843a18db10SMatthias Ringwaldspp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c
185bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
186bcf00d8fSMatthias Ringwald
1878577affdSMatthias Ringwaldle_counter: le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o le_counter.c
188bcf00d8fSMatthias Ringwald	${CC} $(filter-out le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
189bcf00d8fSMatthias Ringwald
1905b9c6aadSMatthias Ringwaldsm_pairing_peripheral: sm_pairing_peripheral.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_peripheral.c
191d7ee901aSMatthias Ringwald	${CC} $(filter-out sm_pairing_peripheral.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
192d7ee901aSMatthias Ringwald
1931cfb383eSMatthias Ringwaldsm_pairing_central: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} sm_pairing_central.o
19405cb0471SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
1957c485f8bSMatthias Ringwald
1965b9c6aadSMatthias Ringwaldle_streamer: le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_streamer.c
197bcf00d8fSMatthias Ringwald	${CC} $(filter-out le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
198bcf00d8fSMatthias Ringwald
199c8f97be6SMatthias Ringwaldle_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} le_streamer_client.c
200c8f97be6SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
201c8f97be6SMatthias Ringwald
2025b9c6aadSMatthias 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
203bcf00d8fSMatthias Ringwald	${CC} $(filter-out spp_and_le_counter.h,$^)  ${CFLAGS} ${LDFLAGS} -o $@
204bcf00d8fSMatthias Ringwald
205*3d581950SMatthias 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
206*3d581950SMatthias Ringwald	${CC} $(filter-out spp_and_le_streamer.h,$^)  ${CFLAGS} ${LDFLAGS} -o $@
207*3d581950SMatthias Ringwald
2083a18db10SMatthias Ringwaldspp_counter_ssp: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter_ssp.c
209bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
210bcf00d8fSMatthias Ringwald
2113a18db10SMatthias Ringwaldspp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c
212bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
213bcf00d8fSMatthias Ringwald
2143a18db10SMatthias Ringwaldgap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c
215bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
216bcf00d8fSMatthias Ringwald
2171cfb383eSMatthias Ringwaldgap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c
218bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
219bcf00d8fSMatthias Ringwald
2203a18db10SMatthias Ringwaldpanu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} panu_demo.c
221bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
222bcf00d8fSMatthias Ringwald
223add9769eSMatthias Ringwaldgatt_browser: gatt_browser.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} gatt_browser.c
224add9769eSMatthias Ringwald	${CC} $(filter-out gatt_browser.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
225bcf00d8fSMatthias Ringwald
226add9769eSMatthias 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
227add9769eSMatthias Ringwald	${CC} $(filter-out gatt_battery_query.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
228bcf00d8fSMatthias Ringwald
2295b9c6aadSMatthias 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
230bcf00d8fSMatthias Ringwald	${CC} $(filter-out ancs_client_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
231bcf00d8fSMatthias Ringwald
232bcf00d8fSMatthias Ringwaldled_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c
233bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
234bcf00d8fSMatthias Ringwald
2351cfb383eSMatthias Ringwaldgap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} gap_le_advertisements.c
236bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
237bcf00d8fSMatthias Ringwald
238dbb41bfeSMilanka 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
239fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
240bcf00d8fSMatthias Ringwald
241dbb41bfeSMilanka 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
242fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
243fffdd288SMatthias Ringwald
244dbb41bfeSMilanka 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
245fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
246fffdd288SMatthias Ringwald
247dbb41bfeSMilanka 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
248fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
249fffdd288SMatthias Ringwald
2502fa56ea6SMatthias Ringwaldhid_keyboard_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o hid_keyboard_demo.o
2512fa56ea6SMatthias Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
2522fa56ea6SMatthias Ringwald
253bcf00d8fSMatthias Ringwaldclean:
254bcf00d8fSMatthias Ringwald	rm -f ${EXAMPLES}
255bcf00d8fSMatthias Ringwald	rm -f  *.o *.out *.hex *.exe
256c8b300b9SMatthias Ringwald	rm -f  ancs_client_demo.h profile.h spp_and_le_counter.h le_counter.h le_streamer.h
2577bc1dbabSMatthias Ringwald	rm -f  gatt_battery_query.h gatt_browser.h sm_pairing_peripheral.h
258bcf00d8fSMatthias Ringwald	rm -rf *.dSYM
259bcf00d8fSMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/*.o
260c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/ble/*.o
261c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o
262c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/*.o
263c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/ancs_client_demo.h
264c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/profile.h
265c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/spp_and_le_counter.h
266c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/le_counter.h
267c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/le_streamer.h
268