Skip to content

Commit

Permalink
Add segment and utility
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikwidlund committed Jun 7, 2020
1 parent d600a4c commit 86a2314
Show file tree
Hide file tree
Showing 41 changed files with 250 additions and 866 deletions.
30 changes: 24 additions & 6 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
AM_CFLAGS = -std=gnu11 -g -O3 -flto
AM_LDFLAGS = -static -pthread
AM_CFLAGS = -std=gnu2x -g -O3 -march=native -flto -I$(srcdir)/src
AM_LDFLAGS = -static

DIST_SUBDIRS = docs benchmark examples
DIST_SUBDIRS = docs examples

EXTRA_DIST = \
CHANGES \
LICENSE \
README.rst

SOURCE_FILES = \
src/dynamic/segment.c \
src/dynamic/utility.c \
src/dynamic/hash.c \
src/dynamic/buffer.c \
src/dynamic/list.c \
Expand All @@ -22,6 +25,8 @@ src/dynamic/pool.c \
src/dynamic/core.c

HEADER_FILES = \
src/dynamic/segment.h \
src/dynamic/utility.h \
src/dynamic/hash.h \
src/dynamic/buffer.h \
src/dynamic/list.h \
Expand All @@ -33,7 +38,6 @@ src/dynamic/mapi.h \
src/dynamic/pool.h \
src/dynamic/core.h

AUTOMAKE_OPTIONS = subdir-objects
lib_LTLIBRARIES= libdynamic.la
libdynamic_la_SOURCES = $(SOURCE_FILES) $(HEADER_FILES)

Expand All @@ -55,7 +59,7 @@ check_LIBRARIES = libdynamic_test.a
libdynamic_test_a_CFLAGS = $(CHECK_CFLAGS)
libdynamic_test_a_SOURCES = $(SOURCE_FILES) $(HEADER_FILES)

CHECK_CFLAGS = -std=gnu11 -O0 -g -ftest-coverage -fprofile-arcs
CHECK_CFLAGS = -std=gnu2x -O0 -g -ftest-coverage -fprofile-arcs -I$(srcdir)/src -DGCOV_BUILD
CHECK_LDADD = libdynamic_test.a -lcmocka
CHECK_LDFLAGS_EXTRA = \
-Wl,--wrap=malloc \
Expand All @@ -72,7 +76,21 @@ CHECK_LDFLAGS_EXTRA = \
-Wl,--wrap=epoll_wait \
-pthread

check_PROGRAMS = test/hash
check_PROGRAMS =

check_PROGRAMS += test/segment
test_segment_CFLAGS = $(CHECK_CFLAGS)
test_segment_LDADD = $(CHECK_LDADD)
test_segment_LDFLAGS = $(CHECK_LDFLAGS_EXTRA)
test_segment_SOURCES = test/segment.c test/mock.c

check_PROGRAMS += test/utility
test_utility_CFLAGS = $(CHECK_CFLAGS)
test_utility_LDADD = $(CHECK_LDADD)
test_utility_LDFLAGS = $(CHECK_LDFLAGS_EXTRA)
test_utility_SOURCES = test/utility.c test/mock.c

check_PROGRAMS += test/hash
test_hash_CFLAGS = $(CHECK_CFLAGS)
test_hash_LDADD = $(CHECK_LDADD)
test_hash_LDFLAGS = $(CHECK_LDFLAGS_EXTRA)
Expand Down
36 changes: 0 additions & 36 deletions benchmark/Makefile.am

This file was deleted.

4 changes: 0 additions & 4 deletions benchmark/README

This file was deleted.

41 changes: 0 additions & 41 deletions benchmark/map.R

This file was deleted.

183 changes: 0 additions & 183 deletions benchmark/map.c

This file was deleted.

6 changes: 0 additions & 6 deletions benchmark/map.h

This file was deleted.

0 comments on commit 86a2314

Please sign in to comment.