2 # /**------- <| --------------------------------------------------------**
4 # **--- /.\ -----------------------------------------------------**
5 # ** <| [""M# makefile.am **
6 # **- A | # -----------------------------------------------------**
7 # ** /.\ [""M# First version: 30/04/2008 **
8 # **- [""M# | # U"U#U -----------------------------------------------**
11 # ****** | "--' .-" *****************************************************
12 # * |"-"-"-"-"-#-#-## Clan : the Chunky Loop Analyser (experimental) *
13 # **** | # ## ###### ****************************************************
15 # * \ ::::'/ Copyright (C) 2008 University Paris-Sud 11 *
17 # * ::88a ### This is free software; you can redistribute it *
18 # * ::::888a 8a ##::. and/or modify it under the terms of the GNU *
19 # * ::::::::888a88a[]::: Lesser General Public License as published by *
20 # *::8:::::::::SUNDOGa8a::. the Free Software Foundation, either version 2.1 *
21 # *::::::::8::::888:Y8888:: of the License, or (at your *
22 # *::::':::88::::888::Y88a::::::::::::... option) any later version. *
23 # *::'::.. . ..... .. ... . *
24 # * This software is distributed in the hope that it will be useful, but *
25 # * WITHOUT ANY WARRANTY; without even the implied warranty of *
26 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
27 # * Public License for more details. *
29 # * You should have received a copy of the GNU Lesser General Public *
30 # * License along with software; if not, write to the Free Software *
31 # * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
33 # * Clan, the Chunky Loop Analyser *
34 # * Written by Cedric Bastoul, Cedric.Bastoul@u-psud.fr *
36 # *****************************************************************************/
38 # Makefile.am (or makefile if generated) of Clan, the Chunky Loop Analyser.
39 # Makefile.am is not a makefile, you must run the 'autogen.sh' THEN the
40 # configure shellscript to generate the Makefile thanks to this file.
42 #############################################################################
46 OSL_LA = $(top_builddir)/osl/libosl.la
49 CLAN_INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include
51 AUTOMAKE_OPTIONS = subdir-objects
52 SUBDIRS = $(MAYBE_OSL) . doc tests
53 DIST_SUBDIRS = $(MAYBE_OSL) . doc tests
54 ACLOCAL_AMFLAGS = -I m4
56 #############################################################################
59 lib_LTLIBRARIES = libclan.la
61 #############################################################################
63 pkginclude_HEADERS = \
65 include/clan/options.h \
66 include/clan/statement.h \
67 include/clan/vector.h \
68 include/clan/relation.h \
69 include/clan/relation_list.h \
70 include/clan/domain.h \
71 include/clan/macros.h \
75 # Add dependence on parser.h needed by source/scop.c
76 BUILT_SOURCES = source/parser.h
78 AM_CPPFLAGS = $(CLAN_INCLUDES)
79 AM_CFLAGS = $(CFLAGS_WARN)
82 EXTRA_DIST = clan-config.cmake
85 @test -z "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)" || $(mkdir_p) "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)"
86 $(INSTALL_DATA) "$(top_srcdir)/clan-config.cmake" "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)/"
89 rm -f "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)/clan-config.cmake"
91 #############################################################################
93 libclan_la_LIBADD = @OSL_LIBS@ $(OSL_LA)
94 libclan_la_CPPFLAGS = $(CLAN_INCLUDES) @OSL_CFLAGS@
95 libclan_la_LDFLAGS = @OSL_LDFLAGS@
96 libclan_la_SOURCES = \
104 source/relation_list.c \
108 #############################################################################
110 LDADD = @OSL_LIBS@ $(OSL_LA) libclan.la
111 clan_CPPFLAGS = $(CLAN_INCLUDES) @OSL_CFLAGS@
112 clan_DEPENDENCIES = libclan.la
113 clan_SOURCES = source/clan.c
115 #############################################################################
117 MAINTAINERCLEANFILES = \
124 #############################################################################
127 (cd $(distdir) && mkdir -p $(ac_aux_dir))
128 for file in $(AUX_DIST); do \
129 cp $$file $(distdir)/$$file; \
132 #############################################################################
135 $(MAKE) valcheck -C tests
137 #############################################################################
140 ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -f$(HOME)/.ctags .
142 #############################################################################