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