libamxc  1.10.3
C Generic Data Containers
test_defines.mk
Go to the documentation of this file.
1 MACHINE = $(shell $(CC) -dumpmachine)
2 
3 SRCDIR = $(realpath ../../src)
4 OBJDIR = $(realpath ../../output/$(MACHINE)/coverage)
5 INCDIR = $(realpath ../../include ../../include_priv ../include)
6 
7 HEADERS = $(wildcard $(INCDIR)/amxc/*.h)
8 SOURCES = $(wildcard $(SRCDIR)/amxc_*.c) \
9  $(wildcard $(SRCDIR)/variants/*.c) \
10  $(wildcard ../common/*.c) \
11 
12 CFLAGS += -Werror -Wall -Wextra \
13  --std=gnu99 -g3 -Wmissing-declarations -Wno-implicit-fallthrough \
14  -Wno-format-nonliteral \
15  $(addprefix -I ,$(INCDIR)) \
16  -fprofile-arcs -ftest-coverage \
17  -fkeep-inline-functions -fkeep-static-functions \
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)