Skip to content

Commit

Permalink
sdsl v3
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Jul 25, 2019
1 parent b7e6007 commit 647e65a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[submodule "src/sdsl"]
path = src/sdsl
url = https://github.com/simongog/sdsl-lite.git
[submodule "src/htslib"]
path = src/htslib
url = https://github.com/samtools/htslib.git
ignore = dirty
[submodule "src/xxsds"]
path = src/xxsds
url = https://github.com/xxsds/sdsl-lite.git
ignore = dirty
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ bindir ?= $(exec_prefix)/bin

# Flags
CXX=g++
CXXFLAGS += -std=c++11 -isystem ${JLIB} -isystem ${EBROOTHTSLIB} -isystem ${SDSL_ROOT}/include -pedantic -W -Wall -fvisibility=hidden
LDFLAGS += -L${SDSL_ROOT}/lib -lboost_iostreams -lboost_filesystem -lboost_system -lboost_program_options -lboost_date_time -lsdsl -ldivsufsort -ldivsufsort64 -ldl -L${EBROOTHTSLIB} -L${EBROOTHTSLIB}/lib -lpthread
CXXFLAGS += -std=c++14 -isystem ${JLIB} -isystem ${EBROOTHTSLIB} -isystem ${SDSL_ROOT}/include -pedantic -W -Wall -fvisibility=hidden
LDFLAGS += -L${SDSL_ROOT}/lib -lboost_iostreams -lboost_filesystem -lboost_system -lboost_program_options -lboost_date_time -ldl -L${EBROOTHTSLIB} -L${EBROOTHTSLIB}/lib -lpthread

ifeq (${STATIC}, 1)
LDFLAGS += -static -static-libgcc -pthread -lhts -lz -llzma -lbz2
Expand All @@ -39,7 +39,7 @@ endif


# External sources
SDSLSOURCES = $(wildcard src/sdsl/lib/*.cpp)
SDSLSOURCES = $(wildcard src/xxsds/lib/*.cpp)
TRACYSOURCES = $(wildcard src/*.cpp) $(wildcard src/*.h)
HTSLIBSOURCES = $(wildcard src/htslib/*.c) $(wildcard src/htslib/*.h)
PBASE=$(shell pwd)
Expand All @@ -51,7 +51,7 @@ TARGETS = ${SUBMODULES} ${BUILT_PROGRAMS}
all: $(TARGETS)

.sdsl: $(SDSLSOURCES)
if [ -r src/sdsl/install.sh ]; then cd src/sdsl/ && ./install.sh ${PBASE}/src/sdslLite && cd ../../ && touch .sdsl; fi
if [ -r src/xxsds/install.sh ]; then cd src/xxsds/ && ./install.sh ${PBASE}/src/sdslLite && cd ../../ && touch .sdsl; fi

.htslib: $(HTSLIBSOURCES)
if [ -r src/htslib/Makefile ]; then cd src/htslib && make && make lib-static && cd ../../ && touch .htslib; fi
Expand All @@ -65,7 +65,8 @@ install: ${BUILT_PROGRAMS}

clean:
if [ -r src/htslib/Makefile ]; then cd src/htslib && make clean; fi
if [ -r src/sdsl/install.sh ]; then cd src/sdsl/ && ./uninstall.sh && cd ../../ && rm -rf src/sdslLite/; fi
#if [ -r src/xxsds/install.sh ]; then cd src/xxsds/ && ./uninstall.sh ${PBASE}/src/sdslLite && cd ../../ && rm -rf src/sdslLite/; fi
if [ -r src/xxsds/install.sh ]; then rm -rf src/sdslLite/; fi
rm -f $(TARGETS) $(TARGETS:=.o) ${SUBMODULES}

distclean: clean
Expand Down
1 change: 0 additions & 1 deletion src/sdsl
Submodule sdsl deleted from d52aa9
1 change: 1 addition & 0 deletions src/xxsds
Submodule xxsds added at a654b5

0 comments on commit 647e65a

Please sign in to comment.