libcruft-util/Makefile.am

292 lines
5.9 KiB
Makefile
Raw Normal View History

2014-05-09 13:09:36 +10:00
###############################################################################
## Global build rules
2011-05-23 17:18:52 +10:00
ACLOCAL_AMFLAGS = -I m4
AM_CXXFLAGS = $(BOOST_CPPFLAGS) $(ZLIB_CFLAGS)
2011-05-23 17:18:52 +10:00
2014-05-09 13:09:36 +10:00
###############################################################################
## Source definitions
UTIL_FILES = \
2015-03-07 03:16:57 +11:00
aabb.cpp \
aabb.hpp \
2011-08-29 14:36:03 +10:00
backtrace.hpp \
2015-01-21 23:42:45 +11:00
bezier.cpp \
bezier.hpp \
bitwise.cpp \
bitwise.hpp \
colour.cpp \
2011-09-13 15:14:12 +10:00
colour.hpp \
coord.hpp \
coord/base.hpp \
coord/init.hpp \
coord/names.hpp \
coord/ops.hpp \
coord/store.hpp \
debug.cpp \
2011-08-29 14:36:03 +10:00
debug.hpp \
endian.cpp \
2011-08-29 14:36:03 +10:00
endian.hpp \
except.cpp \
2011-08-29 14:36:03 +10:00
except.hpp \
2012-04-30 11:50:38 +10:00
exe.cpp \
exe.hpp \
extent.cpp \
2011-10-26 21:43:38 +11:00
extent.hpp \
extent.ipp \
fixed.cpp \
2011-08-29 14:36:03 +10:00
fixed.hpp \
float.cpp \
2011-08-29 14:36:03 +10:00
float.hpp \
2012-11-09 15:11:02 +11:00
fourcc.cpp \
fourcc.hpp \
guid.cpp \
2011-08-29 14:37:20 +10:00
guid.hpp \
hash.cpp \
hash.hpp \
hash/adler.cpp \
hash/adler.hpp \
hash/bsdsum.hpp \
hash/bsdsum.cpp \
hash/crc.cpp \
hash/crc.hpp \
2014-05-09 13:12:44 +10:00
hash/fletcher.hpp \
2015-03-02 00:06:47 +11:00
hash/hmac.cpp \
hash/hmac.hpp \
hash/hotp.cpp \
hash/hotp.hpp \
2013-03-11 20:42:49 +11:00
hash/md2.cpp \
hash/md2.hpp \
2013-03-11 20:44:32 +11:00
hash/md4.cpp \
hash/md4.hpp \
2013-03-11 20:45:53 +11:00
hash/md5.cpp \
hash/md5.hpp \
hash/pbkdf1.cpp \
hash/pbkdf1.hpp \
hash/pbkdf2.cpp \
hash/pbkdf2.hpp \
2014-04-10 21:04:07 +10:00
hash/ripemd.cpp \
hash/ripemd.hpp \
2014-04-16 19:17:56 +10:00
hash/sha2.cpp \
hash/sha2.hpp \
2013-03-11 20:47:48 +11:00
hash/sha1.cpp \
hash/sha1.hpp \
2012-05-16 15:03:49 +10:00
image.cpp \
image.hpp \
io.cpp \
2011-08-29 14:36:03 +10:00
io.hpp \
io.ipp \
ip.cpp \
2011-08-29 14:36:03 +10:00
ip.hpp \
iterator.hpp \
json/fwd.hpp \
json/except.cpp \
json/except.hpp \
json/flat.cpp \
json/flat.hpp \
json/schema.cpp \
json/schema.hpp \
json/tree.cpp \
json/tree.hpp \
lerp.cpp \
lerp.hpp \
2012-04-24 17:38:35 +10:00
log.cpp \
log.hpp \
log.ipp \
maths.cpp \
2011-08-29 14:36:03 +10:00
maths.hpp \
maths.ipp \
maths/matrix.cpp \
maths/matrix.hpp \
maths/vector.cpp \
maths/vector.hpp \
matrix.cpp \
2011-08-29 14:36:03 +10:00
matrix.hpp \
matrix.ipp \
memory.cpp \
memory.hpp \
net/address.cpp \
net/address.hpp \
net/except.cpp \
net/except.hpp \
net/types.cpp \
net/types.hpp \
net/socket.cpp \
net/socket.hpp \
2011-08-29 14:36:03 +10:00
nocopy.hpp \
noise.cpp \
noise.hpp \
noise/basis.cpp \
noise/basis.hpp \
noise/fractal.cpp \
noise/fractal.hpp \
noise/lut.cpp \
noise/lut.hpp \
2013-02-26 18:31:14 +11:00
options.cpp \
options.hpp \
pascal.cpp \
pascal.hpp \
2015-02-19 13:28:36 +11:00
plane.cpp \
plane.hpp \
2012-04-30 11:50:07 +10:00
platform.hpp \
2011-08-29 14:36:03 +10:00
point.cpp \
point.hpp \
2014-02-18 15:28:28 +11:00
point.ipp \
2015-01-21 23:40:45 +11:00
polynomial.cpp \
polynomial.hpp \
polynomial.ipp \
2011-08-29 14:36:03 +10:00
pool.cpp \
pool.hpp \
2012-08-22 16:12:26 +10:00
pool.ipp \
2012-05-03 18:09:06 +10:00
preprocessor.hpp \
2012-07-31 14:40:21 +10:00
quaternion.cpp \
quaternion.hpp \
raii.hpp \
2011-09-13 15:13:55 +10:00
random.cpp \
random.hpp \
2012-05-22 14:13:07 +10:00
random.ipp \
2011-08-29 14:36:03 +10:00
range.cpp \
range.hpp \
range.ipp \
2014-07-02 15:49:27 +10:00
rational.cpp \
rational.hpp \
2015-03-11 22:31:35 +11:00
ray.cpp \
ray.hpp \
2011-08-29 14:36:03 +10:00
region.cpp \
region.hpp \
si.cpp \
2011-08-29 14:36:03 +10:00
signal.cpp \
signal.hpp \
2013-08-06 17:43:52 +10:00
signal.ipp \
si.hpp \
2012-05-14 16:11:09 +10:00
stats.cpp \
stats.hpp \
2011-08-29 14:36:03 +10:00
stream.cpp \
stream.hpp \
2011-08-29 14:36:03 +10:00
string.cpp \
string.hpp \
stringid.cpp \
stringid.hpp \
tap.hpp \
2011-08-29 15:28:11 +10:00
time.cpp \
time.hpp \
types.hpp \
types/bits.hpp \
types/casts.hpp \
2012-08-22 16:12:54 +10:00
types/comparator.hpp\
types/comparator.ipp\
types/string.cpp \
types/string.hpp \
types/traits.hpp \
2015-02-09 17:43:24 +11:00
uri.hpp \
uri.cpp \
vector.cpp \
vector.hpp \
2015-01-15 14:01:51 +11:00
vector.ipp \
version.cpp \
2013-07-13 15:28:29 +10:00
version.hpp \
view.cpp \
view.hpp \
2013-07-13 15:28:29 +10:00
zlib.cpp \
zlib.hpp
2011-05-23 17:18:52 +10:00
2012-05-10 16:53:29 +10:00
if PLATFORM_LINUX
UTIL_FILES += \
backtrace_execinfo.cpp \
io_posix.cpp \
io_posix.hpp
2012-05-10 16:53:29 +10:00
endif
if PLATFORM_WIN32
UTIL_FILES += \
backtrace_null.cpp \
io_win32.cpp
endif
2014-05-09 13:09:36 +10:00
###############################################################################
## Local build rules
CLEANFILES = json.cpp version.cpp ip.cpp
2015-02-09 17:43:24 +11:00
EXTRA_DIST = json/flat.cpp.rl version.cpp.rl ip.cpp.rl uri.cpp.rl
2011-05-23 17:18:52 +10:00
RAGELFLAGS = -F1
SUFFIXES = .cpp .cpp.rl
.cpp.rl.cpp:
$(RAGEL) $(RAGELFLAGS) -C $< -o $(builddir)/$@
2014-05-09 13:09:36 +10:00
###############################################################################
## Library definition
lib_LIBRARIES = libutil.a
libutil_a_SOURCES = $(UTIL_FILES)
libutil_a_CXXFLAGS = $(AM_CXXFLAGS)
2012-04-12 14:12:25 +10:00
2014-05-09 13:08:50 +10:00
###############################################################################
## Utility programs
AM_DEFAULT_SOURCE_EXT = .cpp
AM_LDFLAGS = $(BOOST_LDFLAGS)
2014-05-09 12:58:33 +10:00
bin_PROGRAMS = \
tools/hash \
2014-05-09 12:58:33 +10:00
tools/json-clean \
tools/json-validate \
tools/json-schema
LDADD = $(top_builddir)/libutil.a $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(ZLIB_LIBS)
##-----------------------------------------------------------------------------
## Tests
AM_LDFLAGS += $(BOOST_LDFLAGS) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB)
AM_CXXFLAGS += -I$(top_srcdir)
TEST_BIN = \
test/backtrace \
test/bezier \
test/bitwise \
test/checksum \
test/colour \
test/extent \
test/fixed \
test/float \
2015-03-02 00:06:47 +11:00
test/hmac \
test/hotp \
test/hton \
test/ip \
test/json_types \
2015-03-11 22:31:35 +11:00
test/ray \
test/maths \
test/maths_matrix \
test/matrix \
test/md2 \
test/md4 \
test/md5 \
test/options \
test/point \
test/polynomial \
test/pool \
test/rand \
test/range \
test/region \
test/ripemd \
test/sha1 \
test/sha2 \
test/signal \
test/stringid \
test/uri \
2015-04-02 14:57:30 +11:00
test/vector \
test/version
if PLATFORM_WIN32
test_hton_LDFLAGS = -lws2_32
endif
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh
TESTS = $(top_builddir)/test/static.test $(top_builddir)/test/json.test $(top_builddir)/test/json-schema.test
check_PROGRAMS = $(TEST_BIN)
EXTRA_DIST += test/static.test test/json.test test/json test/json-schema