You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
941 B

  1. # Makefile uses D compiler
  2. D_COMPILER=ldc2
  3. DFLAGS = -wi -g -v -Icontrib/bio -Isrc -shared -IBioD -L-lsnappy -LBioD/libbiod.so -L/home/nickroz/dlang/dmd-2.086.1/linux/lib64/libphobos2.a
  4. SRC = contrib/biod/header.d contrib/biod/reader.d src/cbam/app.d src/cbam/markdup.d src/cbam/reader.d src/cbam/writer.d src/cbam/snappy.d
  5. OBJ = $(SRC:.d=.o)
  6. BIN = bin/cbam
  7. debug check: DFLAGS += -O0 -unittest
  8. release static: DFLAGS += -O3 -release -enable-inlining -boundscheck=off
  9. static: DFLAGS += -static -L-Bstatic
  10. all: debug
  11. default: all
  12. default debug release static: $(BIN)
  13. %.o: %.d
  14. $(D_COMPILER) $(DFLAGS) -c $< -od=$(dir $@)
  15. $(BIN): $(OBJ)
  16. $(info linking...)
  17. $(D_COMPILER) $(DFLAGS) $(OBJ) -of=$(BIN)
  18. check: $(BIN)
  19. $(info Make check running tests...)
  20. $(BIN)
  21. # $(BIN) "--DRT-gcopt=gc:precise disable:1 cleanup:none"
  22. clean:
  23. rm -vf $(OBJ)
  24. rm -v $(BIN)
  25. # find -name '*.o' -exec rm \{\} \;