gpu.c: create_kernel_vars: only take ppcg_kernel
[ppcg.git] / Makefile.am
blob8345e3daf9fdcec627f034bd2021b86692efb437
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_print.c \
44         gpu_print.h \
45         gpu_tree.c \
46         gpu_tree.h \
47         schedule.c \
48         schedule.h \
49         ppcg_options.c \
50         ppcg_options.h \
51         ppcg.c \
52         ppcg.h \
53         print.c \
54         print.h \
55         version.c
57 TESTS = @extra_tests@
58 EXTRA_TESTS = opencl_test.sh polybench_test.sh
59 TEST_EXTENSIONS = .sh
61 EXTRA_DIST = \
62         ocl_utilities.c \
63         tests
65 dist-hook:
66         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
68 gitversion.h: @GIT_HEAD@
69         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@