1 MACHINE = $(shell $(CC) -dumpmachine)
3 SRCDIR = $(realpath ../../src)
4 OBJDIR = $(realpath ../../output/$(MACHINE)/coverage)
5 INCDIR = $(realpath ../../include ../../include_priv ../include)
7 HEADERS = $(wildcard $(INCDIR)/amxo/*.h)
8 SOURCES = $(wildcard $(SRCDIR)/amxo_*.c)
10 CFLAGS += -Werror -Wall -Wextra -Wno-attributes\
11 --std=gnu99 -g3 -Wmissing-declarations \
12 $(addprefix -I ,$(INCDIR)) -I$(OBJDIR)/.. \
13 -fkeep-inline-functions -fkeep-static-functions \
14 -Wno-format-nonliteral \
15 $(shell pkg-config --cflags cmocka) -pthread
16 LDFLAGS += -fkeep-inline-functions -fkeep-static-functions \
17 $(shell pkg-config --libs cmocka) -lamxc -lamxp -lamxd -lamxs -lamxut -ldl -lpthread