libamxs  0.6.0
Data Model Synchronization 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)/amxs/*.h)
9 SOURCES = $(wildcard $(SRCDIR)/amxs_*.c)\
10  $(wildcard $(MOCK_SRCDIR)/*.c)
11 
12 CFLAGS += -Werror -Wall -Wextra -Wno-attributes \
13  --std=gnu99 -g3 -Wmissing-declarations \
14  $(addprefix -I ,$(INCDIR)) \
15  -fprofile-arcs -ftest-coverage \
16  -fkeep-inline-functions -fkeep-static-functions \
17  -Wno-format-nonliteral \
18  $(shell pkg-config --cflags cmocka)
19 LDFLAGS += -fprofile-arcs -ftest-coverage \
20  -fkeep-inline-functions -fkeep-static-functions \
21  $(shell pkg-config --libs cmocka) -lamxc -lamxp -lamxb -lamxd -lamxo