libamxp  1.4.0
Patterns C Implementation
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)/amxp/*.h)
8 SOURCES = $(wildcard $(SRCDIR)/amxp_*.c) \
9  $(wildcard $(SRCDIR)/variant_*.c)
10 
11 CFLAGS += -Werror -Wall -Wextra \
12  --std=gnu99 -g3 -Wmissing-declarations -Wno-format-nonliteral \
13  $(addprefix -I ,$(INCDIR)) -I$(OBJDIR)/.. \
14  -fkeep-inline-functions -fkeep-static-functions \
15  $(shell pkg-config --cflags cmocka) -pthread
16 LDFLAGS += -fkeep-inline-functions -fkeep-static-functions \
17  $(shell pkg-config --libs cmocka) -lamxc -lpthread