use implications to encode while and break filters
[pet.git] / Makefile.am
blob368ab74844aa6c046f93cc7f166ef6c3c31fd85d
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
23 TEST_EXTENSIONS = .sh
25 include_HEADERS = include/pet.h
27 EXTRA_DIST = \
28         tests
30 INCLUDES = -I$(srcdir) -I$(srcdir)/include
32 AM_CFLAGS = $(INCLUDES) @ISL_CFLAGS@
33 AM_CXXFLAGS = $(INCLUDES) $(CLANG_CXXFLAGS) @ISL_CFLAGS@
34 AM_LDFLAGS = $(CLANG_LDFLAGS)
36 libpet_la_SOURCES = \
37         options.h \
38         options.c \
39         scan.h \
40         scan.cc \
41         scop.h \
42         scop.c \
43         scop_plus.h \
44         scop_plus.cc \
45         version.h \
46         version.c \
47         pet.cc
48 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS)
49 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \
50         $(LIB_CLANG_EDIT) -lclangAnalysis \
51         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
52         $(CLANG_LIBS) $(CLANG_LDFLAGS) $(LIB_ISL)
54 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
55 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
56 pet_SOURCES = \
57         emit.c \
58         scop_yaml.h \
59         main.c
60 pet_LDADD = libpet.la \
61         -lclangFrontend -lclangParse -lclangSema -lclangAnalysis \
62         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
63         $(CLANG_LIBS) $(LIB_ISL) -lyaml
65 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
66 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
67 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
68 pet_scop_cmp_SOURCES = \
69         scop_yaml.h \
70         parse.c \
71         pet_scop_cmp.c
73 pet_codegen_CFLAGS = $(AM_CFLAGS)
74 pet_codegen_LDFLAGS =
75 pet_codegen_LDADD = libpet.la $(LIB_ISL)
76 pet_codegen_SOURCES = \
77         pet_codegen.c
79 pet_check_code_CFLAGS = $(AM_CFLAGS)
80 pet_check_code_LDFLAGS =
81 pet_check_code_LDADD = libpet.la $(LIB_ISL)
82 pet_check_code_SOURCES = \
83         pet_check_code.c
85 dist-hook:
86         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
88 gitversion.h: @GIT_HEAD@
89         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@