pet_context: keep track of domain set rather than domain space
[pet.git] / Makefile.am
blob0d0c58b53d4bdb85a1e3f5bc26c72977c0ae9334
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_arg.h \
48         expr_arg.c \
49         filter.h \
50         filter.c \
51         loc.h \
52         loc.c \
53         nest.h \
54         nest.c \
55         options.h \
56         options.c \
57         print.c \
58         print.h \
59         tree.h \
60         tree.c \
61         tree2scop.h \
62         tree2scop.c \
63         scan.h \
64         scan.cc \
65         scop.h \
66         scop.c \
67         scop_plus.h \
68         scop_plus.cc \
69         skip.h \
70         skip.c \
71         state.h \
72         value_bounds.h \
73         value_bounds.c \
74         version.h \
75         version.cc \
76         pet.cc
77 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS)
78 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \
79         $(LIB_CLANG_EDIT) -lclangAnalysis \
80         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
81         $(CLANG_LIBS) $(CLANG_LDFLAGS) $(LIB_ISL)
83 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
84 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
85 pet_SOURCES = \
86         dummy.cc \
87         emit.c \
88         scop_yaml.h \
89         main.c
90 pet_LDADD = libpet.la $(LIB_ISL) -lyaml
92 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
93 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
94 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
95 pet_scop_cmp_SOURCES = \
96         scop_yaml.h \
97         parse.c \
98         pet_scop_cmp.c
100 pet_codegen_CFLAGS = $(AM_CFLAGS)
101 pet_codegen_LDFLAGS =
102 pet_codegen_LDADD = libpet.la $(LIB_ISL)
103 pet_codegen_SOURCES = \
104         pet_codegen.c
106 pet_check_code_CFLAGS = $(AM_CFLAGS)
107 pet_check_code_LDFLAGS =
108 pet_check_code_LDADD = libpet.la $(LIB_ISL)
109 pet_check_code_SOURCES = \
110         dummy.cc \
111         pet_check_code.c
113 dist-hook:
114         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
116 gitversion.h: @GIT_HEAD@
117         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@