forked from bondhugula/pluto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
83 lines (62 loc) · 1.98 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
#
# 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 -I$(top_builddir)/isl/include
ISL_LIBADD += $(top_builddir)/isl/libisl.la
endif
SUBDIRS = piplib polylib $(MAY_ISL) openscop cloog-isl clan candl pet 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/pluto.h include/pluto/matrix.h
polycc: polycc.sh
rm -f polycc
echo "#! " $(BASH) > polycc
cat 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: test/test_libpluto.c
libtool --mode=link --tag=CC $(CC) $(CLFAGS) $< -Lsrc/.libs/ -I $(top_srcdir)/include $(ISL_INCLUDE) $(ISL_LIBADD) -I openscop/include -lpluto -lgomp -o test_libpluto
unit_tests: test/unit_tests.c
libtool --mode=link --tag=CC $(CC) $(CLFAGS) $< -Lsrc/.libs/ -I $(top_srcdir)/include -I $(top_srcdir)/src -lpluto -o unit_tests
src/pluto: force
$(MAKE) $(MFLAGS) -C src pluto
force:
true
test: PHONY
PHONY: polycc src/pluto test_libpluto unit_tests
./test.sh
test-alt: polycc src/pluto
./test-alt.sh --silent --notile --noparallel
./test-alt.sh --silent --cloogsh --nocloogbacktrack
./test-alt.sh --silent --nodiamond-tile --cloogsh --nocloogbacktrack
./test-alt.sh --silent --lastwriter --cloogsh --nocloogbacktrack
./test-alt.sh --silent --lastwriter --nodiamond-tile --cloogsh --nocloogbacktrack
./test-alt.sh --silent --lastwriter
./test-alt.sh --silent --nofuse --cloogsh --nocloogbacktrack
./test-alt.sh --silent --maxfuse --cloogsh --nocloogbacktrack
./test-alt.sh --silent --nofuse
./test-alt.sh --silent --iss