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
|
# Creative Commons has made the contents of this file
# available under a CC-GNU-LGPL license:
#
# http://creativecommons.org/licenses/LGPL/2.1/
#
# A copy of the full license can be found as part of this
# distribution in the file COPYING.
#
# You may use the liblicense software in accordance with the
# terms of that license. You agree that you are solely
# responsible for your use of the liblicense software and you
# represent and warrant to Creative Commons that your use
# of the liblicense software will comply with the CC-GNU-LGPL.
#
# Copyright 2007, Creative Commons, www.creativecommons.org.
# Copyright 2007, Scott Shawcroft.
# Copyright 2007, Jason Kivlighn.
# Copyright (C) 2007 Peter Miller
AM_CFLAGS = -I$(top_srcdir)/liblicense
AM_LDFLAGS= -L../liblicense/.libs/ -llicense
THISDIR = $(PWD)
DEBUG_LL_MODULES_PATH=$(THISDIR)/_prefix/$(prefix)
TESTS_ENVIRONMENT = LL_IO_MODULE_DIR=$(DEBUG_LL_MODULES_PATH)/lib/liblicense/@VERSION@/io/ \
LL_CONFIG_MODULE_DIR=$(DEBUG_LL_MODULES_PATH)/lib/liblicense/@VERSION@/config/ \
LL_LICENSE_DIR=$(DEBUG_LL_MODULES_PATH)/share/liblicense/licenses/ \
LD_LIBRARY_PATH=../liblicense/.libs/ \
@VALGRIND@
TESTS = test test_list test_default test_mw test_read test_info test_write test_chooser test_predicate test_module_selection test_predicate_rw
all-local:
mkdir -p _prefix
(cd $(top_builddir)/modules ; DESTDIR=$(THISDIR)/_prefix make install)
(cd $(top_builddir)/licenses ; DESTDIR=$(THISDIR)/_prefix make install)
clean-local:
rm -fr _prefix
rm -f license_me.xmp
check_PROGRAMS = $(TESTS)
test_SOURCES = \
test.c
test_list_SOURCES = \
list_test.c
test_default_SOURCES = default_test.c
test_mw_SOURCES = mw_test.c
test_read_SOURCES = read_test.c
test_info_SOURCES = info_test.c
test_write_SOURCES = write_test.c
test_chooser_SOURCES = chooser_test.c
test_predicate_SOURCES = predicate_test.c
test_predicate_rw_SOURCES = predicate_rw_test.c
test_module_selection_SOURCES = module_selection_test.c
|