-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 719 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (22 loc) · 719 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
CXX=g++
CXXFLAGS=-std=c++11 -Wall -O3 -fopenmp -msse4.1
LDFLAGS=-lm -lz
cpp_source=sequence_batch.cc index.cc minimizer_generator.cc candidate_processor.cc alignment.cc feature_barcode_matrix.cc ksw.cc draft_mapping_generator.cc mapping_generator.cc mapping_writer.cc chromap.cc chromap_driver.cc
src_dir=src
objs_dir=objs
objs+=$(patsubst %.cc,$(objs_dir)/%.o,$(cpp_source))
exec=chromap
ifneq ($(asan),)
CXXFLAGS+=-fsanitize=address -g
LDFLAGS+=-fsanitize=address -ldl -g
endif
all: dir $(exec)
dir:
mkdir -p $(objs_dir)
$(exec): $(objs)
$(CXX) $(CXXFLAGS) $(objs) -o $(exec) $(LDFLAGS)
$(objs_dir)/%.o: $(src_dir)/%.cc
$(CXX) $(CXXFLAGS) -c $< -o $@
.PHONY: clean
clean:
-rm -rf $(exec) $(objs_dir)