update isl for missing include in interface/python.cc
[pet.git] / Makefile.am
blobbcb8e9608822559acbf14403cd08bb98bcc31404
1 if BUNDLED_ISL
2     MAYBE_ISL = isl
3     ISL_LA = $(top_builddir)/isl/libisl.la @GMP_LDFLAGS@ @GMP_LIBS@
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
24 include_HEADERS = include/pet.h
26 EXTRA_DIST = \
27         tests
29 INCLUDES = -I$(srcdir) -I$(srcdir)/include
31 AM_CFLAGS = $(INCLUDES) @ISL_CFLAGS@
32 AM_CXXFLAGS = $(INCLUDES) $(CLANG_CXXFLAGS) @ISL_CFLAGS@
33 AM_LDFLAGS = $(CLANG_LDFLAGS)
35 libpet_la_SOURCES = \
36         options.h \
37         options.c \
38         scan.h \
39         scan.cc \
40         scop.h \
41         scop.c \
42         scop_plus.h \
43         scop_plus.cc \
44         version.h \
45         version.c \
46         pet.cc
47 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS)
48 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \
49         $(LIB_CLANG_EDIT) -lclangAnalysis \
50         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
51         $(CLANG_LIBS) $(CLANG_LDFLAGS) $(LIB_ISL)
53 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
54 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
55 pet_SOURCES = \
56         emit.c \
57         scop_yaml.h \
58         main.c
59 pet_LDADD = libpet.la \
60         -lclangFrontend -lclangParse -lclangSema -lclangAnalysis \
61         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
62         $(CLANG_LIBS) $(LIB_ISL) -lyaml
64 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
65 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
66 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
67 pet_scop_cmp_SOURCES = \
68         scop_yaml.h \
69         parse.c \
70         pet_scop_cmp.c
72 pet_codegen_CFLAGS = $(AM_CFLAGS)
73 pet_codegen_LDFLAGS =
74 pet_codegen_LDADD = libpet.la $(LIB_ISL)
75 pet_codegen_SOURCES = \
76         pet_codegen.c
78 pet_check_code_CFLAGS = $(AM_CFLAGS)
79 pet_check_code_LDFLAGS =
80 pet_check_code_LDADD = libpet.la $(LIB_ISL)
81 pet_check_code_SOURCES = \
82         pet_check_code.c
84 dist-hook:
85         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
87 gitversion.h: @GIT_HEAD@
88         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@