mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-09 06:46:36 +00:00
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
CC = g++
|
|
|
|
# Requirements: http://www.cpputest.org/ should be placed in btstack/test
|
|
|
|
BTSTACK_ROOT = ../..
|
|
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
|
|
|
|
CFLAGS = -DUNIT_TEST -x c++ -g -Wall -Wno-unused -I. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include -I$(CPPUTEST_HOME)/include
|
|
LDFLAGS += -L$(CPPUTEST_HOME)/lib -lCppUTest -lCppUTestExt
|
|
|
|
COMMON = \
|
|
${BTSTACK_ROOT}/src/utils.c \
|
|
${BTSTACK_ROOT}/src/btstack_memory.c \
|
|
${BTSTACK_ROOT}/src/memory_pool.c \
|
|
${BTSTACK_ROOT}/src/linked_list.c \
|
|
${BTSTACK_ROOT}/src/sdp_util.c \
|
|
${BTSTACK_ROOT}/src/remote_device_db_memory.c \
|
|
${BTSTACK_ROOT}/src/run_loop.c \
|
|
${BTSTACK_ROOT}/src/run_loop_posix.c \
|
|
${BTSTACK_ROOT}/src/hci_cmds.c \
|
|
${BTSTACK_ROOT}/src/hci_dump.c \
|
|
${BTSTACK_ROOT}/ble/sm.c \
|
|
${BTSTACK_ROOT}/ble/central_device_db_memory.c \
|
|
rijndael.c \
|
|
mock.c
|
|
|
|
COMMON_OBJ = $(COMMON:.c=.o)
|
|
|
|
all: security_manager aestest
|
|
|
|
security_manager: ${CORE_OBJ} ${COMMON_OBJ} security_manager.c
|
|
${CC} ${CORE_OBJ} ${COMMON_OBJ} security_manager.c ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
aestest: aestest.c rijndael.c
|
|
${CC} ${CFLAGS} -m32 rijndael.c aestest.c -o $@
|
|
|
|
clean:
|
|
rm -f security_manager
|
|
rm -f *.o ${BTSTACK_ROOT}/src/*.o
|
|
rm -rf *.dSYM
|
|
|