change return type of pet_expr_*_is_* to isl_bool
[pet.git] / Makefile.am
bloba198a2de02fe0446ee09b1d6f26fe36eeb312568
1 if BUNDLED_ISL
2     MAYBE_ISL = isl
3     ISL_LA = $(top_builddir)/isl/libisl.la
4 endif
6 SUBDIRS = $(MAYBE_ISL) .
7 DIST_SUBDIRS = $(MAYBE_ISL)
9 FORCE:
10 isl/libisl.la: FORCE
11         cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
13 ACLOCAL_AMFLAGS = -I m4
15 LIB_ISL = $(ISL_LA) @ISL_LIBS@
17 lib_LTLIBRARIES = libpet.la
18 bin_PROGRAMS = @extra_bin_programs@
19 noinst_PROGRAMS = @extra_noinst_programs@ pet_codegen pet_check_code
20 EXTRA_PROGRAMS = pet pet_scop_cmp
21 TESTS = @extra_tests@
22 EXTRA_TESTS = pet_test.sh codegen_test.sh
23 TEST_EXTENSIONS = .sh
25 include_HEADERS = include/pet.h
27 BUILT_SOURCES = \
28         gitversion.h
30 CLEANFILES = \
31         gitversion.h \
32         isl.py
34 DISTCLEANFILES = \
35         pet-uninstalled.sh \
36         pet-uninstalled.pc \
37         pet.pc \
38         pet.pc.in
40 EXTRA_DIST = \
41         interface/isl.py.top \
42         interface/pet.py \
43         tests
45 PET_INCLUDES = -I$(srcdir) -I$(srcdir)/include
47 AM_CFLAGS = $(PET_INCLUDES) @ISL_CFLAGS@
48 AM_CXXFLAGS = $(PET_INCLUDES) $(CLANG_CXXFLAGS) @ISL_CFLAGS@
49 AM_LDFLAGS = $(CLANG_LDFLAGS)
51 libpet_la_SOURCES = \
52         aff.h \
53         aff.c \
54         array.h \
55         array.c \
56         clang.h \
57         clang.cc \
58         context.h \
59         context.c \
60         expr.h \
61         expr.c \
62         expr_access_type.h \
63         expr_arg.h \
64         expr_arg.c \
65         filter.h \
66         filter.c \
67         id.h \
68         id.cc \
69         inliner.h \
70         inliner.cc \
71         loc.h \
72         loc.c \
73         nest.h \
74         nest.c \
75         options.h \
76         options.c \
77         patch.h \
78         patch.c \
79         print.c \
80         print.h \
81         tree.h \
82         tree.c \
83         tree2scop.h \
84         tree2scop.c \
85         scan.h \
86         scan.cc \
87         scop.h \
88         scop.c \
89         scop_plus.h \
90         scop_plus.cc \
91         skip.h \
92         skip.c \
93         state.h \
94         substituter.h \
95         substituter.cc \
96         summary.h \
97         summary.c \
98         value_bounds.h \
99         value_bounds.c \
100         version.h \
101         version.cc \
102         pet.cc
103 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS) $(CLANG_RFLAG)
104 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \
105         $(LIB_CLANG_EDIT) -lclangAnalysis \
106         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
107         $(CLANG_LIBS) $(CLANG_LDFLAGS) $(LIB_ISL)
109 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
110 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
111 pet_SOURCES = \
112         dummy.cc \
113         emit.c \
114         scop_yaml.h \
115         main.c
116 pet_LDADD = libpet.la $(LIB_ISL) -lyaml
118 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
119 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
120 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
121 pet_scop_cmp_SOURCES = \
122         dummy.cc \
123         scop_yaml.h \
124         parse.c \
125         pet_scop_cmp.c
127 pet_codegen_CFLAGS = $(AM_CFLAGS)
128 pet_codegen_LDFLAGS =
129 pet_codegen_LDADD = libpet.la $(LIB_ISL)
130 pet_codegen_SOURCES = \
131         dummy.cc \
132         pet_codegen.c
134 pet_check_code_CFLAGS = $(AM_CFLAGS)
135 pet_check_code_LDFLAGS =
136 pet_check_code_LDADD = libpet.la $(LIB_ISL)
137 pet_check_code_SOURCES = \
138         dummy.cc \
139         pet_check_code.c
141 isl.py: interface/isl.py.top
142         (cat $(srcdir)/interface/isl.py.top; \
143                 @ISL_BUILDDIR@/interface/extract_interface$(EXEEXT) \
144                         $(DEFAULT_INCLUDES) @ISL_CFLAGS@ \
145                         "@ISL_SRCDIR@/interface/all.h") \
146                         > isl.py
148 dist-hook: isl.py
149         cp $< $(distdir)/
150         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
152 gitversion.h: @GIT_HEAD@
153         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@