-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (25 loc) · 941 Bytes
/
Makefile
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
# Copyright 2018 Oxford Nanopore Technologies, Ltd
# This Source Code Form is subject to the terms of the Oxford Nanopore
# Technologies, Ltd. Public License, v. 1.0. If a copy of the License
# was not distributed with this file, You can obtain one at
# http://nanoporetech.com
buildDir ?= build
hdf5Root ?= ''
releaseType ?= Debug
.PHONY: all
all: flappie
flappie: ${buildDir}/flappie
cp ${buildDir}/flappie flappie
${buildDir}:
mkdir ${buildDir}
.PHONY: test
test: ${buildDir}/flappie
cd ${buildDir} && \
make test
.PHONY: clean
clean:
rm -rf ${buildDir} flappie
${buildDir}/flappie: ${buildDir}
cd ${buildDir} && \
cmake .. -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_CXX_FLAGS="-std=c++11 -g -Wno-sign-compare -march=native -Wno-format -g -fpermissive -DUSE_SSE2 -D__USE_MISC -D_POSIX_SOURCE -DNDEBUG" -DCMAKE_BUILD_TYPE=${releaseType} -DOPENBLAS_ROOT=/usr -DHDF5_ROOT=${hdf5Root} && \
make flappie