mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-24 03:40:07 +00:00
27 lines
698 B
Makefile
27 lines
698 B
Makefile
CC = g++
|
|
|
|
# Requirements: http://www.cpputest.org/ should be placed in btstack/test
|
|
|
|
BTSTACK_ROOT = ../..
|
|
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
|
|
|
|
CFLAGS = -g -Wall -I. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/include -I$(CPPUTEST_HOME)/include
|
|
LDFLAGS += -L$(CPPUTEST_HOME) -lCppUTest -lCppUTestExt
|
|
|
|
COMMON = \
|
|
${BTSTACK_ROOT}/src/sdp_util.c \
|
|
${BTSTACK_ROOT}/src/sdp_parser.c \
|
|
${BTSTACK_ROOT}/src/sdp_query_rfcomm.c \
|
|
${BTSTACK_ROOT}/src/utils.c \
|
|
|
|
COMMON_OBJ = $(COMMON:.c=.o)
|
|
|
|
all: test_sdp
|
|
|
|
test_sdp: ${COMMON_OBJ} test_sdp.c
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
clean:
|
|
rm -f test_sdp *.o ${BTSTACK_ROOT}/src/*.o
|
|
rm -rf *.dSYM
|
|
|