pet_expr_access_set_access: set read/write on non-empty access relation
[pet.git] / Makefile.am
blob45ac505fe25b9c076600e3941a1912ba0327816b
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         array.h \
40         array.c \
41         clang.h \
42         clang.cc \
43         context.h \
44         context.c \
45         expr.h \
46         expr.c \
47         expr_access_type.h \
48         expr_arg.h \
49         expr_arg.c \
50         filter.h \
51         filter.c \
52         loc.h \
53         loc.c \
54         nest.h \
55         nest.c \
56         options.h \
57         options.c \
58         print.c \
59         print.h \
60         tree.h \
61         tree.c \
62         tree2scop.h \
63         tree2scop.c \
64         scan.h \
65         scan.cc \
66         scop.h \
67         scop.c \
68         scop_plus.h \
69         scop_plus.cc \
70         skip.h \
71         skip.c \
72         state.h \
73         value_bounds.h \
74         value_bounds.c \
75         version.h \
76         version.cc \
77         pet.cc
78 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS)
79 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \
80         $(LIB_CLANG_EDIT) -lclangAnalysis \
81         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
82         $(CLANG_LIBS) $(CLANG_LDFLAGS) $(LIB_ISL)
84 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
85 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
86 pet_SOURCES = \
87         dummy.cc \
88         emit.c \
89         scop_yaml.h \
90         main.c
91 pet_LDADD = libpet.la $(LIB_ISL) -lyaml
93 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
94 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
95 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
96 pet_scop_cmp_SOURCES = \
97         dummy.cc \
98         scop_yaml.h \
99         parse.c \
100         pet_scop_cmp.c
102 pet_codegen_CFLAGS = $(AM_CFLAGS)
103 pet_codegen_LDFLAGS =
104 pet_codegen_LDADD = libpet.la $(LIB_ISL)
105 pet_codegen_SOURCES = \
106         dummy.cc \
107         pet_codegen.c
109 pet_check_code_CFLAGS = $(AM_CFLAGS)
110 pet_check_code_LDFLAGS =
111 pet_check_code_LDADD = libpet.la $(LIB_ISL)
112 pet_check_code_SOURCES = \
113         dummy.cc \
114         pet_check_code.c
116 dist-hook:
117         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
119 gitversion.h: @GIT_HEAD@
120         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@