use isl_space_params_alloc
[pet.git] / Makefile.am
blob0acf6393159cda3bb835b4889ea72c305dd07d27
1 if BUNDLED_ISL
2     MAYBE_ISL = isl
3     ISL_LA = $(top_builddir)/isl/libisl.la
4 endif
6 SUBDIRS = $(MAYBE_ISL) .
8 FORCE:
9 isl/libisl.la: FORCE
10         cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
12 ACLOCAL_AMFLAGS = -I m4
14 LIB_ISL = $(ISL_LA) @ISL_LIBS@
16 lib_LTLIBRARIES = libpet.la
17 bin_PROGRAMS = pet
18 noinst_PROGRAMS = pet_scop_cmp
19 TESTS = pet_test.sh
21 include_HEADERS = include/pet.h
23 EXTRA_DIST = \
24         tests
26 INCLUDES = -I$(srcdir) -I$(srcdir)/include
28 AM_CFLAGS = $(INCLUDES) @ISL_CFLAGS@
29 AM_CXXFLAGS = $(INCLUDES) $(CLANG_CXXFLAGS) @ISL_CFLAGS@
30 AM_LDFLAGS = $(CLANG_LDFLAGS)
32 libpet_la_SOURCES = \
33         scan.h \
34         scan.cc \
35         scop.h \
36         scop.c \
37         scop_plus.h \
38         scop_plus.cc \
39         pet.cc
40 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema -lclangAnalysis \
41         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
42         $(CLANG_LIBS) $(LIB_ISL)
44 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
45 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
46 pet_SOURCES = \
47         emit.c \
48         scop_yaml.h \
49         main.cc
50 pet_LDADD = libpet.la \
51         -lclangFrontend -lclangParse -lclangSema -lclangAnalysis \
52         -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
53         $(CLANG_LIBS) $(LIB_ISL) -lyaml
55 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
56 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
57 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
58 pet_scop_cmp_SOURCES = \
59         scop_yaml.h \
60         parse.c \
61         pet_scop_cmp.c