xref: /btstack/example/Makefile.inc (revision 3fb2c90b0fe426f4e11a32689404bd2f9b654c9c)
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
8faccbb29SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/mbedtls/library
9c692d776SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc
100e5ac34fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce
110e5ac34fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder//srce
12bcf00d8fSMatthias Ringwald
13bcf00d8fSMatthias RingwaldCFLAGS += -I.
14bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/ble
15bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src/classic
16bcf00d8fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/src
17f40f8caeSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player
18c692d776SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc
190e5ac34fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include
200e5ac34fSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include
2140e13339SMatthias Ringwald
2240e13339SMatthias Ringwald# for CVSD/SBC PLC
2340e13339SMatthias RingwaldLDFLAGS += -lm
2440e13339SMatthias Ringwald
25bcf00d8fSMatthias RingwaldCORE += \
26bcf00d8fSMatthias Ringwald	btstack_memory.c            \
27bcf00d8fSMatthias Ringwald	btstack_linked_list.c	    \
28bcf00d8fSMatthias Ringwald	btstack_memory_pool.c       \
29bcf00d8fSMatthias Ringwald	btstack_run_loop.c		    \
30bcf00d8fSMatthias Ringwald	btstack_util.c 	            \
31bcf00d8fSMatthias Ringwald
32bcf00d8fSMatthias RingwaldCOMMON += \
331cfb383eSMatthias Ringwald	ad_parser.c                 \
34bcf00d8fSMatthias Ringwald	hci.c			            \
35bcf00d8fSMatthias Ringwald	hci_cmd.c		            \
36bcf00d8fSMatthias Ringwald	hci_dump.c		            \
37bcf00d8fSMatthias Ringwald	l2cap.c			            \
38bcf00d8fSMatthias Ringwald	l2cap_signaling.c	        \
393a18db10SMatthias Ringwald
403a18db10SMatthias RingwaldCLASSIC += \
41bcf00d8fSMatthias Ringwald	btstack_link_key_db_memory.c   \
42bcf00d8fSMatthias Ringwald	sdp_util.c	                \
43efda0b48SMatthias Ringwald	spp_server.c  				\
44bcf00d8fSMatthias Ringwald	rfcomm.c	                \
45bcf00d8fSMatthias Ringwald	bnep.c	                    \
46bcf00d8fSMatthias Ringwald	sdp_server.c			            \
47c4b3290dSMatthias Ringwald	device_id_server.c          \
48bcf00d8fSMatthias Ringwald
49bcf00d8fSMatthias RingwaldSDP_CLIENT += \
50bcf00d8fSMatthias Ringwald	sdp_client.o		        \
51efda0b48SMatthias Ringwald	sdp_client_rfcomm.o		    \
52bcf00d8fSMatthias Ringwald
53bcf00d8fSMatthias RingwaldATT	+= \
54bcf00d8fSMatthias Ringwald	att_dispatch.c       	    \
55bcf00d8fSMatthias Ringwald
56bcf00d8fSMatthias RingwaldGATT_SERVER += \
57bcf00d8fSMatthias Ringwald	att_db.c 				 	    \
58bcf00d8fSMatthias Ringwald	att_server.c        	    \
59bcf00d8fSMatthias Ringwald
60bcf00d8fSMatthias RingwaldGATT_CLIENT += \
61bcf00d8fSMatthias Ringwald	gatt_client.c        	    \
62bcf00d8fSMatthias Ringwald
635b9c6aadSMatthias RingwaldSM += \
64bcf00d8fSMatthias Ringwald	sm.c 				 	    \
65bcf00d8fSMatthias Ringwald
66bcf00d8fSMatthias RingwaldPAN += \
67bcf00d8fSMatthias Ringwald	pan.c \
68bcf00d8fSMatthias Ringwald
69faccbb29SMatthias RingwaldMBEDTLS = 					\
70faccbb29SMatthias Ringwald	bignum.c 				\
71faccbb29SMatthias Ringwald	ecp.c 					\
72faccbb29SMatthias Ringwald	ecp_curves.c 			\
7368437d83SMatthias Ringwald	sm_mbedtls_allocator.c  \
74d3bd9600SMatthias Ringwald	memory_buffer_alloc.c   \
756643eff8SMatthias Ringwald	platform.c 				\
76faccbb29SMatthias Ringwald
77c692d776SMatthias RingwaldMICROECC = \
78c692d776SMatthias Ringwald	uECC.c
79c692d776SMatthias Ringwald
800e5ac34fSMatthias Ringwald# List of files for Bluedroid SBC codec
810e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc
820e5ac34fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
83fcb08cdbSMilanka Ringwald
84fcb08cdbSMilanka RingwaldSBC_DECODER += \
85cd7b9db2SMatthias Ringwald	btstack_sbc_plc.c \
86cd7b9db2SMatthias Ringwald	btstack_sbc_bludroid.c \
87fcb08cdbSMilanka Ringwald
884f0d422dSMilanka RingwaldSBC_ENCODER += \
89cd7b9db2SMatthias Ringwald	btstack_sbc_bludroid.c \
90cd7b9db2SMatthias Ringwald	hfp_msbc.c \
914f0d422dSMilanka Ringwald
92fbc7c9f2SMilanka RingwaldCVSD_PLC = \
93cd7b9db2SMatthias Ringwald	btstack_cvsd_plc.c \
94fbc7c9f2SMilanka Ringwald
95f40f8caeSMatthias RingwaldAVDTP += \
96f40f8caeSMatthias Ringwald	avdtp_util.c  		\
97f40f8caeSMatthias Ringwald	avdtp.c  			\
98f40f8caeSMatthias Ringwald	avdtp_initiator.c 	\
99f40f8caeSMatthias Ringwald	avdtp_acceptor.c  	\
100f40f8caeSMatthias Ringwald	avdtp_source.c 		\
101f40f8caeSMatthias Ringwald	avdtp_sink.c  		\
102f40f8caeSMatthias Ringwald	a2dp_source.c 		\
103f40f8caeSMatthias Ringwald	a2dp_sink.c  		\
104f40f8caeSMatthias Ringwald	btstack_ring_buffer.c \
105f40f8caeSMatthias Ringwald
106f40f8caeSMatthias RingwaldHXCMOD_PLAYER = \
107f40f8caeSMatthias Ringwald	${BTSTACK_ROOT}/3rd-party/hxcmod-player/hxcmod.c 						\
108f40f8caeSMatthias Ringwald	${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c 	\
109fbc7c9f2SMilanka Ringwald
110bcf00d8fSMatthias RingwaldEXAMPLES = 					\
1119f951df8SMilanka Ringwald	a2dp_sink_demo			\
112*3fb2c90bSMilanka Ringwald	a2dp_source_demo       \
113bcf00d8fSMatthias Ringwald	ancs_client_demo		\
114bcf00d8fSMatthias Ringwald	gap_dedicated_bonding	\
115bcf00d8fSMatthias Ringwald	gap_inquiry 			\
116*3fb2c90bSMilanka Ringwald	gap_le_advertisements   \
117bcf00d8fSMatthias Ringwald	gatt_battery_query		\
118bcf00d8fSMatthias Ringwald	gatt_browser            \
119*3fb2c90bSMilanka Ringwald	hfp_ag_demo             \
120*3fb2c90bSMilanka Ringwald	hfp_hf_demo             \
1212fa56ea6SMatthias Ringwald	hid_keyboard_demo 	    \
122*3fb2c90bSMilanka Ringwald	hsp_ag_demo             \
123*3fb2c90bSMilanka Ringwald	hsp_hs_demo             \
124bcf00d8fSMatthias Ringwald	le_counter              \
125bcf00d8fSMatthias Ringwald	le_streamer				\
126c8f97be6SMatthias Ringwald	le_streamer_client      \
127bcf00d8fSMatthias Ringwald	led_counter				\
128*3fb2c90bSMilanka Ringwald	pbap_client_demo		\
129bcf00d8fSMatthias Ringwald	sdp_bnep_query 			\
130bcf00d8fSMatthias Ringwald	sdp_general_query		\
131bcf00d8fSMatthias Ringwald	sdp_rfcomm_query		\
132*3fb2c90bSMilanka Ringwald	sm_pairing_central      \
133*3fb2c90bSMilanka Ringwald	sm_pairing_peripheral   \
134bcf00d8fSMatthias Ringwald	spp_and_le_counter 		\
1353d581950SMatthias Ringwald	spp_and_le_streamer     \
136bcf00d8fSMatthias Ringwald	spp_counter 			\
137bcf00d8fSMatthias Ringwald	spp_streamer			\
138cee62800SMatthias Ringwald	spp_streamer_client     \
139bcf00d8fSMatthias Ringwald
140bcf00d8fSMatthias RingwaldEXAMPLES_USING_LE =			\
141bcf00d8fSMatthias Ringwald	ancs_client_demo		\
142bcf00d8fSMatthias Ringwald	gatt_battery_query      \
143bcf00d8fSMatthias Ringwald	gatt_browser			\
144bcf00d8fSMatthias Ringwald	le_counter              \
145bcf00d8fSMatthias Ringwald	le_streamer				\
146c8f97be6SMatthias Ringwald	le_streamer_client      \
147bcf00d8fSMatthias Ringwald	spp_and_le_counter	    \
148bcf00d8fSMatthias Ringwald	gap_le_advertisements   \
149d7ee901aSMatthias Ringwald	sm_pairing_peripheral   \
1507c485f8bSMatthias Ringwald	sm_pairing_central      \
151bcf00d8fSMatthias Ringwald
152bcf00d8fSMatthias Ringwald# .o for .c
153bcf00d8fSMatthias RingwaldCORE_OBJ    = $(CORE:.c=.o)
154bcf00d8fSMatthias RingwaldCOMMON_OBJ  = $(COMMON:.c=.o)
1553a18db10SMatthias RingwaldCLASSIC_OBJ  = $(CLASSIC:.c=.o)
156c692d776SMatthias RingwaldSM_OBJ = $(SM:.c=.o) $(MICROECC:.c=.o)
157bcf00d8fSMatthias RingwaldATT_OBJ     = $(ATT:.c=.o)
158bcf00d8fSMatthias RingwaldGATT_CLIENT_OBJ = $(GATT_CLIENT:.c=.o)
159bcf00d8fSMatthias RingwaldGATT_SERVER_OBJ = $(GATT_SERVER:.c=.o)
160bcf00d8fSMatthias RingwaldPAN_OBJ = $(PAN:.c=.o)
161fcb08cdbSMilanka RingwaldSBC_DECODER_OBJ  = $(SBC_DECODER:.c=.o)
162fcb08cdbSMilanka RingwaldSBC_ENCODER_OBJ  = $(SBC_ENCODER:.c=.o)
163fbc7c9f2SMilanka RingwaldCVSD_PLC_OBJ = $(CVSD_PLC:.c=.o)
164f40f8caeSMatthias RingwaldAVDTP_OBJ  = $(AVDTP:.c=.o)
165f40f8caeSMatthias RingwaldHXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o)
166bcf00d8fSMatthias Ringwald
167bcf00d8fSMatthias Ringwalddefault_target: all
168bcf00d8fSMatthias Ringwald
169bcf00d8fSMatthias Ringwald# compile .gatt descriptions
170bcf00d8fSMatthias Ringwaldprofile.h: profile.gatt
171b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
172bcf00d8fSMatthias Ringwaldancs_client_demo.h: ancs_client_demo.gatt
173b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
174add9769eSMatthias Ringwaldgatt_browser.h: gatt_browser.gatt
175add9769eSMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
176add9769eSMatthias Ringwaldgatt_battery_query.h: gatt_battery_query.gatt
177add9769eSMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
178bcf00d8fSMatthias Ringwaldspp_and_le_counter.h: spp_and_le_counter.gatt
179b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
1803d581950SMatthias Ringwaldspp_and_le_streamer.h: spp_and_le_counter.gatt
1813d581950SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
182bcf00d8fSMatthias Ringwaldle_counter.h: le_counter.gatt
183b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
184bcf00d8fSMatthias Ringwaldle_streamer.h: le_streamer.gatt
185b3fcedb9SMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
186d7ee901aSMatthias Ringwaldsm_pairing_peripheral.h: sm_pairing_peripheral.gatt
187d7ee901aSMatthias Ringwald	python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
188bcf00d8fSMatthias Ringwald
189bcf00d8fSMatthias Ringwald# examples
1903a18db10SMatthias Ringwaldsdp_rfcomm_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${PAN_OBJ} ${SDP_CLIENT} sdp_rfcomm_query.c
191bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
192bcf00d8fSMatthias Ringwald
1932085ff84SMatthias Ringwaldpbap_client_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} obex_iterator.c goep_client.c pbap_client.c pbap_client_demo.c
194f1b34e8dSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
195f1b34e8dSMatthias Ringwald
1963a18db10SMatthias Ringwaldsdp_general_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_general_query.c
197bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
198bcf00d8fSMatthias Ringwald
1993a18db10SMatthias Ringwaldsdp_bnep_query: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} sdp_bnep_query.c
200bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
201bcf00d8fSMatthias Ringwald
2023a18db10SMatthias Ringwaldspp_counter: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_counter.c
203bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
204bcf00d8fSMatthias Ringwald
2058577affdSMatthias Ringwaldle_counter: le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o le_counter.c
206bcf00d8fSMatthias Ringwald	${CC} $(filter-out le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
207bcf00d8fSMatthias Ringwald
2085b9c6aadSMatthias Ringwaldsm_pairing_peripheral: sm_pairing_peripheral.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} sm_pairing_peripheral.c
209d7ee901aSMatthias Ringwald	${CC} $(filter-out sm_pairing_peripheral.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
210d7ee901aSMatthias Ringwald
2111cfb383eSMatthias Ringwaldsm_pairing_central: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} sm_pairing_central.o
21205cb0471SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
2137c485f8bSMatthias Ringwald
2145b9c6aadSMatthias Ringwaldle_streamer: le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_streamer.c
215bcf00d8fSMatthias Ringwald	${CC} $(filter-out le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
216bcf00d8fSMatthias Ringwald
217c8f97be6SMatthias Ringwaldle_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${SM_OBJ} le_streamer_client.c
218c8f97be6SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
219c8f97be6SMatthias Ringwald
2205b9c6aadSMatthias 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
221bcf00d8fSMatthias Ringwald	${CC} $(filter-out spp_and_le_counter.h,$^)  ${CFLAGS} ${LDFLAGS} -o $@
222bcf00d8fSMatthias Ringwald
2233d581950SMatthias 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
2243d581950SMatthias Ringwald	${CC} $(filter-out spp_and_le_streamer.h,$^)  ${CFLAGS} ${LDFLAGS} -o $@
2253d581950SMatthias Ringwald
226cee62800SMatthias Ringwaldspp_streamer: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} spp_streamer.c
227bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
228bcf00d8fSMatthias Ringwald
229cee62800SMatthias Ringwaldspp_streamer_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} spp_streamer_client.c
230bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
231bcf00d8fSMatthias Ringwald
2323a18db10SMatthias Ringwaldgap_dedicated_bonding: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_dedicated_bonding.c
233bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
234bcf00d8fSMatthias Ringwald
2351cfb383eSMatthias Ringwaldgap_inquiry: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} gap_inquiry.c
236bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
237bcf00d8fSMatthias Ringwald
2383a18db10SMatthias Ringwaldpanu_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} panu_demo.c
239bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
240bcf00d8fSMatthias Ringwald
241add9769eSMatthias Ringwaldgatt_browser: gatt_browser.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} gatt_browser.c
242add9769eSMatthias Ringwald	${CC} $(filter-out gatt_browser.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
243bcf00d8fSMatthias Ringwald
244add9769eSMatthias 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
245add9769eSMatthias Ringwald	${CC} $(filter-out gatt_battery_query.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
246bcf00d8fSMatthias Ringwald
2475b9c6aadSMatthias 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
248bcf00d8fSMatthias Ringwald	${CC} $(filter-out ancs_client_demo.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
249bcf00d8fSMatthias Ringwald
250bcf00d8fSMatthias Ringwaldled_counter: ${CORE_OBJ} ${COMMON_OBJ} led_counter.c
251bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
252bcf00d8fSMatthias Ringwald
2531cfb383eSMatthias Ringwaldgap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} gap_le_advertisements.c
254bcf00d8fSMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
255bcf00d8fSMatthias Ringwald
256dbb41bfeSMilanka 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
257fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
258bcf00d8fSMatthias Ringwald
259dbb41bfeSMilanka 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
260fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
261fffdd288SMatthias Ringwald
262dbb41bfeSMilanka 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
263fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
264fffdd288SMatthias Ringwald
265dbb41bfeSMilanka 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
266fbc7c9f2SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
267fffdd288SMatthias Ringwald
2682fa56ea6SMatthias Ringwaldhid_keyboard_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o hid_keyboard_demo.o
2692fa56ea6SMatthias Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
2702fa56ea6SMatthias Ringwald
271*3fb2c90bSMilanka Ringwalda2dp_source_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} ${HXCMOD_PLAYER_OBJ} a2dp_source_demo.c
27208c0d996SMatthias Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
27308c0d996SMatthias Ringwald
2749f951df8SMilanka Ringwalda2dp_sink_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} avrcp.o a2dp_sink_demo.c
2759f951df8SMilanka Ringwald	${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
276f40f8caeSMatthias Ringwald
277bcf00d8fSMatthias Ringwaldclean:
278*3fb2c90bSMilanka Ringwald	rm -f ${EXAMPLES} *_demo
279de804f9eSMilanka Ringwald	rm -f  *.o *.out *.hex *.exe *.wav *.sbc
280c8b300b9SMatthias Ringwald	rm -f  ancs_client_demo.h profile.h spp_and_le_counter.h le_counter.h le_streamer.h
2817bc1dbabSMatthias Ringwald	rm -f  gatt_battery_query.h gatt_browser.h sm_pairing_peripheral.h
282bcf00d8fSMatthias Ringwald	rm -rf *.dSYM
283bcf00d8fSMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/*.o
284c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/ble/*.o
285c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/src/ble/gatt-service/*.o
286c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/*.o
287c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/ancs_client_demo.h
288c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/profile.h
289c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/spp_and_le_counter.h
290c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/le_counter.h
291c8b300b9SMatthias Ringwald	rm -rf ${BTSTACK_ROOT}/example/le_streamer.h
292