-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (25 loc) · 874 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
CXX:=g++
CXXFLAGS:=-I./src -I./gfatools -I./gfakluge -O3 -std=c++14 -Wall
LIBS:=-lz
ODIR:=build
DEPS:=src/*.hpp
#SRCS=$(wildcard src/*.cpp)
#EXECS=$(patsubst src/%.cpp,$(ODIR)/%,$(SRCS))
EXECS:=test neighborhood unambig_extension weak_removal unbalanced_removal simple_bulge_removal bubble_removal shortcut_remover loop_killer nongenomic_link_removal tip_clipper low_cov_remover isolated_remover
all: $(patsubst %,$(ODIR)/%,$(EXECS))
#all: $EXECS
$(ODIR)/libgfa1.a:gfatools/*.c gfatools/*.h
make -C gfatools
cp gfatools/libgfa1.a $@
$(ODIR)/wrapper.o:src/wrapper.cpp $(DEPS)
$(CXX) -c $(CXXFLAGS) $< -o $@
$(ODIR)/%.o:src/%.cpp $(DEPS)
$(CXX) -c $(CXXFLAGS) $< -o $@
$(ODIR)/%:$(ODIR)/%.o $(ODIR)/wrapper.o $(ODIR)/libgfa1.a
$(CXX) $^ -o $@ $(LIBS)
.PRECIOUS: $(ODIR)/%.o
.PHONY: clean
clean:
rm -rf $(ODIR)/*
rm -f gfatools/libgfa1.a
make -C gfatools clean