gpu.c: create_access_leaf: plug memory leak on error path
[ppcg.git] / Makefile.am
blobfb3f64a733657f51992f41959d542e5cb2a435bb
1 if BUNDLED_ISL
2     MAYBE_ISL = isl
3     ISL_LA = $(top_builddir)/isl/libisl.la
4     LOCAL_ISL_LA = isl/libisl.la
5 endif
6 if BUNDLED_PET
7     MAYBE_PET = pet
8     PET_LA = $(top_builddir)/pet/libpet.la
9 endif
11 SUBDIRS = $(MAYBE_ISL) $(MAYBE_PET) .
13 FORCE:
14 isl/libisl.la: FORCE
15         cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
16 pet/libpet.la: FORCE
17         cd pet; $(MAKE) $(AM_MAKEFLAGS) libpet.la
19 ACLOCAL_AMFLAGS = -I m4
21 LIB_ISL = $(ISL_LA) @ISL_LIBS@
22 LIB_PET = $(PET_LA) @PET_LIBS@
24 AM_CPPFLAGS = @ISL_CFLAGS@ @PET_CFLAGS@
25 LDADD = $(LIB_PET) $(LIB_ISL)
27 bin_PROGRAMS = ppcg
28 ppcg_SOURCES = \
29         cpu.c \
30         cpu.h \
31         cuda.c \
32         cuda.h \
33         opencl.c \
34         opencl.h \
35         cuda_common.h \
36         cuda_common.c \
37         gpu.c \
38         gpu.h \
39         gpu_array_tile.c \
40         gpu_array_tile.h \
41         gpu_group.c \
42         gpu_group.h \
43         gpu_hybrid.c \
44         gpu_hybrid.h \
45         gpu_print.c \
46         gpu_print.h \
47         gpu_tree.c \
48         gpu_tree.h \
49         grouping.c \
50         grouping.h \
51         hybrid.c \
52         hybrid.h \
53         schedule.c \
54         schedule.h \
55         ppcg_options.c \
56         ppcg_options.h \
57         ppcg.c \
58         ppcg.h \
59         print.c \
60         print.h \
61         util.c \
62         util.h \
63         version.c
65 TESTS = @extra_tests@
66 EXTRA_TESTS = opencl_test.sh polybench_test.sh
67 TEST_EXTENSIONS = .sh
69 BUILT_SOURCES = gitversion.h
71 CLEANFILES = gitversion.h
73 EXTRA_DIST = \
74         examples \
75         ocl_utilities.c \
76         ocl_utilities.h \
77         tests
79 dist-hook:
80         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
82 gitversion.h: @GIT_HEAD@
83         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@