PetScan::extract_for: move up extraction of constant increment
[pet.git] / Makefile.am
blobac3ba9f4999c39d516abe14ab64ee0105988c86b
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 EXTRA_DIST = \
28         tests
30 PET_INCLUDES = -I$(srcdir) -I$(srcdir)/include
32 AM_CFLAGS = $(PET_INCLUDES) @ISL_CFLAGS@
33 AM_CXXFLAGS = $(PET_INCLUDES) $(CLANG_CXXFLAGS) @ISL_CFLAGS@
34 AM_LDFLAGS = $(CLANG_LDFLAGS)
36 libpet_la_SOURCES = \
37         aff.h \
38         aff.c \
39         clang.h \
40         clang.cc \
41         context.h \
42         context.c \
43         expr.h \
44         expr.c \
45         filter.h \
46         filter.c \
47         nest.h \
48         nest.c \
49         options.h \
50         options.c \
51         print.c \
52         print.h \
53         scan.h \
54         scan.cc \
55         scop.h \
56         scop.c \
57         scop_plus.h \
58         scop_plus.cc \
59         skip.h \
60         skip.c \
61         value_bounds.h \
62         value_bounds.c \
63         version.h \
64         version.cc \
65         pet.cc
66 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS)
67 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \
68         $(LIB_CLANG_EDIT) -lclangAnalysis \
69         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
70         $(CLANG_LIBS) $(CLANG_LDFLAGS) $(LIB_ISL)
72 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
73 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
74 pet_SOURCES = \
75         dummy.cc \
76         emit.c \
77         scop_yaml.h \
78         main.c
79 pet_LDADD = libpet.la $(LIB_ISL) -lyaml
81 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
82 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
83 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
84 pet_scop_cmp_SOURCES = \
85         scop_yaml.h \
86         parse.c \
87         pet_scop_cmp.c
89 pet_codegen_CFLAGS = $(AM_CFLAGS)
90 pet_codegen_LDFLAGS =
91 pet_codegen_LDADD = libpet.la $(LIB_ISL)
92 pet_codegen_SOURCES = \
93         pet_codegen.c
95 pet_check_code_CFLAGS = $(AM_CFLAGS)
96 pet_check_code_LDFLAGS =
97 pet_check_code_LDADD = libpet.la $(LIB_ISL)
98 pet_check_code_SOURCES = \
99         dummy.cc \
100         pet_check_code.c
102 dist-hook:
103         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
105 gitversion.h: @GIT_HEAD@
106         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@