Skip to content

Commit

Permalink
Fixed makefile formatting and name
Browse files Browse the repository at this point in the history
  • Loading branch information
zyndagj committed Feb 8, 2016
1 parent b3e9f37 commit 13516ae
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
31 changes: 31 additions & 0 deletions Makefile
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)
31 changes: 0 additions & 31 deletions makefile

This file was deleted.

0 comments on commit 13516ae

Please sign in to comment.