-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.sh
37 lines (36 loc) · 1.03 KB
/
compile.sh
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
#!/bin/bash
echo ""
echo " ------------------------------ "
echo " | | "
echo "----------------- spike_pstrsv ------------------"
echo " | | "
echo " ------------------------------ "
echo ""
echo "-------------------------------------------------------------------"
for arg in "$@"
do
if [ "$arg" == "--help" ]
then
echo "Available modes: "
echo " --runtime_analysis : creates the executable for performance profiling"
echo " --example_usage : created the executable for example usage"
fi
if [ "$arg" == "--runtime_analysis" ]
then
echo "Creating... runtimeAnalysis"
cp Makefile.profiler Makefile
make distclean
make
rm Makefile
echo "Done."
fi
if [ "$arg" == "--example_usage" ]
then
echo "Creating... exampleUsage"
cp Makefile.sample Makefile
make distclean
make
rm Makefile
echo "Done."
fi
done