-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
28 lines (22 loc) · 1.2 KB
/
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
BOOST = # path to boost installation direction, need to contain both an "include" direction and a "lib" directory
EIGEN = # path to eigen library, need to contain a directory named "Eigen"
JELLYFISH = # path to jellyfish library, need to contain a directory named "jellyfish"
SPLINE = # path to the directory containing spline.h
PBAR = # path to progress-cpp directory, need to contain an "include" directory
CC = gcc
CXX = g++
CXXFLAGS = -std=c++11 $(INCLUDES) -g -fopenmp -O2
INCLUDES = -I $(BOOST)/include -I $(EIGEN) -I $(JELLYFISH) -I $(SPLINE) -I $(PBAR)/include
LDFLAGS = -L $(BOOST)/lib -Wl,-rpath,$(BOOST)/lib
LDLIBS = -lz -lm -fopenmp -lboost_iostreams
SRCS_init = utils/testgraph.cpp utils/Transcript.cpp utils/GeneGraph.cpp utils/GCbias.cpp utils/SEQbias.cpp utils/POSbias.cpp utils/CombinedBias.cpp
SRCS_bias = utils/pathbias.cpp utils/GCbias.cpp utils/SEQbias.cpp utils/POSbias.cpp utils/CombinedBias.cpp utils/Transcript.cpp utils/GeneGraph.cpp
all: bin/testgraph bin/pathbias
bin/testgraph: $(subst .cpp,.o,$(SRCS_init))
mkdir -p bin
$(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
bin/pathbias: $(subst .cpp,.o,$(SRCS_bias))
mkdir -p bin
$(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
clean:
rm -f bin/testgraph utils/*.o