Browse Source

Makefile

master
Pjotr Prins 10 months ago
parent
commit
9d50e036ef
6 changed files with 62 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +17
    -0
      DEVELOPMENT.org
  3. +37
    -0
      Makefile
  4. +5
    -0
      README.org
  5. +1
    -1
      src/cbam/markdup.d
  6. +1
    -1
      src/cbam/writer.d

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
BioD

+ 17
- 0
DEVELOPMENT.org View File

@@ -0,0 +1,17 @@
* DEVELOPMENT

For development you may use dub, but I prefer to simply
link in checked out folders at a lower directory level,
e.g.

#+BEGIN_SRC sh
cd cBAM
ln -s ../BioD
#+END_SRC

with this the Makefile should just work.

#+BEGIN_SRC sh
make
make check
#+END_SRC

+ 37
- 0
Makefile View File

@@ -0,0 +1,37 @@
# Makefile uses D compiler

D_COMPILER=ldc2
DFLAGS = -wi -g -Icontrib/bio -IBioD -Isrc

SRC = src/cbam/app.d src/cbam/markdup.d src/cbam/reader.d src/cbam/writer.d src/cbam/snappy.d

OBJ = $(SRC:.d=.o)
BIN = bin/cbam

debug check: DFLAGS += -O0 -unittest
release static: DFLAGS += -O3 -release -enable-inlining -boundscheck=off
static: DFLAGS += -static -L-Bstatic

all: debug

default: all

default debug release static: $(BIN)

%.o: %.d
$(D_COMPILER) $(DFLAGS) -c $< -od=$(dir $@)

$(BIN): $(OBJ)
$(info linking...)
$(D_COMPILER) $(DFLAGS) $(OBJ) -of=$(BIN)

check: $(BIN)
$(info Make check running tests...)
$(BIN)

# $(BIN) "--DRT-gcopt=gc:precise disable:1 cleanup:none"

clean:
rm -vf $(OBJ)
rm -v $(BIN)
# find -name '*.o' -exec rm \{\} \;

+ 5
- 0
README.org View File

@@ -21,6 +21,11 @@ cBAM depends on

: apt-get install libsnappy-dev gdc


* Development

See [[DEVELOPMENT.org]]

* License

cBAM is published under a GPLv3 license. See [[LICENSE.txt]].

+ 1
- 1
src/cbam/markdup.d View File

@@ -1,7 +1,7 @@
module cbam.markdup;

import cbam.reader;
import containers.hashmap;
// import containers.hashmap;
import std.file;
import std.stdio;
import std.typecons;


+ 1
- 1
src/cbam/writer.d View File

@@ -1,4 +1,4 @@
module source.writer;
module cbam.writer;
import std.stdio;
import std.string;
import std.traits;


Loading…
Cancel
Save