Added tests build;
This commit is contained in:
parent
cf3d8ad72d
commit
da1fbf80ad
@ -6,7 +6,13 @@ else
|
||||
EXAMPLES =
|
||||
endif
|
||||
|
||||
SUBDIRS = include lib $(EXAMPLES)
|
||||
if BUILD_TESTS
|
||||
TESTS = tests
|
||||
else
|
||||
TESTS =
|
||||
endif
|
||||
|
||||
SUBDIRS = include lib $(EXAMPLES) $(TESTS)
|
||||
|
||||
libsntldocdir = ${prefix}/doc/libsntl
|
||||
libsntldoc_DATA = \
|
||||
|
12
configure.ac
12
configure.ac
@ -29,6 +29,15 @@ AS_IF([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*********
|
||||
|
||||
AC_ARG_ENABLE([win32],
|
||||
@ -57,4 +66,5 @@ Makefile
|
||||
lib/libsntllv2.pc
|
||||
lib/Makefile
|
||||
include/Makefile
|
||||
examples/Makefile])
|
||||
examples/Makefile
|
||||
tests/Makefile])
|
||||
|
37
tests/Makefile.am
Normal file
37
tests/Makefile.am
Normal file
@ -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…
x
Reference in New Issue
Block a user