File: Makefile.patch

package info (click to toggle)
stringtie 2.1.4%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,280 kB
  • sloc: cpp: 25,948; python: 214; makefile: 143; sh: 89
file content (46 lines) | stat: -rw-r--r-- 1,195 bytes parent folder | download
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.*