-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zyndagj
committed
Feb 8, 2016
1 parent
b3e9f37
commit 13516ae
Showing
2 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
CXX= g++ | ||
|
||
BIN = $(DESTDIR)/usr/bin | ||
# With pthreads | ||
override FLAGS+= -DMAXHITS=1000 -DTHREAD -funroll-loops -Lsamtools -Isamtools -Lgzstream -Igzstream -O3 -m64 -march=native | ||
# Without pthreads | ||
#override FLAGS+= -DMAXHITS=1000 -funroll-loops -Lsamtools -Isamtools -Lgzstream -Igzstream -O3 -m64 -march=native | ||
|
||
THREAD= -lpthread | ||
|
||
SOURCE = align dbseq main pairs param reads utilities | ||
OBJS1= $(patsubst %,%.o,$(SOURCE)) | ||
|
||
all: bsmap | ||
%.o:%.cpp | ||
$(CXX) $(FLAGS) -c $< -o $@ | ||
bsmap: $(OBJS1) | ||
(cd samtools; make) | ||
(cd gzstream; make) | ||
$(CXX) $(FLAGS) $^ -o $@ $(THREAD) -lbam -lz -lgzstream | ||
rm -f *.o | ||
|
||
clean: | ||
rm -f *.o *~ bsmap | ||
(cd samtools; make clean) | ||
(cd gzstream; make clean) | ||
install: | ||
install -d $(BIN) | ||
install ./bsmap $(BIN) | ||
install ./sam2bam.sh $(BIN) | ||
install ./methratio.py $(BIN) |