]> git.donarmstrong.com Git - samtools.git/blobdiff - Makefile
Pass LIBS to recursive targets to facilitate building at Broad.
[samtools.git] / Makefile
index aff7eaa0b2991157d336ce748638060cf26f5882..f74baa5f4b305c845d997d4b25f5e753731b8e87 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ CXXFLAGS=       $(CFLAGS)
 DFLAGS=                -D_IOLIB=2 -D_FILE_OFFSET_BITS=64 #-D_NO_RAZF #-D_NO_CURSES
 OBJS=          bam.o bam_import.o bam_pileup.o bam_lpileup.o bam_sort.o bam_index.o \
                        razf.o bgzf.o faidx.o bam_tview.o bam_maqcns.o bam_aux.o bam_plcmd.o \
-                       bam_mate.o bam_rmdup.o glf.o
+                       bam_mate.o bam_rmdup.o glf.o bam_stat.o
 PROG=          razip bgzip samtools
 INCLUDES=      
 LIBS=          -lm -lz
@@ -22,7 +22,7 @@ all-recur lib-recur clean-recur cleanlocal-recur install-recur:
                list='$(SUBDIRS)'; for subdir in $$list; do \
                        cd $$subdir; \
                        $(MAKE) CC="$(CC)" CXX="$(CXX)" DFLAGS="$(DFLAGS)" CFLAGS="$(CFLAGS)" \
-                               INCLUDES="$(INCLUDES)" $$target || exit 1; \
+                               INCLUDES="$(INCLUDES)" LIBS="$(LIBS)" $$target || exit 1; \
                        cd $$wdir; \
                done;