forked from AlgoLab/RNA-seq-Graph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (63 loc) · 1.83 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
###
#
# RNA-seq-Graph
# Method for reconstructing the Isoform Graph of a gene from RNA-seq data
#
# Copyright (C) 2011 Stefano Beretta <ste.beretta(-at-)gmail.com>
#
# Distributed under the terms of the GNU Affero General Public License (AGPL)
#
#
# This file is part of RNA-seq-Graph.
#
# RNA-seq-Graph is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# RNA-seq-Graph is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with RNA-seq-Graph. If not, see <http://www.gnu.org/licenses/>.
#
###
#Makefile
SRC_DIR:=src
OBJ_DIR:=obj
BIN_DIR:=bin
CFLAGS+= -g -Wall -O2 -UNDEBUG -march=native -Wno-deprecated
CXXFLAGS+= ${CFLAGS}
LIBS = -l boost_graph
.PHONY: low_mem
low_mem: CXXFLAGS=${CFLAGS} -D LOW_MEM_USG
low_mem: all
.PHONY: all
all:action read_input
.PHONY: action
action:
@echo "Compiling..."
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp Makefile
@echo '* Compiling $<'; \
mkdir -pv $(dir $@) ; \
$(CXX) $(CXXFLAGS) -o $@ -c $<
read_input_OBJS= \
${OBJ_DIR}/Main.o \
${OBJ_DIR}/graph_refinement.o \
${OBJ_DIR}/join_chains.o \
${OBJ_DIR}/build_chains.o \
${OBJ_DIR}/read_fasta.o \
${OBJ_DIR}/table_entry.o \
#${OBJ_DIR}/RNA_seq.o \
${BIN_DIR}/build_RNA_seq_graph: ${read_input_OBJS}
@echo 'Linking $@'; \
mkdir -p ${BIN_DIR}; \
${CXX} ${CXXFLAGS} -o $@ $^ ${LIBS}
.PHONY: read_input
read_input: ${BIN_DIR}/build_RNA_seq_graph
.PHONY: clean
clean:
@echo "Cleaning..."; \
rm -f ${OBJ_DIR}/* ${BIN_DIR}/*