-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_it_easy.sh
executable file
·58 lines (52 loc) · 1.74 KB
/
make_it_easy.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# This shell script builds a number of executables
# It is designed as an alternative to the cmake build generator,
# in case it is not installed or nt running properly.
#
# Another advantage of executables built that way that they are stand-alone,
# they do not rely on libcsl.so .
#!/bin/sh
COMPILER='g++ -O3 -I.'
LIBSOURCES='csl/Alphabet/Alphabet.cxx csl/LevDEA/LevDEA.cxx csl/DictSearch/DictSearch.cxx csl/Pattern/Pattern.cxx csl/Pattern/ComputeInstruction.cxx csl/Pattern/Instruction.cxx csl/Pattern/Interpretation.cxx csl/Pattern/PatternWeights.cxx'
mkdir -vp bin
while test "$1" != "" ; do
case $1 in
compileMD)
echo "Build compileMD"
$COMPILER -o bin/compileMD tools/compileMD/compileMD.cxx $LIBSOURCES
;;
extractMD)
echo "Build extractMD"
$COMPILER -o bin/extractMD tools/extractMD/extractMD.cxx $LIBSOURCES
;;
compileFBDic)
echo "Build compileFBDic"
$COMPILER -o bin/compileFBDic tools/compileFBDic/compileFBDic.cxx $LIBSOURCES
;;
extractFBDic)
echo "Build extractFBDic"
$COMPILER -o bin/extractFBDic tools/extractFBDic/extractFBDic.cxx $LIBSOURCES
;;
compileMD2)
echo "Build compileMD2"
$COMPILER -o bin/compileMD2 tools/compileMD2/compileMD2.cxx $LIBSOURCES
;;
extractMD2)
echo "Build extractMD2"
$COMPILER -o bin/extractMD2 tools/extractMD2/extractMD2.cxx $LIBSOURCES
;;
msFilter)
echo "Build msFilter"
$COMPILER -o bin/msFilter tools/msFilter/msFilter.cxx $LIBSOURCES
;;
vaamFilter)
echo "Build vaamFilter"
$COMPILER -o bin/vaamFilter tools/vaamFilter/vaamFilter.cxx $LIBSOURCES
;;
valFilter)
echo "Build valFilter"
$COMPILER -o bin/valFilter tools/valFilter/valFilter.cxx $LIBSOURCES
;;
esac
shift
done