-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.am
41 lines (30 loc) · 1.06 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
AUTOMAKE_OPTIONS = subdir-objects serial-tests
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
DIST_SUBDIRS = example
HEADER_FILES = \
src/dynamic/hash.h \
src/dynamic/data.h \
src/dynamic/buffer.h \
src/dynamic/vector.h \
src/dynamic/list.h \
src/dynamic/map.h
headerfilesdir = $(includedir)/dynamic
headerfiles_HEADERS = $(HEADER_FILES)
mainheaderdir = $(includedir)
mainheader_HEADERS = src/dynamic.h
MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in libdynamic-?.?.?.tar.gz
CLEANFILES = {.,test/,src/dynamic/}/*.{gcno,gcda,gcov}
maintainer-clean-local:
rm -rf autotools m4 libdynamic-?.?.?
### unit testing ###
AM_CFLAGS = -std=gnu2x -Wall -Werror -pedantic -g -flto -O0 -ftest-coverage -fprofile-arcs -I$(srcdir)/src -DGCOV_BUILD -DUNIT_TESTING
LDADD = -lcmocka
check_PROGRAMS = \
test/hash \
test/data \
test/buffer \
test/vector \
test/list \
test/map
dist_noinst_SCRIPTS = test/valgrind.sh test/coverage.sh
TESTS = $(check_PROGRAMS) test/coverage.sh test/valgrind.sh