libamxb  4.8.2
Bus Agnostic C API
test_defines.mk
Go to the documentation of this file.
1 MACHINE = $(shell $(CC) -dumpmachine)
2 
3 MOCK_SRCDIR = $(realpath ../mock)
4 SRCDIR = $(realpath ../../src)
5 OBJDIR = $(realpath ../../output/$(MACHINE)/coverage)
6 INCDIR = $(realpath ../../include ../../include_priv ../include ../mock)
7 
8 HEADERS = $(wildcard $(INCDIR)/amxb/*.h)
9 SOURCES = $(wildcard $(SRCDIR)/*.c)
10 
11 CFLAGS += -Werror -Wall -Wextra \
12  --std=gnu99 -g3 -Wmissing-declarations \
13  $(addprefix -I ,$(INCDIR)) \
14  -fprofile-arcs -ftest-coverage \
15  -fkeep-inline-functions -fkeep-static-functions \
16  -Wno-format-nonliteral \
17  $(shell pkg-config --cflags cmocka) \
18  -fPIC
19 LDFLAGS += -fprofile-arcs -ftest-coverage \
20  -fkeep-inline-functions -fkeep-static-functions \
21  $(shell pkg-config --libs cmocka) -lamxc -lamxp -lamxd -lamxo -luriparser -ldl