]> git.donarmstrong.com Git - samtools.git/commitdiff
Introduced LIBPATH variable so this could be overridden to allow samtools to build...
authorOn behalf of Bob Handsaker <lh3@sanger.ac.uk>
Thu, 2 Jul 2009 21:24:34 +0000 (21:24 +0000)
committerOn behalf of Bob Handsaker <lh3@sanger.ac.uk>
Thu, 2 Jul 2009 21:24:34 +0000 (21:24 +0000)
Makefile

index 0a2791e8810435f244e310ec8e64aaa46331269a..07f69df46bbd4281a96669467f4351a776f1b3c4 100644 (file)
--- 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