Permalink
Browse files

* Makefile.guix: added Makefile for GNU Guix build environment

  • Loading branch information...
pjotrp committed Feb 21, 2016
1 parent 61f2a51 commit 2ca5a2dbac5ab90c3b4c588519edc3edcb71df84
Showing with 40 additions and 0 deletions.
  1. +39 −0 Makefile.guix
  2. +1 −0 sambamba-ldmd-guix.rsp
View
@@ -0,0 +1,39 @@
# GNU Guix makefile
#
# To build sambamba on GNU Guix:
#
# make -f Makefile.guix
#
# Outside GNU Guix run with
#
# env LD_LIBRARY_PATH=$HOME/.guix-profile/lib ./build/sambamba
D_COMPILER=ldc2
D_FLAGS=-IBioD -release -inline -O2 -c -noboundscheck -ofbuild/sambamba.o -odbuild -I.
LDC_LIB_PATH=$(HOME)/.guix-profile/lib
STATIC_LIB_PATH=-Lhtslib -L$(LDC_LIB_PATH)
STATIC_LIB_SUBCMD=$(STATIC_LIB_PATH) -Wl,-Bstatic -lhts -Wl,-Bdynamic
PLATFORM := $(shell uname -s)
LINK_CMD=gcc -Wl,--gc-sections -o build/sambamba build/sambamba.o $(STATIC_LIB_SUBCMD) $(LDC_LIB_PATH)/libphobos2-ldc.a $(LDC_LIB_PATH)/libdruntime-ldc.a -lrt -lpthread -lm -llz4
all: sambamba-ldmd2
install:
install -m 0755 build/sambamba $(prefix)/bin
sambamba-ldmd2: htslib-static
mkdir -p build/
ldmd2 $(D_FLAGS) @sambamba-ldmd-guix.rsp
$(LINK_CMD)
htslib-static:
cd htslib && $(MAKE)
.PHONY: clean
clean:
rm -rf build/ ; cd htslib ; make clean
View
@@ -0,0 +1 @@
"main.d" "BioD/bio/bam/baifile.d" "sambamba/depth.d" "BioD/bio/core/utils/switchendianness.d" "sambamba/utils/common/readstorage.d" "BioD/bio/core/utils/tmpfile.d" "sambamba/utils/common/bed.d" "BioD/bio/bam/utils/samheadermerger.d" "thirdparty/mergesort.d" "BioD/bio/bam/readrange.d" "cram/exception.d" "sambamba/utils/view/headerserializer.d" "BioD/bio/bam/splitter.d" "cram/htslib.d" "BioD/bio/core/utils/roundbuf.d" "BioD/bio/bam/md/operation.d" "BioD/bio/sam/utils/fastrecordparser.d" "sambamba/utils/common/ldc_gc_workaround.d" "BioD/bio/bam/read.d" "sambamba/utils/common/filtering.d" "BioD/bio/bam/bai/indexing.d" "BioD/bio/bam/utils/value.d" "BioD/bio/bam/randomaccessmanager.d" "sambamba/utils/common/queryparser.d" "BioD/bio/bam/md/reconstruct.d" "BioD/bio/core/base.d" "BioD/bio/core/utils/zlib.d" "BioD/bio/sam/header.d" "BioD/bio/bam/writer.d" "BioD/bio/core/bgzf/block.d" "BioD/bio/bam/md/core.d" "cram/reader.d" "sambamba/utils/common/overwrite.d" "BioD/bio/core/utils/format.d" "BioD/bio/bam/reader.d" "BioD/bio/core/bgzf/inputstream.d" "BioD/bio/core/sequence.d" "BioD/bio/core/utils/bylinefast.d" "sambamba/index.d" "sambamba/markdup.d" "BioD/bio/bam/referenceinfo.d" "BioD/bio/core/tinymap.d" "cram/reference.d" "BioD/bio/bam/constants.d" "BioD/bio/core/bgzf/outputstream.d" "sambamba/utils/common/intervaltree.d" "BioD/bio/bam/utils/graph.d" "BioD/bio/core/utils/algo.d" "BioD/bio/bam/tagvalue.d" "BioD/bio/sam/reader.d" "BioD/bio/core/utils/outbuffer.d" "sambamba/sort.d" "BioD/bio/bam/validation/samheader.d" "sambamba/flagstat.d" "BioD/bio/bam/pileup.d" "sambamba/pileup.d" "BioD/bio/bam/thirdparty/msgpack.d" "BioD/bio/bam/reference.d" "BioD/bio/core/utils/range.d" "BioD/bio/bam/bai/bin.d" "sambamba/utils/view/alignmentrangeprocessor.d" "sambamba/utils/common/tmpdir.d" "sambamba/slice.d" "BioD/bio/core/bgzf/chunk.d" "BioD/bio/core/bgzf/compress.d" "BioD/bio/bam/region.d" "BioD/bio/core/bgzf/virtualoffset.d" "BioD/bio/core/region.d" "BioD/bio/bam/md/parse.d" "BioD/bio/core/utils/stream.d" "sambamba/utils/common/progressbar.d" "thirdparty/unstablesort.d" "BioD/bio/bam/abstractreader.d" "BioD/bio/core/utils/memoize.d" "sambamba/utils/common/pratt_parser.d" "BioD/bio/core/bgzf/constants.d" "sambamba/merge.d" "sambamba/view.d" "BioD/bio/bam/utils/array.d" "BioD/bio/bam/validation/alignment.d" "cram/writer.d" "cram/slicereader.d" "cram/wrappers.d" "BioD/bio/bam/multireader.d" "utils/lz4.d" "utils/strip_bcf_header.d" "sambamba/fixbins.d" "sambamba/utils/common/file.d"

0 comments on commit 2ca5a2d

Please sign in to comment.