PetScan::extract_expr(CallExpr *): extract function summary from function body
[pet.git] / Makefile.am
blob3edd33c1303df260d8380896fb42b8265a8022f4
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         summary.h \
74         summary.c \
75         value_bounds.h \
76         value_bounds.c \
77         version.h \
78         version.cc \
79         pet.cc
80 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS)
81 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \
82         $(LIB_CLANG_EDIT) -lclangAnalysis \
83         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
84         $(CLANG_LIBS) $(CLANG_LDFLAGS) $(LIB_ISL)
86 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
87 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
88 pet_SOURCES = \
89         dummy.cc \
90         emit.c \
91         scop_yaml.h \
92         main.c
93 pet_LDADD = libpet.la $(LIB_ISL) -lyaml
95 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
96 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
97 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
98 pet_scop_cmp_SOURCES = \
99         dummy.cc \
100         scop_yaml.h \
101         parse.c \
102         pet_scop_cmp.c
104 pet_codegen_CFLAGS = $(AM_CFLAGS)
105 pet_codegen_LDFLAGS =
106 pet_codegen_LDADD = libpet.la $(LIB_ISL)
107 pet_codegen_SOURCES = \
108         dummy.cc \
109         pet_codegen.c
111 pet_check_code_CFLAGS = $(AM_CFLAGS)
112 pet_check_code_LDFLAGS =
113 pet_check_code_LDADD = libpet.la $(LIB_ISL)
114 pet_check_code_SOURCES = \
115         dummy.cc \
116         pet_check_code.c
118 dist-hook:
119         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
121 gitversion.h: @GIT_HEAD@
122         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@