Added tests build;

v0.5.xx
Alexander Vdolainen 9 years ago
parent cf3d8ad72d
commit da1fbf80ad

@ -6,7 +6,13 @@ else
EXAMPLES = EXAMPLES =
endif endif
SUBDIRS = include lib $(EXAMPLES) if BUILD_TESTS
TESTS = tests
else
TESTS =
endif
SUBDIRS = include lib $(EXAMPLES) $(TESTS)
libsntldocdir = ${prefix}/doc/libsntl libsntldocdir = ${prefix}/doc/libsntl
libsntldoc_DATA = \ libsntldoc_DATA = \

@ -29,6 +29,15 @@ AS_IF([test "x$enable_build_examples" = "xyes"], [
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_build_examples" = "xyes") AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_build_examples" = "xyes")
AC_ARG_ENABLE([build_tests],
AS_HELP_STRING([--enable-build-tests], [Enable build test programs]))
AS_IF([test "x$enable_build_tests" = "xyes"], [
AC_DEFINE([BUILD_TESTS], 1, [build test programs enabled])
])
AM_CONDITIONAL(BUILD_TESTS, test "x$enable_build_tests" = "xyes")
dnl ************win32********* dnl ************win32*********
AC_ARG_ENABLE([win32], AC_ARG_ENABLE([win32],
@ -57,4 +66,5 @@ Makefile
lib/libsntllv2.pc lib/libsntllv2.pc
lib/Makefile lib/Makefile
include/Makefile include/Makefile
examples/Makefile]) examples/Makefile
tests/Makefile])

@ -0,0 +1,37 @@
## AUTOMAKE_OPTIONS = foreign
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
-DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
-DCNFPATH=\""$(prefix)/etc"\" \
-I../include \
-I../lib
AM_CFLAGS = -Wall -g
# where to find libsntl
libsntl = ../lib/.libs/libsntllv2.la
if !BUILD_WIN32
bin_PROGRAMS = lv2sd lv2sc
lv2sd_SOURCES = lv2sd.c
lv2sd_LDADD = $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS) \
$(LIBUUID_LIBS) $(libsntl)
lv2sc_SOURCES = lv2sc.c
lv2sc_LDADD = $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS) \
$(LIBUUID_LIBS) $(libsntl)
else BUILD_WIN32
bin_PROGRAMS = lv2sc
lv2sc_SOURCES = lv2sc.c
lv2sc_LDADD = $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS) \
$(LIBUUID_LIBS) $(libsntl) -lws2_32
endif BUILD_WIN32
Loading…
Cancel
Save