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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
|
AUTOMAKE_OPTIONS = parallel-tests
bin_PROGRAMS =
check_PROGRAMS =
TESTS =
EXTRA_DIST =
CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
EXTRA_DIST += COPYRIGHT
EXTRA_DIST += LICENSE
EXTRA_DIST += README.md
EXTRA_DIST += man/fstrm_capture.1
EXTRA_DIST += man/fstrm_replay.1
EXTRA_DIST += man/fstrm_dump.1
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-I${top_srcdir}/fstrm
AM_CFLAGS = ${my_CFLAGS}
AM_LDFLAGS =
#
##
### code coverage
##
#
AM_CFLAGS += ${CODE_COVERAGE_CFLAGS}
AM_LDFLAGS += ${CODE_COVERAGE_LDFLAGS}
CODE_COVERAGE_LCOV_OPTIONS = --no-external
CODE_COVERAGE_IGNORE_PATTERN = "$(abs_top_builddir)/t/*"
@CODE_COVERAGE_RULES@
#
##
### library
##
#
LIBFSTRM_VERSION_INFO=1:0:1
fstrm_libfstrm_la_DEPENDENCIES = \
$(top_srcdir)/fstrm/libfstrm.sym
lib_LTLIBRARIES = fstrm/libfstrm.la
include_HEADERS = fstrm/fstrm.h
nobase_include_HEADERS = \
fstrm/control.h \
fstrm/iothr.h \
fstrm/file.h \
fstrm/rdwr.h \
fstrm/reader.h \
fstrm/tcp_writer.h \
fstrm/unix_writer.h \
fstrm/writer.h
fstrm_libfstrm_la_SOURCES = \
fstrm/fstrm-private.h \
fstrm/control.c fstrm/control.h \
fstrm/file.c fstrm/file.h \
fstrm/iothr.c fstrm/iothr.h \
fstrm/rdwr.c fstrm/rdwr.h \
fstrm/reader.c fstrm/reader.h \
fstrm/tcp_writer.c fstrm/tcp_writer.h \
fstrm/time.c \
fstrm/unix_writer.c fstrm/unix_writer.h \
fstrm/writer.c fstrm/writer.h \
libmy/my_alloc.h \
libmy/my_memory_barrier.h \
libmy/my_queue.h \
libmy/my_queue_mb.c \
libmy/my_queue_mutex.c \
libmy/read_bytes.h \
libmy/ubuf.h \
libmy/vector.h
EXTRA_DIST += \
libmy/my_queue_mb.c \
libmy/my_queue_mutex.c
fstrm_libfstrm_la_CFLAGS = $(AM_CFLAGS)
fstrm_libfstrm_la_LDFLAGS = $(AM_LDFLAGS) \
-version-info $(LIBFSTRM_VERSION_INFO)
if HAVE_LD_VERSION_SCRIPT
fstrm_libfstrm_la_LDFLAGS += \
-Wl,--version-script=$(top_srcdir)/fstrm/libfstrm.sym
else
fstrm_libfstrm_la_LDFLAGS += \
-export-symbols-regex "^(fstrm_[a-z]*)"
endif
EXTRA_DIST += fstrm/libfstrm.sym
pkgconfig_DATA = ${LIBFSTRM_PC}
CLEANFILES += ${LIBFSTRM_PC}
EXTRA_DIST += fstrm/libfstrm.pc.in
#
##
### tests
##
#
AM_TESTS_ENVIRONMENT = DIRNAME=$(top_builddir)/t; export DIRNAME;
TESTS_ENVIRONMENT = $(AM_TESTS_ENVIRONMENT)
LOG_COMPILER = $(VALGRIND)
check_PROGRAMS += t/test_control
t_test_control_SOURCES = \
t/test_control.c \
libmy/print_string.h
t_test_control_LDADD = \
fstrm/libfstrm.la
TESTS += t/test_control
check_PROGRAMS += t/test_queue
t_test_queue_SOURCES = \
t/test_queue.c \
libmy/my_queue.h \
libmy/my_queue_mb.c \
libmy/my_queue_mutex.c \
libmy/my_time.h
t/run_test_queue.sh: t/test_queue
TESTS += t/run_test_queue.sh
EXTRA_DIST += t/run_test_queue.sh
check_PROGRAMS += t/test_fstrm_io_file
t_test_fstrm_io_file_SOURCES = \
t/test_fstrm_io_file.c \
libmy/my_alloc.h \
libmy/my_time.h \
libmy/ubuf.h \
libmy/vector.h
t_test_fstrm_io_file_LDADD = \
fstrm/libfstrm.la
t/run_test_fstrm_io_file.sh: t/test_fstrm_io_file
TESTS += t/run_test_fstrm_io_file.sh
EXTRA_DIST += t/run_test_fstrm_io_file.sh
check_PROGRAMS += t/test_fstrm_io_sock
t_test_fstrm_io_sock_SOURCES = \
t/test_fstrm_io_sock.c \
libmy/my_alloc.h \
libmy/my_time.h \
libmy/print_string.h \
libmy/ubuf.h \
libmy/vector.h
t_test_fstrm_io_sock_LDADD = \
fstrm/libfstrm.la
t/run_test_fstrm_io_unix.sh: t/test_fstrm_io_sock
TESTS += t/run_test_fstrm_io_unix.sh
EXTRA_DIST += t/run_test_fstrm_io_unix.sh
t/run_test_fstrm_io_tcp.sh: t/test_fstrm_io_sock
TESTS += t/run_test_fstrm_io_tcp.sh
EXTRA_DIST += t/run_test_fstrm_io_tcp.sh
check_PROGRAMS += t/test_writer_hello
t_test_writer_hello_SOURCES = \
t/test_writer_hello.c \
libmy/my_alloc.h \
libmy/print_string.h
t_test_writer_hello_LDADD = \
fstrm/libfstrm.la
TESTS += t/test_writer_hello
check_PROGRAMS += t/test_file_hello
t_test_file_hello_SOURCES = \
t/test_file_hello.c \
libmy/print_string.h
t_test_file_hello_LDADD = \
fstrm/libfstrm.la
TESTS += t/test_file_hello
# program tests
EXTRA_DIST += \
t/program_tests/test_fstrm_dump.sh.in \
t/program_tests/test_fstrm_replay.sh.in \
t/program_tests/test.fstrm \
t/program_tests/test-fstrm.txt
#
##
### programs
##
#
if BUILD_PROGRAMS
bin_PROGRAMS += src/fstrm_dump
src_fstrm_dump_SOURCES = \
src/fstrm_dump.c \
libmy/print_string.h
src_fstrm_dump_LDADD = \
fstrm/libfstrm.la
bin_PROGRAMS += src/fstrm_replay
src_fstrm_replay_SOURCES = \
src/fstrm_replay.c \
libmy/argv.c libmy/argv.h libmy/argv_loc.h
src_fstrm_replay_LDADD = \
fstrm/libfstrm.la
bin_PROGRAMS += src/fstrm_capture
src_fstrm_capture_CFLAGS = \
$(AM_CFLAGS) \
$(libevent_CFLAGS)
src_fstrm_capture_SOURCES = \
src/fstrm_capture.c \
libmy/argv.c libmy/argv.h libmy/argv_loc.h
src_fstrm_capture_LDADD = \
fstrm/libfstrm.la \
$(libevent_LIBS)
man_MANS=man/fstrm_capture.1 man/fstrm_replay.1 man/fstrm_dump.1
TESTS += t/program_tests/test_fstrm_dump.sh \
t/program_tests/test_fstrm_replay.sh
endif
#
##
### documentation
##
#
if HAVE_DOXYGEN
stamp-html: $(DOXYGEN_INPUT_FILES) $(top_builddir)/Doxyfile $(top_srcdir)/DoxygenLayout.xml $(include_HEADERS) $(nobase_include_HEADERS)
$(AM_V_GEN) $(DOXYGEN)
@touch $@
html-local: stamp-html
clean-local:
rm -rf $(top_builddir)/html $(top_builddir)/stamp-html
endif
EXTRA_DIST += Doxyfile.in
EXTRA_DIST += DoxygenLayout.xml
|