forked from Kingsford-Group/diploidsquid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (21 loc) · 889 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
BOOST = /home/yutongq/SQUID/Tools/boost_1_64_0/
BAMTOOLS = /home/yutongq/SQUID/Tools/bamtools/usr/local/
# BAMTOOLS = /home/congm1/ocean/oceancong02/Software/bamtools-2.5.1/bin/
GLPK = /home/yutongq/SQUID/Tools/glpk-4.62/bin
CC = gcc
CXX = g++
INCLUDES = -g -I $(BAMTOOLS)/include/bamtools -I $(GLPK)/include -I $(BOOST)
CXXFLAGS = -std=c++11 $(INCLUDES)
LDADD = $(BAMTOOLS)/lib/libbamtools.a $(GLPK)/lib/libglpk.a
LDLIBS = -lz -lm
# RPATH = $(BAMTOOLS)/lib/:$(GLPK)/lib/
SRCS = src/main.cpp src/ReadRec.cpp src/SegmentGraph.cpp src/WriteIO.cpp src/Config.cpp
TESTSRCs = src/ReadRec.cpp src/SegmentGraph.cpp src/WriteIO.cpp src/Config.cpp src/testall.cpp
all: bin/diploidsquid
bin/test: $(subst .cpp,.o,$(TESTSRCs))
$(CXX) -o $@ $^ $(LDADD) $(LDLIBS)
bin/diploidsquid: $(subst .cpp,.o,$(SRCS))
mkdir -p bin
$(CXX) -o $@ $^ $(LDADD) $(LDLIBS)
clean:
rm -f bin/squid src/*.o test