File: build.sh

package info (click to toggle)
libslow5lib 1.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,280 kB
  • sloc: ansic: 13,123; python: 1,353; sh: 600; makefile: 98; cpp: 40
file content (12 lines) | stat: -rwxr-xr-x 455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

#exit on error
set -x
#prints the command to the console
set -e
#make sure slow5lib is built with multi-threading API as `make slow5_mt=1`
make clean && make slow5_mt=1
gcc -Wall -O2 -I include/ examples/mt/mt.c lib/libslow5.a  -o examples/mt/mt -lm -lz -lpthread
gcc -Wall -O2 -I include/ examples/mt/lazymt.c lib/libslow5.a  -o examples/mt/lazymt -lm -lz -lpthread

#append -lzstd to above commands if your slow5lib is built with zstd support