btstack/test/linked_list/Makefile
2014-06-16 20:55:54 +00:00

25 lines
567 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../ -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/include -I$(CPPUTEST_HOME)/include
LDFLAGS += -L$(CPPUTEST_HOME)/lib -lCppUTest -lCppUTestExt
COMMON = \
${BTSTACK_ROOT}/src/linked_list.c \
COMMON_OBJ = $(COMMON:.c=.o)
all: linked_list_test
linked_list_test: ${COMMON_OBJ} linked_list_test.c
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
clean:
rm -fr linked_list_test *.dSYM *.o ../src/*.o