update isl for support for recent clangs
[ppcg.git] / Makefile.am
blob98e7d17dcd0eb7857cdf6213143fed9ada5fddb5
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_print.c \
40         gpu_print.h \
41         schedule.c \
42         schedule.h \
43         ppcg_options.c \
44         ppcg_options.h \
45         ppcg.c \
46         ppcg.h \
47         print.c \
48         print.h \
49         version.c
51 TESTS = @extra_tests@
52 EXTRA_TESTS = opencl_test.sh polybench_test.sh
53 TEST_EXTENSIONS = .sh
55 EXTRA_DIST = \
56         ocl_utilities.c \
57         tests
59 dist-hook:
60         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
62 gitversion.h: @GIT_HEAD@
63         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@