Merge branch 'master' of github.com:periscop/openscop
[openscop.git] / Makefile.am
blobf76f8243a3e4f1c4c5134de1be926c73050dd6f6
2 #   /*+------------------------------------------------------------------**
3 #    **                       OpenScop Library                           **
4 #    **------------------------------------------------------------------**
5 #    **                         makefile.am                              **
6 #    **------------------------------------------------------------------**
7 #    **                   First version: 30/04/2008                      **
8 #    **------------------------------------------------------------------**
10 #   
11 # ***************************************************************************
12 # * OpenScop: Structures and formats for polyhedral tools to talk together  *
13 # ***************************************************************************
14 # *   ,___,,_,__,,__,,__,,__,,_,__,,_,__,,__,,___,_,__,,_,__,               *
15 # *   /   / /  //  //  //  // /   / /  //  //   / /  // /  /|,_,            *
16 # *  /   / /  //  //  //  // /   / /  //  //   / /  // /  / / /\            *
17 # * |~~~|~|~~~|~~~|~~~|~~~|~|~~~|~|~~~|~~~|~~~|~|~~~|~|~~~|/_/  \           *
18 # * | G |C| P | = | L | P |=| = |C| = | = | = |=| = |=| C |\  \ /\          *
19 # * | R |l| o | = | e | l |=| = |a| = | = | = |=| = |=| L | \# \ /\         *
20 # * | A |a| l | = | t | u |=| = |n| = | = | = |=| = |=| o | |\# \  \        *
21 # * | P |n| l | = | s | t |=| = |d| = | = | = | |   |=| o | | \# \  \       *
22 # * | H | | y |   | e | o | | = |l|   |   | = | |   | | G | |  \  \  \      *
23 # * | I | |   |   | e |   | |   | |   |   |   | |   | |   | |   \  \  \     *
24 # * | T | |   |   |   |   | |   | |   |   |   | |   | |   | |    \  \  \    *
25 # * | E | |   |   |   |   | |   | |   |   |   | |   | |   | |     \  \  \   *
26 # * | * |*| * | * | * | * |*| * |*| * | * | * |*| * |*| * | /      \* \  \  *
27 # * | O |p| e | n | S | c |o| p |-| L | i | b |r| a |r| y |/        \  \ /  *
28 # * '---'-'---'---'---'---'-'---'-'---'---'---'-'---'-'---'          '--'   *
29 # *                                                                         *
30 # * Copyright (C) 2008 University Paris-Sud 11 and INRIA                    *
31 # *                                                                         *
32 # * (3-clause BSD license)                                                  *
33 # * Redistribution and use in source  and binary forms, with or without     *
34 # * modification, are permitted provided that the following conditions      *
35 # * are met:                                                                *
36 # *                                                                         *
37 # * 1. Redistributions of source code must retain the above copyright       *
38 # *    notice, this list of conditions and the following disclaimer.        *
39 # * 2. Redistributions in binary form must reproduce the above copyright    *
40 # *    notice, this list of conditions and the following disclaimer in the  *
41 # *    documentation and/or other materials provided with the distribution. *
42 # * 3. The name of the author may not be used to endorse or promote         *
43 # *    products derived from this software without specific prior written   *
44 # *    permission.                                                          *
45 # *                                                                         *
46 # * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR    *
47 # * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED          *
48 # * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE  *
49 # * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,      *
50 # * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES      *
51 # * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR      *
52 # * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)      *
53 # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,     *
54 # * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING   *
55 # * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE      *
56 # * POSSIBILITY OF SUCH DAMAGE.                                             *
57 # *                                                                         *
58 # * OpenScop Library, a library to manipulate OpenScop formats and data     *
59 # * structures. Written by:                                                 *
60 # * Cedric Bastoul     <Cedric.Bastoul@u-psud.fr> and                       *
61 # * Louis-Noel Pouchet <Louis-Noel.pouchet@inria.fr>                        *
62 # *                                                                         *
63 # ***************************************************************************/
65 # Makefile.am (or makefile if generated) of the OpenScop Library.
66 # Makefile.am is not a makefile, you must run the 'autogen.sh' THEN the
67 # configure shellscript to generate the Makefile thanks to this file.
70 #############################################################################
72 AUTOMAKE_OPTIONS = subdir-objects
73 SUBDIRS = . doc tests
74 ACLOCAL_AMFLAGS = -I m4
76 #############################################################################
78 lib_LTLIBRARIES = libosl.la
80 #############################################################################
82 pkginclude_HEADERS = \
83         include/osl/osl.h \
84         include/osl/statement.h \
85         include/osl/interface.h \
86         include/osl/generic.h \
87         include/osl/vector.h \
88         include/osl/relation.h \
89         include/osl/relation_list.h \
90         include/osl/macros.h \
91         include/osl/int.h \
92         include/osl/names.h \
93         include/osl/strings.h \
94         include/osl/body.h \
95         include/osl/util.h \
96         include/osl/scop.h
98 pkgextensionsincludedir = $(pkgincludedir)/extensions
99 pkgextensionsinclude_HEADERS = \
100         include/osl/extensions/textual.h \
101         include/osl/extensions/comment.h \
102         include/osl/extensions/null.h \
103         include/osl/extensions/clay.h \
104         include/osl/extensions/dependence.h \
105         include/osl/extensions/scatnames.h \
106         include/osl/extensions/arrays.h \
107         include/osl/extensions/coordinates.h \
108         include/osl/extensions/irregular.h  \
109         include/osl/extensions/symbols.h \
110         include/osl/extensions/loop.h  \
111         include/osl/extensions/extbody.h \
112         include/osl/extensions/pluto_unroll.h
114 EXTRA_DIST = osl-config.cmake
116 install-data-local:
117         @test -z "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)" || $(mkdir_p) "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)"
118         $(INSTALL_DATA) "$(top_srcdir)/osl-config.cmake" "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)/"
120 uninstall-local:
121         rm -f "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)/osl-config.cmake"
123 AM_CPPFLAGS =  -I. -I$(top_builddir)/include -I$(top_srcdir)/include
124 AM_CFLAGS = $(CFLAGS_WARN)
126 #############################################################################
128 libosl_la_CPPFLAGS = -I. -I$(top_builddir)/include -I$(top_srcdir)/include -g
129 libosl_la_SOURCES = \
130         source/scop.c \
131         source/statement.c \
132         source/extensions/textual.c \
133         source/extensions/comment.c \
134         source/extensions/null.c \
135         source/extensions/clay.c \
136         source/extensions/dependence.c \
137         source/extensions/scatnames.c \
138         source/extensions/arrays.c \
139         source/extensions/coordinates.c \
140         source/extensions/irregular.c \
141         source/extensions/symbols.c \
142         source/extensions/extbody.c \
143         source/extensions/loop.c \
144         source/extensions/pluto_unroll.c \
145         source/interface.c \
146         source/generic.c \
147         source/relation.c \
148         source/relation_list.c \
149         source/vector.c \
150         source/names.c \
151         source/strings.c \
152         source/body.c \
153         source/int.c \
154         source/util.c
156 MAINTAINERCLEANFILES    =                       \
157         Makefile.in                             \
158         aclocal.m4                              \
159         configure                               \
160         source/stamp-h.in                       \
161         $(AUX_DIST)
163 #############################################################################
165 ctags:
166         ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -f$(HOME)/.ctags .
168 #############################################################################