xref: /btstack/test/ble_client/Makefile (revision dd9e275ce1e161b989cd6bcc449a6811be29e011)
160c84a44S[email protected]CC = g++
260c84a44S[email protected]
38e8dfe94SMatthias Ringwald# Requirements: cpputest.github.io
460c84a44S[email protected]
560c84a44S[email protected]BTSTACK_ROOT =  ../..
660c84a44S[email protected]
78e8dfe94SMatthias RingwaldCFLAGS  = -g -Wall -I.. -I${BTSTACK_ROOT}/example/libusb -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include
8e01fe8b6S[email protected]LDFLAGS += -L$(CPPUTEST_HOME)/lib -lCppUTest -lCppUTestExt
960c84a44S[email protected]
103edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble
11cbe987fbSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src
12*dd9e275cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
13cbe987fbSMatthias Ringwald
1460c84a44S[email protected]COMMON = \
15a484130cSMatthias Ringwald    ad_parser.c                 \
16a484130cSMatthias Ringwald    bk_linked_list.c	        \
17cbe987fbSMatthias Ringwald    btstack_memory.c			\
18a484130cSMatthias Ringwald    hci.c                       \
19cbe987fbSMatthias Ringwald    hci_cmds.c					\
20cbe987fbSMatthias Ringwald    hci_dump.c					\
21a484130cSMatthias Ringwald    memory_pool.c			    \
22a484130cSMatthias Ringwald    run_loop.c					\
23a484130cSMatthias Ringwald    run_loop_posix.c 			\
24a484130cSMatthias Ringwald    utils.c			            \
2560c84a44S[email protected]
2660c84a44S[email protected]COMMON_OBJ = $(COMMON:.c=.o)
2760c84a44S[email protected]
28e01fe8b6S[email protected]all: ad_parser
2960c84a44S[email protected]
3060c84a44S[email protected]ad_parser: ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c
3160c84a44S[email protected]	${CC} ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c ${CFLAGS} ${LDFLAGS} -o $@
3260c84a44S[email protected]
338e8dfe94SMatthias Ringwaldtest: all
3457fe2af8SMatthias Ringwald	./ad_parser
3557fe2af8SMatthias Ringwald
3660c84a44S[email protected]clean:
37085cabc2S[email protected]	rm -f  ad_parser le_central
38cbe987fbSMatthias Ringwald	rm -f  *.o
3960c84a44S[email protected]	rm -rf *.dSYM
4060c84a44S[email protected]