From: On behalf of Bob Handsaker Date: Thu, 2 Jul 2009 21:24:34 +0000 (+0000) Subject: Introduced LIBPATH variable so this could be overridden to allow samtools to build... X-Git-Url: https://git.donarmstrong.com/?p=samtools.git;a=commitdiff_plain;h=d9f7293be1937e307dc8c14fe4f2136f199e49a3 Introduced LIBPATH variable so this could be overridden to allow samtools to build correct at the Broad. --- diff --git a/Makefile b/Makefile index 0a2791e..07f69df 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ AOBJS= bam_sort.o bam_tview.o bam_maqcns.o bam_plcmd.o sam_view.o \ PROG= samtools INCLUDES= SUBDIRS= . misc +LIBPATH= .SUFFIXES:.c .o @@ -23,7 +24,7 @@ all-recur lib-recur clean-recur cleanlocal-recur install-recur: list='$(SUBDIRS)'; for subdir in $$list; do \ cd $$subdir; \ $(MAKE) CC="$(CC)" DFLAGS="$(DFLAGS)" CFLAGS="$(CFLAGS)" \ - INCLUDES="$(INCLUDES)" $$target || exit 1; \ + INCLUDES="$(INCLUDES)" LIBPATH="$(LIBPATH)" $$target || exit 1; \ cd $$wdir; \ done; @@ -36,7 +37,7 @@ libbam.a:$(LOBJS) ### For the curses library: comment out `-lcurses' if you do not have curses installed samtools:lib $(AOBJS) - $(CC) $(CFLAGS) -o $@ $(AOBJS) -lm -lcurses -lz -L. -lbam + $(CC) $(CFLAGS) -o $@ $(AOBJS) $(LIBPATH) -lm -lcurses -lz -L. -lbam razip:razip.o razf.o $(CC) $(CFLAGS) -o $@ razf.o razip.o -lz