isl_basic_set_opt: avoid invalid access on error path
[platform/upstream/isl.git] / Makefile.am
index ec76af6..7218498 100644 (file)
@@ -11,8 +11,8 @@ lib_LTLIBRARIES = libisl.la
 noinst_PROGRAMS = isl_test isl_polyhedron_sample isl_pip \
        isl_polyhedron_minimize isl_polytope_scan \
        isl_polyhedron_detect_equalities isl_cat \
-       isl_closure isl_bound
-TESTS = isl_test pip_test.sh bound_test.sh
+       isl_closure isl_bound isl_codegen
+TESTS = isl_test codegen_test.sh pip_test.sh bound_test.sh
 
 if HAVE_PIPLIB
 ISL_PIPLIB = \
@@ -42,6 +42,15 @@ libisl_la_SOURCES = \
        isl_aff_private.h \
        isl_affine_hull.c \
        isl_arg.c \
+       isl_ast.c \
+       isl_ast_private.h \
+       isl_ast_build.c \
+       isl_ast_build_private.h \
+       isl_ast_build_expr.c \
+       isl_ast_build_expr.h \
+       isl_ast_codegen.c \
+       isl_ast_graft.c \
+       isl_ast_graft_private.h \
        isl_band.c \
        isl_band_private.h \
        isl_basis_reduction.h \
@@ -57,6 +66,7 @@ libisl_la_SOURCES = \
        isl_convex_hull.c \
        isl_ctx.c \
        isl_ctx_private.h \
+       isl_deprecated.c \
        isl_dim.c \
        isl_dim_map.h \
        isl_dim_map.c \
@@ -160,6 +170,12 @@ isl_pip_LDADD = libisl.la @GMP_LIBS@
 isl_pip_SOURCES = \
        pip.c
 
+isl_codegen_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
+isl_codegen_LDFLAGS = @GMP_LDFLAGS@
+isl_codegen_LDADD = libisl.la @GMP_LIBS@
+isl_codegen_SOURCES = \
+       codegen.c
+
 isl_bound_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
 isl_bound_LDFLAGS = @GMP_LDFLAGS@
 isl_bound_LDADD = libisl.la @GMP_LIBS@
@@ -199,6 +215,8 @@ pkginclude_HEADERS = \
        include/isl/aff.h \
        include/isl/aff_type.h \
        include/isl/arg.h \
+       include/isl/ast.h \
+       include/isl/ast_build.h \
        include/isl/band.h \
        include/isl/blk.h \
        include/isl/constraint.h \
@@ -237,6 +255,7 @@ pkginclude_HEADERS = \
        include/isl/vertices.h
 
 EXTRA_DIST = \
+       LICENSE \
        isl_config_post.h \
        basis_reduction_templ.c \
        isl_list_templ.c \
@@ -257,6 +276,8 @@ EXTRA_DIST = \
        doc/mypod2latex \
        doc/manual.tex \
        doc/user.pod \
+       interface/all.h \
+       interface/isl.py.top \
        test_inputs
 
 dist-hook:
@@ -271,7 +292,7 @@ gitversion.h: @GIT_HEAD@
        $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
 
 install-data-local: $(srcdir)/isl.py
-       @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p}" \
+       @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
                 $(builddir)/libisl.la`; \
        case $$libisl in \
        '') echo Cannot find isl library name. GDB bindings not installed.;; \