-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
108 lines (84 loc) · 1.87 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#
# Makefile.am
#
# Copyright (C) 2007 Uday Bondhugula
#
#
RM = rm -f
LN = ln -s
if EXTERNAL_ISL
MAY_ISL =
# ISL_INCLUDE and ISL_LIBADD were already defined
else
MAY_ISL = isl
ISL_INCLUDE += -I$(top_srcdir)/isl/include
ISL_LIBADD += $(top_srcdir)/isl/libisl.la
endif
if EXTERNAL_PIPLIB
MAY_PIPLIB =
# PIPLIB_INCLUDE and PIPLIB_LIBADD were already defined
else
MAY_PIPLIB = piplib
endif
if EXTERNAL_POLYLIB
MAY_POLYLIB =
# POLYLIB_INCLUDE and POLYLIB_LIBADD were already defined
else
MAY_POLYLIB = polylib
endif
if EXTERNAL_OSL
MAY_OSL =
# OSL_INCLUDE and OSL_LIBADD were already defined
else
MAY_OSL = openscop
endif
if EXTERNAL_CLOOGISL
MAY_CLOOGISL =
# CLOOGISL_INCLUDE and CLOOGISL_LIBADD were already defined
else
MAY_CLOOGISL = cloog-isl
endif
if EXTERNAL_CLAN
MAY_CLAN =
# CLAN_INCLUDE and CLAN_LIBADD were already defined
else
MAY_CLAN = clan
endif
if EXTERNAL_CANDL
MAY_CANDL =
# CANDL_INCLUDE and CANDL_LIBADD were already defined
else
MAY_CANDL = candl
endif
SUBDIRS = $(MAY_PIPLIB) $(MAY_POLYLIB) $(MAY_ISL) $(MAY_OSL) $(MAY_CLOOGISL) $(MAY_CLAN) $(MAY_CANDL) src
ACLOCAL_AMFLAGS = -I m4
dist-hook:
rm -rf `find $(distdir)/doc -name CVS`
bin_SCRIPTS = polycc vloog ploog plorc plutune getversion.sh
CLEANFILES: $(bin_SCRIPTS) parsetab.py
EXTRA_DIST = polycc.sh.in examples test
pkginclude_HEADERS = include/pluto/libpluto.h
polycc: polycc.sh
rm -f polycc
echo "#! " $(BASH) > polycc
cat $(srcdir)/polycc.sh >> polycc
chmod ugo+x polycc
.PHONY: bin binit
bindir:
@if [ ! -d bin ];then \
echo mkdir bin; \
mkdir bin; \
fi
binit:
cp -f src/pluto bin/
cp -r polycc bin/
pclean:
$(MAKE) -C src clean
test_libpluto: src/test_libpluto.c
libtool --mode=link gcc -g src/test_libpluto.c -Lsrc/.libs/ $(ISL_INCLUDE) $(ISL_LIBADD) -I include -lpluto -o test_libpluto
test: .PHO
.PHO:
./test.sh
./test.sh --tile --parallel --unroll
./test.sh --maxfuse
./test.sh --nofuse