update isl for fix in isl_aff_gist
[ppcg.git] / Makefile.am
blobde4cadbf241c25d6a45bff7ab9ed1edbec8d2c53
1 if BUNDLED_ISL
2     MAYBE_ISL = isl
3     ISL_LA = $(top_builddir)/isl/libisl.la -lgmp
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         cuda_common.h \
34         cuda_common.c \
35         gpu.c \
36         gpu.h \
37         rewrite.c \
38         rewrite.h \
39         schedule.c \
40         schedule.h \
41         pet_printer.c \
42         pet_printer.h \
43         ppcg_options.c \
44         ppcg_options.h \
45         ppcg.c \
46         version.c
48 dist-hook:
49         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
51 gitversion.h: @GIT_HEAD@
52         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@