forked from marbl/Winnowmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 905 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 905 Bytes
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
OMP_PER_READ_THREADS = 1
### use `make OMP_PER_READ_THREADS=N` to override the default 1 OMP thead with N threads
export CPPFLAGS= -g -Wall -O2 -DOMP_PER_READ_THREADS=$(OMP_PER_READ_THREADS) -DHAVE_KALLOC -fopenmp -std=c++11 -Wno-sign-compare -Wno-write-strings -Wno-unused-but-set-variable -fno-tree-vectorize
export LIBS= -lm -lz -lpthread
export BUILDSTACKTRACE=0 #for meryl
PROC_AUTO:=$(shell uname -m)
PROCESSOR ?= $(PROC_AUTO)
ARCH_FLAGS=
ifeq ($(PROCESSOR), aarch64)
ARCH_FLAGS="arm_neon=1 aarch64=1"
endif
all:winnowmap
winnowmap: MAKE_DIRS
+$(MAKE) -e -C src $(ARCH_FLAGS)
$(CXX) $(CPPFLAGS) src/main.o -o bin/$@ -Lsrc -lwinnowmap $(LIBS)
+$(MAKE) -C ext/meryl/src TARGET_DIR=$(shell pwd)
MAKE_DIRS:
@if [ ! -e bin ] ; then mkdir -p bin ; fi
clean:
rm -rf bin
rm -rf lib
+$(MAKE) clean -C src
+$(MAKE) clean -C ext/meryl/src
cleanw:
rm -rf bin/winnowmap
+$(MAKE) clean -C src