scop.c: schedule_embed: drop unused variable
[pet.git] / Makefile.am
blob3cfa7837c207ea8ec30864052c94109dbf359c00
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         isl_id_to_pet_expr.h \
72         isl_id_to_pet_expr.c \
73         killed_locals.h \
74         killed_locals.cc \
75         loc.h \
76         loc.c \
77         maybe_pet_expr.h \
78         nest.h \
79         nest.c \
80         options.h \
81         options.c \
82         patch.h \
83         patch.c \
84         pet_expr_to_isl_pw_aff.h \
85         pet_expr_to_isl_pw_aff.c \
86         print.c \
87         print.h \
88         tree.h \
89         tree.c \
90         tree2scop.h \
91         tree2scop.c \
92         scan.h \
93         scan.cc \
94         scop.h \
95         scop.c \
96         scop_plus.h \
97         scop_plus.cc \
98         skip.h \
99         skip.c \
100         state.h \
101         substituter.h \
102         substituter.cc \
103         summary.h \
104         summary.c \
105         value_bounds.h \
106         value_bounds.c \
107         version.h \
108         version.cc \
109         pet.cc
110 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS) $(CLANG_RFLAG)
111 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \
112         $(LIB_CLANG_EDIT) -lclangAnalysis \
113         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
114         $(CLANG_LIBS) $(CLANG_LDFLAGS) $(LIB_ISL)
116 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
117 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
118 pet_SOURCES = \
119         dummy.cc \
120         emit.c \
121         scop_yaml.h \
122         main.c
123 pet_LDADD = libpet.la $(LIB_ISL) -lyaml
125 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
126 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
127 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
128 pet_scop_cmp_SOURCES = \
129         dummy.cc \
130         scop_yaml.h \
131         parse.c \
132         pet_scop_cmp.c
134 pet_codegen_CFLAGS = $(AM_CFLAGS)
135 pet_codegen_LDFLAGS =
136 pet_codegen_LDADD = libpet.la $(LIB_ISL)
137 pet_codegen_SOURCES = \
138         dummy.cc \
139         pet_codegen.c
141 pet_check_code_CFLAGS = $(AM_CFLAGS)
142 pet_check_code_LDFLAGS =
143 pet_check_code_LDADD = libpet.la $(LIB_ISL)
144 pet_check_code_SOURCES = \
145         dummy.cc \
146         pet_check_code.c
148 isl.py: interface/isl.py.top
149         (cat $(srcdir)/interface/isl.py.top; \
150                 @ISL_BUILDDIR@/interface/extract_interface$(EXEEXT) \
151                         $(DEFAULT_INCLUDES) @ISL_CFLAGS@ \
152                         "@ISL_SRCDIR@/interface/all.h") \
153                         > isl.py
155 dist-hook: isl.py
156         cp $< $(distdir)/
157         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
159 gitversion.h: @GIT_HEAD@
160         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@