52 lines
1.1 KiB
Makefile
Raw Normal View History

2015-02-12 21:55:27 +00:00
CC=g++
# Requirements: cpputest.github.io
2015-02-12 21:55:27 +00:00
BTSTACK_ROOT = ../..
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
2015-11-13 15:04:41 +01:00
CFLAGS = -g -Wall \
-I. \
-I.. \
-I${BTSTACK_ROOT}/src
LDFLAGS += -lCppUTest -lCppUTestExt
2015-11-13 15:04:41 +01:00
VPATH += ${BTSTACK_ROOT}/src/classic
VPATH += ${BTSTACK_ROOT}/src
2015-11-13 15:04:41 +01:00
VPATH += ${BTSTACK_ROOT}/platform/posix/src
2015-02-12 21:55:27 +00:00
FS = \
utils.c \
2015-10-11 23:31:11 +02:00
hci_dump.c \
remote_device_db_fs.c
2015-02-12 21:55:27 +00:00
MEMORY = \
utils.c \
memory_pool.c \
btstack_memory.c \
2015-10-11 23:31:11 +02:00
hci_dump.c \
remote_device_db_memory.c \
linked_list.c
2015-02-12 21:55:27 +00:00
FS_OBJ = $(FS:.c=.o)
MEMORY_OBJ = $(MEMORY:.c=.o)
all: remote_device_db_memory_test remote_device_db_fs_test
remote_device_db_memory_test: ${MEMORY_OBJ} remote_device_db_memory_test.c
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
remote_device_db_fs_test: ${FS_OBJ} remote_device_db_fs_test.c
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
test: all
./remote_device_db_memory_test
./remote_device_db_fs_test
2015-02-12 21:55:27 +00:00
clean:
rm -f remote_device_db_memory_test remote_device_db_fs_test *.o ../src/*.o
rm -rf *.dSYM