examples: update target clean in Makefile, add generated file to gitignore

This commit is contained in:
Milanka Ringwald 2016-06-16 15:21:28 +02:00
parent df327ff315
commit d7b6902fc1
2 changed files with 34 additions and 32 deletions

View File

@ -12,43 +12,43 @@ CFLAGS += -I${BTSTACK_ROOT}/3rd-party/mbedtls/include
CFLAGS += -I${BTSTACK_ROOT}/test/security_manager CFLAGS += -I${BTSTACK_ROOT}/test/security_manager
CORE += \ CORE += \
btstack_memory.c \ btstack_memory.c \
btstack_linked_list.c \ btstack_linked_list.c \
btstack_memory_pool.c \ btstack_memory_pool.c \
btstack_run_loop.c \ btstack_run_loop.c \
btstack_util.c \ btstack_util.c \
COMMON += \ COMMON += \
hci.c \ hci.c \
hci_cmd.c \ hci_cmd.c \
hci_dump.c \ hci_dump.c \
l2cap.c \ l2cap.c \
l2cap_signaling.c \ l2cap_signaling.c \
btstack_link_key_db_memory.c \ btstack_link_key_db_memory.c \
sdp_util.c \ sdp_util.c \
spp_server.c \ spp_server.c \
rfcomm.c \ rfcomm.c \
bnep.c \ bnep.c \
sdp_server.c \ sdp_server.c \
SDP_CLIENT += \ SDP_CLIENT += \
sdp_client.o \ sdp_client.o \
sdp_client_rfcomm.o \ sdp_client_rfcomm.o \
ATT += \ ATT += \
att_dispatch.c \ att_dispatch.c \
GATT_SERVER += \ GATT_SERVER += \
att_db.c \ att_db.c \
att_server.c \ att_server.c \
GATT_CLIENT += \ GATT_CLIENT += \
ad_parser.c \ ad_parser.c \
gatt_client.c \ gatt_client.c \
SM_REAL += \ SM_REAL += \
sm.c \ sm.c \
le_device_db_memory.c \ le_device_db_memory.c \
PAN += \ PAN += \
pan.c \ pan.c \
@ -76,13 +76,13 @@ EXAMPLES = \
spp_and_le_counter \ spp_and_le_counter \
spp_counter \ spp_counter \
spp_streamer \ spp_streamer \
gap_le_advertisements \ gap_le_advertisements \
hfp_ag_demo \ hfp_ag_demo \
hfp_hf_demo \ hfp_hf_demo \
hsp_ag_demo \ hsp_ag_demo \
hsp_hs_demo \ hsp_hs_demo \
sm_pairing_peripheral \ sm_pairing_peripheral \
sm_pairing_central \ sm_pairing_central \
EXAMPLES_USING_LE = \ EXAMPLES_USING_LE = \
ancs_client_demo \ ancs_client_demo \
@ -91,9 +91,9 @@ EXAMPLES_USING_LE = \
le_counter \ le_counter \
le_streamer \ le_streamer \
spp_and_le_counter \ spp_and_le_counter \
gap_le_advertisements \ gap_le_advertisements \
sm_pairing_peripheral \ sm_pairing_peripheral \
sm_pairing_central \ sm_pairing_central \
# .o for .c # .o for .c
CORE_OBJ = $(CORE:.c=.o) CORE_OBJ = $(CORE:.c=.o)
@ -192,6 +192,7 @@ hfp_hf_demo: ${CORE_OBJ} ${COMMON_OBJ} ${SDP_CLIENT} sco_demo_util.o hfp.o hfp_h
clean: clean:
rm -f ${EXAMPLES} rm -f ${EXAMPLES}
rm -f ${EXAMPLES_USING_LE}
rm -f *.o *.out *.hex *.exe rm -f *.o *.out *.hex *.exe
rm -f ancs_client_demo.h profile.h spp_and_le_counter.h rm -f ancs_client_demo.h profile.h spp_and_le_counter.h
rm -rf *.dSYM rm -rf *.dSYM

View File

@ -34,3 +34,4 @@ le_streamer
spp_streamer spp_streamer
hfp_ag_demo hfp_ag_demo
hfp_hf_demo hfp_hf_demo
sm_pairing_peripheral.h