-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·35 lines (31 loc) · 1.87 KB
/
build.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
#!/bin/bash
[ -d mbcclr_utils/bin ] && rm -r mbcclr_utils/bin
mkdir mbcclr_utils/bin
case $1 in
osx | macos)
echo "OSX Build"
# OSX Build (modify the include path to suit you; you might need to run brew install libomp or brew install llvm)
echo "BUILDING THE MetaBCC-LR 15 MER COMPUTATIONS"
clang++ mbcclr_utils/search-15mers.cpp -lomp -fopenmp -lpthread -Wall -o mbcclr_utils/bin/search-15mers -I/usr/local/include -L/usr/local/lib -lz -O3
clang++ mbcclr_utils/count-15mers.cpp -lomp -fopenmp -lpthread -Wall -o mbcclr_utils/bin/count-15mers -I/usr/local/include -L/usr/local/lib -lz -O3
clang++ mbcclr_utils/coverage-vecs.cpp -lomp -fopenmp -lpthread -Wall -o mbcclr_utils/bin/coverage-vecs -I/usr/local/include -L/usr/local/lib -lz -O3
echo "BUILDING THE MetaBCC-LR 3 MER COMPUTATIONS"
clang++ mbcclr_utils/count-kmers.cpp -Wall -lomp -fopenmp -lpthread -o mbcclr_utils/bin/count-kmers -I/usr/local/include -L/usr/local/lib -lz -O3
echo "BUILDING READ ASSIGNER"
clang++ mbcclr_utils/assign_bins.cpp -lomp -fopenmp -lpthread -o mbcclr_utils/bin/assign -I/usr/local/include -L/usr/local/lib -lz -O3
echo "BUILD FINISHED"
;;
*)
echo "Linux Build"
# Linux
echo "BUILDING THE MetaBCC-LR 15 MER COMPUTATIONS"
g++ mbcclr_utils/search-15mers.cpp -fopenmp -lpthread -Wall -o mbcclr_utils/bin/search-15mers -lz -O3
g++ mbcclr_utils/count-15mers.cpp -fopenmp -lpthread -Wall -o mbcclr_utils/bin/count-15mers -lz -O3
g++ mbcclr_utils/coverage-vecs.cpp -fopenmp -lpthread -Wall -o mbcclr_utils/bin/coverage-vecs -lz -O3
echo "BUILDING THE MetaBCC-LR 3 MER COMPUTATIONS"
g++ mbcclr_utils/count-kmers.cpp -Wall -fopenmp -lpthread -o mbcclr_utils/bin/count-kmers -lz -O3
echo "BUILDING READ ASSIGNER"
g++ mbcclr_utils/assign_bins.cpp -fopenmp -lpthread -o mbcclr_utils/bin/assign -lz -O3
echo "BUILD FINISHED"
;;
esac