-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (15 loc) · 712 Bytes
/
Makefile
File metadata and controls
22 lines (15 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CXXFLAGS=-std=c++11
CXX=g++
BIN := Build
LDFLAGS=-lz
all: $(BIN)/Dsuite
$(BIN)/Dsuite: $(BIN)/Dsuite.o $(BIN)/Dsuite_utils.o $(BIN)/D.o $(BIN)/gzstream.o $(BIN)/Dmin.o $(BIN)/Dmin_combine.o $(BIN)/Dsuite_fBranch.o $(BIN)/Dquartets.o $(BIN)/Dsuite_common.o $(BIN)/kstest.o $(BIN)/KolmogorovSmirnovDist.o
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
$(BIN)/%.o: %.cpp
$(CXX) -c $(CXXFLAGS) $< -o $@
$(BIN):
mkdir -p $@
# Dependencies
$(BIN)/Dsuite: $(BIN)/Dsuite.o $(BIN)/Dsuite_utils.o $(BIN)/D.o $(BIN)/gzstream.o $(BIN)/Dmin.o $(BIN)/Dmin_combine.o $(BIN)/Dsuite_fBranch.o $(BIN)/Dquartets.o $(BIN)/Dsuite_common.o $(BIN)/kstest.o $(BIN)/KolmogorovSmirnovDist.o | $(BIN)
clean:
rm $(BIN)/*.o $(BIN)/Dsuite