source: trunk/yat/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: 1.4 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, Peter Johansson
6# Copyright (C) 2004 Jari Häkkinen, Peter Johansson, Cecilia Ritz
7# Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
8#
9# This file is part of the yat library, http://dev.thep.lu.se/yat
10#
11# The yat library is free software; you can redistribute it and/or
12# modify it under the terms of the GNU General Public License as
13# published by the Free Software Foundation; either version 3 of the
14# License, or (at your option) any later version.
15#
16# The yat library is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with yat. If not, see <http://www.gnu.org/licenses/>.
23
24SUBDIRS = classifier normalizer random regression statistics utility
25
26lib_LTLIBRARIES = libyat.la
27
28libyat_la_SOURCES =
29
30# Dummy C++ source to cause C++ linking.
31nodist_EXTRA_libyat_la_SOURCES = dummy.cc
32
33libyat_la_LDFLAGS = -version-info $(YAT_LT_VERSION)
34
35libyat_la_LIBADD = \
36  classifier/libclassifier.la \
37  normalizer/libnormalizer.la \
38  random/librandom.la \
39  regression/libregression.la \
40  statistics/libstatistics.la \
41  utility/libutility.la \
42  $(YAT_LIBS_WITHOUT_CBLAS)
Note: See TracBrowser for help on using the repository browser.