@@ -2,26 +2,28 @@ ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
22AM_CFLAGS = -std=gnu11 -g -O3 -flto -fuse-linker-plugin
33AM_LDFLAGS = -static
44
5- DIST_SUBDIRS = docs benchmark
5+ DIST_SUBDIRS = docs benchmark examples
66
77EXTRA_DIST = \
88CHANGES \
99LICENSE \
1010README.rst
1111
1212SOURCE_FILES = \
13+ src/dynamic/hash.c \
14+ src/dynamic/buffer.c \
15+ src/dynamic/list.c \
1316src/dynamic/vector.c \
1417src/dynamic/string.c \
15- src/dynamic/buffer.c \
16- src/dynamic/map.c \
17- src/dynamic/hash.c
18+ src/dynamic/map.c
1819
1920HEADER_FILES = \
21+ src/dynamic/hash.h \
22+ src/dynamic/buffer.h \
23+ src/dynamic/list.h \
2024src/dynamic/vector.h \
2125src/dynamic/string.h \
22- src/dynamic/buffer.h \
23- src/dynamic/map.h \
24- src/dynamic/hash.h
26+ src/dynamic/map.h
2527
2628AUTOMAKE_OPTIONS = subdir-objects
2729lib_LTLIBRARIES = libdynamic.la
@@ -36,7 +38,7 @@ mainheader_HEADERS = src/dynamic.h
3638pkgconfigdir = $(libdir ) /pkgconfig
3739pkgconfig_DATA = libdynamic.pc
3840
39- MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in docs/Makefile.in benchmark/Makefile.in libdynamic-?.?.?.tar.gz
41+ MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in docs/Makefile.in benchmark/Makefile.in examples/Makefile.in libdynamic-?.?.?.tar.gz
4042maintainer-clean-local :; rm -rf autotools m4 libdynamic-?.?.?
4143
4244# ## unit tests ###
@@ -49,12 +51,25 @@ check_LIBRARIES = libdynamic_test.a
4951libdynamic_test_a_CFLAGS = $(CHECK_CFLAGS )
5052libdynamic_test_a_SOURCES = $(SOURCE_FILES ) $(HEADER_FILES )
5153
52- check_PROGRAMS = test/buffer
54+
55+ check_PROGRAMS = test/hash
56+ test_hash_CFLAGS = $(CHECK_CFLAGS )
57+ test_hash_LDADD = $(CHECK_LDADD )
58+ test_hash_LDFLAGS = $(CHECK_LDFLAGS_EXTRA )
59+ test_hash_SOURCES = test/hash.c test/mock.c
60+
61+ check_PROGRAMS += test/buffer
5362test_buffer_CFLAGS = $(CHECK_CFLAGS )
5463test_buffer_LDADD = $(CHECK_LDADD )
5564test_buffer_LDFLAGS = $(CHECK_LDFLAGS_EXTRA )
5665test_buffer_SOURCES = test/buffer.c test/mock.c
5766
67+ check_PROGRAMS += test/list
68+ test_list_CFLAGS = $(CHECK_CFLAGS )
69+ test_list_LDADD = $(CHECK_LDADD )
70+ test_list_LDFLAGS = $(CHECK_LDFLAGS_EXTRA )
71+ test_list_SOURCES = test/list.c test/mock.c
72+
5873check_PROGRAMS += test/vector
5974test_vector_CFLAGS = $(CHECK_CFLAGS )
6075test_vector_LDADD = $(CHECK_LDADD )
@@ -67,12 +82,6 @@ test_string_LDADD = $(CHECK_LDADD)
6782test_string_LDFLAGS = $(CHECK_LDFLAGS_EXTRA )
6883test_string_SOURCES = test/string.c test/mock.c
6984
70- check_PROGRAMS += test/hash
71- test_hash_CFLAGS = $(CHECK_CFLAGS )
72- test_hash_LDADD = $(CHECK_LDADD )
73- test_hash_LDFLAGS = $(CHECK_LDFLAGS_EXTRA )
74- test_hash_SOURCES = test/hash.c test/mock.c
75-
7685check_PROGRAMS += test/map
7786test_map_CFLAGS = $(CHECK_CFLAGS )
7887test_map_LDADD = $(CHECK_LDADD )
0 commit comments