Skip to content

Commit

Permalink
Add possibility to specify location of HTS header files
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-brinda committed Aug 28, 2016
1 parent 9efcb10 commit 30a0f75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ MANPAGE = ococo.1

HTSLIBDIR = ext/htslib
HTSLIB = $(HTSLIBDIR)/libhts.a
HTSLIBINCLUDE = $(HTSLIBDIR)

export CXX
export CXXFLAGS

export HTSLIBDIR
export HTSLIB
export HTSLIBINCLUDE


.PHONY: all clean install ococo

Expand Down
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ all: misc.o main.o params.o
HEADERS=types.h stats.h version.h

main.o: main.cpp consensus.h caller.h version.h $(HEADERS)
$(CXX) $(CXXFLAGS) $(DFLAGS) -c $< -I ../$(HTSLIB)
$(CXX) $(CXXFLAGS) $(DFLAGS) -c $< -I ../$(HTSLIBINCLUDE)


%.o: %.cpp %.h $(HEADERS)
$(CXX) $(CXXFLAGS) $(DFLAGS) -c $< -I ../$(HTSLIB)
$(CXX) $(CXXFLAGS) $(DFLAGS) -c $< -I ../$(HTSLIBINCLUDE)

clean:
rm -f *.o

0 comments on commit 30a0f75

Please sign in to comment.