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