-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 752 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 752 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
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
all:winnowmap
winnowmap: MAKE_DIRS
+$(MAKE) -e -C src
$(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