libamxrt  0.4.2
Ambiorix Run Time Library
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 ../mock)
6 
7 HEADERS = $(wildcard $(INCDIR)/amxrt/*.h)
8 SOURCES = $(wildcard $(SRCDIR)/*.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 
18 CFLAGS += -DRWDATAPATH=\"/tmp\"
19 
20 LDFLAGS += -fprofile-arcs -ftest-coverage \
21  -fkeep-inline-functions -fkeep-static-functions \
22  $(shell pkg-config --libs cmocka) -lamxc -lamxp -lamxb -lamxd -lamxo -lamxj -lcap-ng \
23  $(shell pkg-config --libs libevent)
24 
25