source: trunk/test/Makefile.am @ 1892

Last change on this file since 1892 was 1892, checked in by Peter, 12 years ago

Removed dependency to cblas in libyat. There are three new make
variables: YAT_LIBS, YAT_LIBS_WITHOUT_CLAS and YAT_CBLAS_LIB.

  • The variable YAT_LIBS is created as follows: First the LIBS provided

by user is saved (most often empty). Then when detecting libs, they
are added to the variable LIBS and in the end of the configure run
YAT_LIBS is created as the difference between LIBS and the original
LIBS.

  • YAT_CLAS_LIB is detected as before.
  • YAT_LIBS_WITHOUT_CLAS is copied from YAT_LIBS but ignoring YAT_CLAS_LIB

I also changed the name of some variables to make the code clearer (I
hope). The prefix INTERNAL_ is used for flags that should only be used
when building yat and not needed for a user building against
yat. Flags that should be propagated have no prefix, for example,
CPPFLAGS.

In the end of configure these flags are used to create YAT_CPPFLAGS
using the same mechanism as when creating YAT_LIBS.

In the last step variables such as AM_CPPFLAGS is created as the
'union' of YAT_CPPFLAGS and INTERNAL_CPPFLAGS and these are propagated
to the Makefiles where they are used by Automake generated rules.

refs #518

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.8 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1892 2009-04-13 22:33:37Z peter $
4
5# Copyright (C) 2003 Daniel Dalevi, Jari Häkkinen
6# Copyright (C) 2004 Jari Häkkinen, Peter Johansson, Cecilia Ritz
7# Copyright (C) 2005 Jari Häkkinen, Peter Johansson
8# Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
9# Copyright (C) 2009 Peter Johansson
10#
11# This file is part of the yat library, http://dev.thep.lu.se/yat
12#
13# The yat library is free software; you can redistribute it
14# and/or modify it under the terms of the GNU General Public License as
15# published by the Free Software Foundation; either version 3 of the
16# License, or (at your option) any later version.
17#
18# The yat library is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21# General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
24# along with yat. If not, see <http://www.gnu.org/licenses/>.
25
26SUBDIRS = data
27
28noinst_HEADERS = Suite.h
29
30check_LTLIBRARIES = libyattest.la
31
32check_SCRIPTS = common_defs.sh
33
34.PHONY: $(INSTALLCHECK_TARGETS) FORCE
35
36clean-local:; rm -rf yathello *.sh.dir
37
38FORCE:
39
40yathello: create_yathello.sh $(top_srcdir)/m4/yat.m4
41  ./create_yathello.sh
42
43# testing autoconf macro YAT_CHECK_YAT on an installed yat (the bindir
44# argument requires some care).
45yat_check_yat_test: yathello FORCE
46  cd yathello && autoreconf -sivf && \
47  ./configure --with-yat=$(bindir) && $(MAKE) check
48
49check_PROGRAMS = alignment_test averager_test \
50  commandline_test \
51  consensus_inputranker_test data_lookup_1d_test  \
52  data_weight_test data_weight_proxy_test distance_test \
53  ensemble_test feature_selection_test fileutil_test \
54  fisher_test getline_iterator_test \
55  igp_test index_test inputranker_test interpolation_test \
56  iterator_test kernel_lookup_test kernel_test \
57  knn_test kolmogorov_smirnov_test large_file_test matrix_lookup_test \
58  matrix_lookup_weighted_test matrix_test \
59  matrix_weighted_test nbc_test \
60  ncc_test nni_test normalization_test pca_test \
61  range_test regression_test rnd_test roc_test \
62  score_test  smart_ptr_test    \
63  statistics_test subset_generator_test svd_test svm_test \
64  svm_multi_class_test target_test  \
65  ttest_test \
66  utility_test vector_test version_test view_test
67
68TESTS = $(check_PROGRAMS)
69
70# tests not passing through yet
71XFAIL_TESTS =
72
73TESTS += documentation_test.sh
74
75DISTRIBUTED_TESTS = yat_cpp_add_flag_test.sh \
76yat_cxx_add_flag_test.sh \
77yat_ld_add_flag_test.sh \
78yat_m4_test.sh \
79yat_m4_test2.sh
80
81TESTS += $(DISTRIBUTED_TESTS)
82EXTRA_DIST = $(DISTRIBUTED_TESTS)
83
84LDADD = $(top_builddir)/$(YAT_LIB_LOCATION)/libyat.la libyattest.la $(YAT_LIBS)
85
86libyattest_la_SOURCES = Suite.cc
87
88alignment_test_SOURCES = alignment_test.cc
89averager_test_SOURCES = averager_test.cc
90commandline_test_SOURCES = commandline_test.cc
91consensus_inputranker_test_SOURCES = consensus_inputranker_test.cc
92data_lookup_1d_test_SOURCES = data_lookup_1d_test.cc
93data_weight_test_SOURCES = data_weight_test.cc
94data_weight_proxy_test_SOURCES = data_weight_proxy_test.cc
95distance_test_SOURCES = distance_test.cc
96ensemble_test_SOURCES = ensemble_test.cc
97feature_selection_test_SOURCES = feature_selection_test.cc
98fileutil_test_SOURCES = fileutil_test.cc
99fisher_test_SOURCES = fisher_test.cc
100getline_iterator_test_SOURCES = getline_iterator_test.cc
101igp_test_SOURCES = igp_test.cc
102index_test_SOURCES = index_test.cc
103inputranker_test_SOURCES = inputranker_test.cc
104interpolation_test_SOURCES = interpolation_test.cc
105iterator_test_SOURCES = iterator_test.cc
106kernel_test_SOURCES = kernel_test.cc
107kernel_lookup_test_SOURCES = kernel_lookup_test.cc
108knn_test_SOURCES = knn_test.cc 
109kolmogorov_smirnov_test_SOURCES = kolmogorov_smirnov_test.cc
110large_file_test_SOURCES = large_file_test.cc
111matrix_lookup_test_SOURCES = matrix_lookup_test.cc
112matrix_lookup_weighted_test_SOURCES = matrix_lookup_weighted_test.cc
113matrix_test_SOURCES = matrix_test.cc
114matrix_weighted_test_SOURCES = matrix_weighted_test.cc
115nbc_test_SOURCES = nbc_test.cc
116ncc_test_SOURCES = ncc_test.cc
117nni_test_SOURCES = nni_test.cc
118normalization_test_SOURCES = normalization_test.cc
119pca_test_SOURCES = pca_test.cc
120range_test_SOURCES = range_test.cc
121regression_test_SOURCES = regression_test.cc
122rnd_test_SOURCES = rnd_test.cc
123roc_test_SOURCES = roc_test.cc
124score_test_SOURCES = score_test.cc
125smart_ptr_test_SOURCES = smart_ptr_test.cc
126statistics_test_SOURCES = statistics_test.cc
127subset_generator_test_SOURCES = subset_generator_test.cc
128svd_test_SOURCES = svd_test.cc
129svm_test_SOURCES = svm_test.cc
130svm_multi_class_test_SOURCES = svm_multi_class_test.cc
131target_test_SOURCES = target_test.cc
132ttest_test_SOURCES = ttest_test.cc
133utility_test_SOURCES = utility_test.cc
134vector_test_SOURCES = vector_test.cc
135version_test_SOURCES = version_test.cc
136view_test_SOURCES = view_test.cc
Note: See TracBrowser for help on using the repository browser.