1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
Author: Steffen Möller
Last-Update: 2019-03-16 16:13:25 +0100
Description: Use Debian packaged libs
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,8 @@
#-- for now these MUST point to the included "samtools-0.x.x" and "gclib" sub-directories
-BAM := ./samtools-0.1.18
GDIR := ./gclib
#--
-INCDIRS := -I. -I${GDIR} -I${BAM}
+INCDIRS := -I. -I${GDIR} -I/usr/include/samtools -I/usr/include/htslib
CXX := $(if $(CXX),$(CXX),g++)
@@ -24,9 +23,7 @@
LDFLAGS := $(if $(LDFLAGS),$(LDFLAGS),-g)
-LDFLAGS += -L${BAM}
-
-LIBS := -lbam -lz
+LIBS := -lhts -lbam -lz
ifneq (,$(findstring nothreads,$(MAKECMDGOALS)))
NOTHREADS=1
@@ -150,9 +147,7 @@
rlink.o : rlink.h tablemaker.h $(GDIR)/GBam.h $(GDIR)/GBitVec.h
tmerge.o : rlink.h tmerge.h
tablemaker.o : tablemaker.h rlink.h
-${BAM}/libbam.a:
- cd ${BAM} && make lib
-stringtie: ${BAM}/libbam.a $(OBJS) stringtie.o
+stringtie: $(OBJS) stringtie.o
${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so, $^} ${LIBS}
@echo
${DBG_WARN}
@@ -167,6 +162,5 @@
${RM} stringtie${EXE} stringtie.o* $(OBJS)
${RM} core.*
allclean cleanAll cleanall:
- cd ${BAM} && make clean
${RM} stringtie${EXE} stringtie.o* $(OBJS)
${RM} core.*
|