libamxo  4.3.4
Object Definition Language (ODL) parsing
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)/amxo/*.h)
8 SOURCES = $(wildcard $(SRCDIR)/amxo_*.c)
9 
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
18