-
Notifications
You must be signed in to change notification settings - Fork 65
/
Makefile.am
83 lines (64 loc) · 2.06 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 $(MAY_ISL) lib polylib openscop cloog-isl clan candl pet tool
ACLOCAL_AMFLAGS = -I m4
dist-hook:
rm -rf `find $(distdir)/doc -name CVS`
bin_SCRIPTS = polycc getversion.sh
CLEANFILES = $(bin_SCRIPTS) parsetab.py test_libpluto unit_tests
EXTRA_DIST = polycc.sh.in examples test
pkginclude_HEADERS = include/pluto/pluto.h include/pluto/matrix.h
polycc: polycc.sh
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 tool/pluto bin/
cp -r polycc bin/
pclean:
$(MAKE) -C lib clean
$(MAKE) -C tool clean
test_libpluto: test/test_libpluto.c
libtool --mode=link --tag=CC $(CC) $(CFLAGS) $< -Llib/.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) $(CFLAGS) $< -Llib/.libs/ -I $(top_srcdir)/include $(ISL_INCLUDE) $(ISL_LIBADD) -I$(top_srcdir)/lib -lpluto -o unit_tests
force:
true
libpluto: force
$(MAKE) $(MFLAGS) -C lib libpluto.la
pluto: libpluto
$(MAKE) $(MFLAGS) -C tool pluto
check-pluto: PHONY
PHONY: pluto polycc test_libpluto unit_tests
./test.sh
test-alt: polycc 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