13ec0d11bSMatthias RingwaldCC = g++ 23ec0d11bSMatthias Ringwald 38e8dfe94SMatthias Ringwald# Requirements: cpputest.github.io 43ec0d11bSMatthias Ringwald 53ec0d11bSMatthias RingwaldBTSTACK_ROOT = ../.. 63ec0d11bSMatthias Ringwald 7*3edc84c5SMatthias RingwaldCFLAGS = -g -Wall \ 8*3edc84c5SMatthias Ringwald -I.. \ 9*3edc84c5SMatthias Ringwald -I${BTSTACK_ROOT}/example/libusb \ 10*3edc84c5SMatthias Ringwald -I${BTSTACK_ROOT}/src 11*3edc84c5SMatthias Ringwald 123ec0d11bSMatthias RingwaldLDFLAGS += -lCppUTest -lCppUTestExt 133ec0d11bSMatthias Ringwald 143ec0d11bSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src 15*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble 16*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix/src 173ec0d11bSMatthias Ringwald 183ec0d11bSMatthias RingwaldCOMMON = \ 193ec0d11bSMatthias Ringwald utils.c \ 20e04f4e1fSMatthias Ringwald hci_dump.c \ 213ec0d11bSMatthias Ringwald att_db_util.c \ 223ec0d11bSMatthias Ringwald 233ec0d11bSMatthias RingwaldCOMMON_OBJ = $(COMMON:.c=.o) 243ec0d11bSMatthias Ringwald 253ec0d11bSMatthias Ringwaldall: att_db_util_test 263ec0d11bSMatthias Ringwald 273ec0d11bSMatthias Ringwaldatt_db_util_test: ${COMMON_OBJ} att_db_util_test.c 283ec0d11bSMatthias Ringwald ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 293ec0d11bSMatthias Ringwald 308e8dfe94SMatthias Ringwaldtest: all 313ec0d11bSMatthias Ringwald ./att_db_util_test 323ec0d11bSMatthias Ringwald 333ec0d11bSMatthias Ringwaldclean: 343ec0d11bSMatthias Ringwald rm -f att_db_util_test 353ec0d11bSMatthias Ringwald rm -f *.o 363ec0d11bSMatthias Ringwald rm -rf *.dSYM 373ec0d11bSMatthias Ringwald