Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Makefile-samtools安装失败_Makefile_Installation_Bioinformatics_Samtools_Bcftools - Fatal编程技术网

Makefile-samtools安装失败

Makefile-samtools安装失败,makefile,installation,bioinformatics,samtools,bcftools,Makefile,Installation,Bioinformatics,Samtools,Bcftools,我正在尝试在openSUSE上安装samtools,我做到了: cd htslib-1.2.1 ./configure make install 很好 bcftools-1.2 ./configure make install 很好 bcftools-1.2 ./configure make install 对于samtools: cd samtools-1.2 make install 生成此输出: /usr/lib64/gcc/x86_64-suse-linux/4.8/..

我正在尝试在openSUSE上安装samtools,我做到了:

cd htslib-1.2.1
./configure
make install
很好

bcftools-1.2
./configure
make install
很好

bcftools-1.2
./configure
make install
对于samtools:

cd samtools-1.2
make install
生成此输出:

    /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libcurses.so when searching for -lcurses
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lcurses
collect2: error: ld returned 1 exit status
Makefile:125: recipe for target 'samtools' failed
make: *** [samtools] Error 1
我不明白为什么这行不通。我知道如何使用工具,但我是linuxOS的新手

    # Makefile for samtools, utilities for the Sequence Alignment/Map format.
#
#    Copyright (C) 2008-2014 Genome Research Ltd.
#    Portions copyright (C) 2010-2012 Broad Institute.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

CC       = gcc
CPPFLAGS = $(DFLAGS) $(INCLUDES)
CFLAGS   = -g -Wall -O2
LDFLAGS  =
LDLIBS   =
DFLAGS=     -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_CURSES_LIB=1
LOBJS=      bam_aux.o bam.o bam_import.o sam.o \
            sam_header.o bam_plbuf.o
AOBJS=      bam_index.o bam_plcmd.o sam_view.o \
            bam_cat.o bam_md.o bam_reheader.o bam_sort.o bedidx.o kprobaln.o \
            bam_rmdup.o bam_rmdupse.o bam_mate.o bam_stat.o bam_color.o \
            bamtk.o bam2bcf.o bam2bcf_indel.o errmod.o sample.o \
            cut_target.o phase.o bam2depth.o padding.o bedcov.o bamshuf.o \
            faidx.o stats.o stats_isize.o bam_flags.o bam_split.o \
            bam_tview.o bam_tview_curses.o bam_tview_html.o bam_lpileup.o
INCLUDES=   -I. -I$(HTSDIR)
LIBCURSES=  -lcurses # -lXCurses

prefix      = /usr/local
exec_prefix = $(prefix)
bindir      = $(exec_prefix)/bin
mandir      = $(prefix)/share/man
man1dir     = $(mandir)/man1

MKDIR_P = mkdir -p
INSTALL = install -p
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA    = $(INSTALL) -m 644
INSTALL_DIR     = $(MKDIR_P) -m 755


PROGRAMS = samtools

BUILT_MISC_PROGRAMS = \
    misc/ace2sam misc/maq2sam-long misc/maq2sam-short \
    misc/md5fa misc/md5sum-lite misc/wgsim

MISC_PROGRAMS = \
    $(BUILT_MISC_PROGRAMS) \
    misc/blast2sam.pl misc/bowtie2sam.pl misc/export2sam.pl \
    misc/interpolate_sam.pl misc/novo2sam.pl \
    misc/plot-bamstats misc/psl2sam.pl \
    misc/sam2vcf.pl misc/samtools.pl misc/seq_cache_populate.pl \
    misc/soap2sam.pl \
    misc/varfilter.py misc/wgsim_eval.pl misc/zoom2sam.pl

BUILT_TEST_PROGRAMS = \
    test/merge/test_bam_translate \
    test/merge/test_pretty_header \
    test/merge/test_rtrans_build \
    test/merge/test_trans_tbl_init \
    test/split/test_count_rg \
    test/split/test_expand_format_string \
    test/split/test_filter_header_rg \
    test/split/test_parse_args \
    test/vcf-miniview

all: $(PROGRAMS) $(BUILT_MISC_PROGRAMS) $(BUILT_TEST_PROGRAMS)


# Adjust $(HTSDIR) to point to your top-level htslib directory
HTSDIR = htslib-1.2.1
include $(HTSDIR)/htslib.mk
HTSLIB = $(HTSDIR)/libhts.a
BGZIP  = $(HTSDIR)/bgzip


PACKAGE_VERSION = 1.2

# If building from a Git repository, replace $(PACKAGE_VERSION) with the Git
# description of the working tree: either a release tag with the same value
# as $(PACKAGE_VERSION) above, or an exact description likely based on a tag.
# $(shell), :=, etc are GNU Make-specific.  If you don't have GNU Make,
# comment out this conditional.
ifneq "$(wildcard .git)" ""
PACKAGE_VERSION := $(shell git describe --always --dirty)

# Force version.h to be remade if $(PACKAGE_VERSION) has changed.
version.h: $(if $(wildcard version.h),$(if $(findstring "$(PACKAGE_VERSION)",$(shell cat version.h)),,force))
endif

# If you don't have GNU Make but are building from a Git repository, you may
# wish to replace this with a rule that always rebuilds version.h:
# version.h: force
#   echo '#define SAMTOOLS_VERSION "`git describe --always --dirty`"' > $@
version.h:
    echo '#define SAMTOOLS_VERSION "$(PACKAGE_VERSION)"' > $@


.SUFFIXES: .c .o

.c.o:
    $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<


lib:libbam.a

libbam.a:$(LOBJS)
    $(AR) -csru $@ $(LOBJS)

samtools: $(AOBJS) libbam.a $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ $(AOBJS) libbam.a $(HTSLIB) $(LDLIBS) $(LIBCURSES) -lm -lz

bam_h = bam.h $(htslib_bgzf_h) $(htslib_sam_h)
bam2bcf_h = bam2bcf.h $(htslib_vcf_h) errmod.h
bam_lpileup_h = bam_lpileup.h $(htslib_sam_h)
bam_plbuf_h = bam_plbuf.h $(htslib_sam_h)
bam_tview_h = bam_tview.h $(htslib_hts_h) $(htslib_sam_h) $(htslib_faidx_h) $(bam2bcf_h) $(HTSDIR)/htslib/khash.h $(bam_lpileup_h)
sam_h = sam.h $(htslib_sam_h) $(bam_h)
sample_h = sample.h $(HTSDIR)/htslib/kstring.h

bam.o: bam.c $(bam_h) sam_header.h
bam2bcf.o: bam2bcf.c $(htslib_sam_h) $(HTSDIR)/htslib/kstring.h $(HTSDIR)/htslib/kfunc.h $(bam2bcf_h) errmod.h
bam2bcf_indel.o: bam2bcf_indel.c $(htslib_sam_h) $(bam2bcf_h) kprobaln.h $(HTSDIR)/htslib/khash.h $(HTSDIR)/htslib/ksort.h
bam2depth.o: bam2depth.c $(htslib_sam_h) samtools.h
bam_aux.o: bam_aux.c
bam_cat.o: bam_cat.c $(htslib_bgzf_h) $(bam_h)
bam_color.o: bam_color.c $(bam_h)
bam_import.o: bam_import.c $(HTSDIR)/htslib/kstring.h $(bam_h) $(HTSDIR)/htslib/kseq.h
bam_index.o: bam_index.c $(htslib_hts_h) $(htslib_sam_h) $(HTSDIR)/htslib/khash.h
bam_lpileup.o: bam_lpileup.c $(bam_plbuf_h) $(bam_lpileup_h) $(HTSDIR)/htslib/ksort.h
bam_mate.o: bam_mate.c $(bam_h)
bam_md.o: bam_md.c $(htslib_faidx_h) $(sam_h) kprobaln.h
bam_pileup.o: bam_pileup.c $(sam_h)
bam_plbuf.o: bam_plbuf.c $(htslib_hts_h) $(htslib_sam_h) $(bam_plbuf_h)
bam_plcmd.o: bam_plcmd.c $(htslib_sam_h) $(htslib_faidx_h) $(HTSDIR)/htslib/kstring.h $(HTSDIR)/htslib/khash_str2int.h sam_header.h samtools.h $(bam2bcf_h) $(sample_h)
bam_reheader.o: bam_reheader.c $(htslib_bgzf_h) $(bam_h)
bam_rmdup.o: bam_rmdup.c $(sam_h) $(HTSDIR)/htslib/khash.h
bam_rmdupse.o: bam_rmdupse.c $(sam_h) $(HTSDIR)/htslib/khash.h $(HTSDIR)/htslib/klist.h
bam_sort.o: bam_sort.c $(HTSDIR)/htslib/ksort.h $(HTSDIR)/htslib/khash.h $(HTSDIR)/htslib/klist.h $(HTSDIR)/htslib/kstring.h $(htslib_sam_h)
bam_stat.o: bam_stat.c $(bam_h) samtools.h
bam_tview.o: bam_tview.c $(bam_tview_h) $(htslib_faidx_h) $(htslib_sam_h) $(htslib_bgzf_h)
bam_tview_curses.o: bam_tview_curses.c $(bam_tview_h)
bam_tview_html.o: bam_tview_html.c $(bam_tview_h)
bam_flags.o: bam_flags.c $(sam_h)
bamshuf.o: bamshuf.c $(htslib_sam_h) $(HTSDIR)/htslib/ksort.h samtools.h
bamtk.o: bamtk.c $(htslib_hts_h) version.h samtools.h
bedcov.o: bedcov.c $(HTSDIR)/htslib/kstring.h $(htslib_sam_h) $(HTSDIR)/htslib/kseq.h
bedidx.o: bedidx.c $(HTSDIR)/htslib/ksort.h $(HTSDIR)/htslib/kseq.h $(HTSDIR)/htslib/khash.h
cut_target.o: cut_target.c $(bam_h) errmod.h $(htslib_faidx_h)
errmod.o: errmod.c errmod.h $(HTSDIR)/htslib/ksort.h
kprobaln.o: kprobaln.c kprobaln.h
padding.o: padding.c sam_header.h $(sam_h) $(bam_h) $(htslib_faidx_h)
phase.o: phase.c $(htslib_sam_h) errmod.h $(HTSDIR)/htslib/kseq.h $(HTSDIR)/htslib/khash.h $(HTSDIR)/htslib/ksort.h
sam.o: sam.c $(htslib_faidx_h) $(sam_h)
sam_header.o: sam_header.c sam_header.h $(HTSDIR)/htslib/khash.h
sam_view.o: sam_view.c $(htslib_sam_h) $(htslib_faidx_h) $(HTSDIR)/htslib/kstring.h $(HTSDIR)/htslib/khash.h samtools.h
sample.o: sample.c $(sample_h) $(HTSDIR)/htslib/khash.h
stats_isize.o: stats_isize.c stats_isize.h $(HTSDIR)/htslib/khash.h
stats.o: stats.c $(sam_h) sam_header.h samtools.h stats_isize.h $(HTSDIR)/htslib/khash.h $(HTSDIR)/htslib/khash_str2int.h $(htslib_faidx_h)


# test programs

# For tests that might use it, set $REF_PATH explicitly to use only reference
# areas within the test suite (or set it to ':' to use no reference areas).
# (regression.sh sets $REF_PATH to a subdirectory itself.)
check test: samtools $(BGZIP) $(BUILT_TEST_PROGRAMS)
    REF_PATH=: test/test.pl --exec bgzip=$(BGZIP)
    test/merge/test_bam_translate test/merge/test_bam_translate.tmp
    test/merge/test_pretty_header
    test/merge/test_rtrans_build
    test/merge/test_trans_tbl_init
    cd test/mpileup && ./regression.sh
    test/split/test_count_rg
    test/split/test_expand_format_string
    test/split/test_filter_header_rg
    test/split/test_parse_args


test/merge/test_bam_translate: test/merge/test_bam_translate.o test/test.o $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ test/merge/test_bam_translate.o test/test.o $(HTSLIB) $(LDLIBS) -lz

test/merge/test_pretty_header: test/merge/test_pretty_header.o $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ test/merge/test_pretty_header.o $(HTSLIB) $(LDLIBS) -lz

test/merge/test_rtrans_build: test/merge/test_rtrans_build.o $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ test/merge/test_rtrans_build.o $(HTSLIB) $(LDLIBS) -lz

test/merge/test_trans_tbl_init: test/merge/test_trans_tbl_init.o $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ test/merge/test_trans_tbl_init.o $(HTSLIB) $(LDLIBS) -lz

test/split/test_count_rg: test/split/test_count_rg.o test/test.o $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ test/split/test_count_rg.o test/test.o $(HTSLIB) $(LDLIBS) -lz

test/split/test_expand_format_string: test/split/test_expand_format_string.o test/test.o $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ test/split/test_expand_format_string.o test/test.o $(HTSLIB) $(LDLIBS) -lz

test/split/test_filter_header_rg: test/split/test_filter_header_rg.o test/test.o $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ test/split/test_filter_header_rg.o test/test.o $(HTSLIB) $(LDLIBS) -lz

test/split/test_parse_args: test/split/test_parse_args.o test/test.o $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ test/split/test_parse_args.o test/test.o $(HTSLIB) $(LDLIBS) -lz

test/vcf-miniview: test/vcf-miniview.o $(HTSLIB)
    $(CC) -pthread $(LDFLAGS) -o $@ test/vcf-miniview.o $(HTSLIB) $(LDLIBS) -lz

test_test_h = test/test.h $(htslib_sam_h)

test/merge/test_bam_translate.o: test/merge/test_bam_translate.c $(test_test_h) bam_sort.o
test/merge/test_pretty_header.o: test/merge/test_pretty_header.c bam_sort.o
test/merge/test_rtrans_build.o: test/merge/test_rtrans_build.c bam_sort.o
test/merge/test_trans_tbl_init.o: test/merge/test_trans_tbl_init.c bam_sort.o
test/split/test_count_rg.o: test/split/test_count_rg.c bam_split.o $(test_test_h)
test/split/test_expand_format_string.o: test/split/test_expand_format_string.c bam_split.o $(test_test_h)
test/split/test_filter_header_rg.o: test/split/test_filter_header_rg.c bam_split.o $(test_test_h)
test/split/test_parse_args.o: test/split/test_parse_args.c bam_split.o $(test_test_h)
test/test.o: test/test.c $(htslib_sam_h) $(test_test_h)
test/vcf-miniview.o: test/vcf-miniview.c $(htslib_vcf_h)


# misc programs

misc/ace2sam: misc/ace2sam.o
    $(CC) $(LDFLAGS) -o $@ misc/ace2sam.o $(LDLIBS) -lz

misc/maq2sam-short: misc/maq2sam-short.o
    $(CC) $(LDFLAGS) -o $@ misc/maq2sam-short.o $(LDLIBS) -lz

misc/maq2sam-long: misc/maq2sam-long.o
    $(CC) $(LDFLAGS) -o $@ misc/maq2sam-long.o $(LDLIBS) -lz

misc/md5fa: misc/md5fa.o misc/md5.o
    $(CC) $(LDFLAGS) -o $@ misc/md5fa.o misc/md5.o $(LDLIBS) -lz

misc/md5sum-lite: misc/md5sum-lite.o
    $(CC) $(LDFLAGS) -o $@ misc/md5sum-lite.o $(LDLIBS)

misc/wgsim: misc/wgsim.o
    $(CC) $(LDFLAGS) -o $@ misc/wgsim.o $(LDLIBS) -lm -lz

misc/ace2sam.o: misc/ace2sam.c $(HTSDIR)/htslib/kstring.h $(HTSDIR)/htslib/kseq.h
misc/md5.o: misc/md5.c misc/md5.h
misc/md5fa.o: misc/md5fa.c misc/md5.h $(HTSDIR)/htslib/kseq.h
misc/wgsim.o: misc/wgsim.c $(HTSDIR)/htslib/kseq.h

misc/maq2sam-short.o: misc/maq2sam.c
    $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ misc/maq2sam.c

misc/maq2sam-long.o: misc/maq2sam.c
    $(CC) $(CFLAGS) $(CPPFLAGS) -DMAQ_LONGREADS -c -o $@ misc/maq2sam.c

misc/md5sum-lite.o: misc/md5.c misc/md5.h
    $(CC) $(CFLAGS) $(CPPFLAGS) -DMD5SUM_MAIN -c -o $@ misc/md5.c


install: $(PROGRAMS) $(BUILT_MISC_PROGRAMS)
    $(INSTALL_DIR) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
    $(INSTALL_PROGRAM) $(PROGRAMS) $(MISC_PROGRAMS) $(DESTDIR)$(bindir)
    $(INSTALL_DATA) samtools.1 $(DESTDIR)$(man1dir)


testclean:
    -rm -f test/*.new test/*.tmp test/*/*.new test/*/*.tmp
    -cd test/mpileup && rm -f FAIL-*.out* PASS-*.out* anomalous.[bc]*am indels.[bc]*am mpileup.*.[cs]*am mpileup.*.crai overlap50.[bc]*am expected/1.out

mostlyclean: testclean
    -rm -f *.o misc/*.o test/*.o test/*/*.o version.h

clean: mostlyclean
    -rm -f $(PROGRAMS) libbam.a $(BUILT_MISC_PROGRAMS) $(BUILT_TEST_PROGRAMS)

distclean: clean
    -rm -f TAGS

clean-all: clean clean-htslib


tags:
    ctags -f TAGS *.[ch] misc/*.[ch]


force:


.PHONY: all check clean clean-all distclean force install
.PHONY: lib mostlyclean tags test testclean
#samtools的Makefile,序列对齐/映射格式的实用程序。
#
#版权所有(C)2008-2014基因组研究有限公司。
#部分版权(C)2010-2012年博德研究所。
#
#特此向任何获得副本的人免费授予许可
#本软件和相关文档文件(“软件”)的
#在软件中不受限制,包括但不限于权利
#使用、复制、修改、合并、发布、分发、再许可和/或销售
#软件的副本,并允许向其提供软件的人员
#按照以下条件提供:
#
#上述版权声明和本许可声明应包含在
#软件的所有副本或主要部分。
#
#本软件按“原样”提供,无任何形式的明示或明示担保
#默示,包括但不限于适销性保证,
#适用于特定目的和非侵权。在任何情况下均不得
#作者或版权持有人应承担任何索赔、损害或其他责任
#无论是合同诉讼、侵权诉讼还是其他诉讼中产生的责任
#来自、不属于或与软件、使用或其他相关
#软件的交易。
CC=gcc
CPPFLAGS=$(DFLAGS)$(包括)
CFLAGS=-g-壁-O2
LDFLAGS=
低密度脂蛋白=
DFLAGS=-D\u文件\u偏移量\u位=64-D\u大文件64\u源-D\u诅咒\u库=1
LOBJS=bam_aux.o bam.o bam_import.o sam.o\
sam_header.o bam_plbuf.o
AOBJS=bam_index.o bam_plcmd.o sam_view.o\
bam_cat.o bam_md.o bam_reheader.o bam_sort.o bedidx.o kprobaln.o\
bam_rmdup.o bam_rmdupse.o bam_mate.o bam_stat.o bam_color.o\
bamtk.o bam2bcf.o bam2bcf_indel.o errmod.o sample.o\
切割目标。o相位。o bam2depth.o填充。o bedcov.o bamshuf.o\
faidx.o stats.o stats_isize.o bam_flags.o bam_split.o\
bam_tview.o bam_tview_诅咒。o bam_tview_html.o bam_lpileup.o
包括=-I.-I$(HTSDIR)
LIBCURSES=-lcurses#-lXCurses
前缀=/usr/local
exec_前缀=$(前缀)
bindir=$(执行前缀)/bin
mandir=$(前缀)/共享/人
man1dir=$(mandir)/man1
MKDIR_P=MKDIR-P
INSTALL=INSTALL-p
安装\程序=$(安装)
安装数据=$(安装)-m 644
INSTALL_DIR=$(MKDIR_P)-m 755
程序=samtools
已建杂项程序=\
misc/ace2sam misc/maq2sam长misc/maq2sam短\
杂项/md5fa杂项/md5sum精简杂项/wgsim
其他课程=\
$(已建杂项计划)\
杂项/blast2sam.pl杂项/bowtie2sam.pl杂项/export2sam.pl\
杂项/插值_sam.pl杂项/novo2sam.pl\
misc/plot bamstats misc/psl2sam.pl\
misc/sam2vcf.pl misc/samtools.pl misc/seq_cache_populate.pl\
杂项/soap2sam.pl\
杂项/varfilter.py杂项/wgsim_eval.pl杂项/zoom2sam.pl
内置测试程序=\
测试/合并/测试\u bam\u翻译\
测试/合并/测试\u头\
测试/合并/测试\u rtrans\u构建\
测试/合并/测试传输tbl初始\
测试/分割/测试计数\
测试/拆分/测试\扩展\格式\字符串\
测试/拆分/测试过滤器标题\
测试/拆分/测试\解析\参数\
测试/vcf迷你视图
所有:$(程序)$(已构建的其他程序)$(已构建的测试程序)
#调整$(HTSDIR)以指向顶级htslib目录
HTSDIR=htslib-1.2.1
包括美元(HTSDIR)/htslib.mk
HTSLIB=$(HTSDIR)/libhts.a
BGZIP=$(HTSDIR)/BGZIP
软件包_版本=1.2
#如果从Git存储库生成,请将$(PACKAGE_版本)替换为Git
#工作树的描述:具有相同值的发布标记
#如上文$(PACKAGE_版本)所述,或可能基于标记的准确描述。
#$(shell),:=,等等是GNU特定的。如果您没有GNU Make,
#注释掉这个条件。
ifneq“$(通配符.git)”
PACKAGE_VERSION:=$(shell git description--始终--dirty)
#如果$(软件包版本)已更改,则强制重新生成.h版本。
version.h:$(如果$(通配符版本.h),$(如果$(findstring“$(PACKAGE_version)”,$(shell cat version.h)),force))
恩迪夫
#如果您没有GNUmake,但正在从Git存储库构建,那么您可以
#希望用始终重建版本的规则替换此规则。h:
#版本h:武力
#echo“#define SAMTOOLS_VERSION”`git descripe--always--dirty`>$@
h版:
echo“#定义SAMTOOLS_版本”$(软件包_版本)”>$@
.后缀:.c.o
.c.o.:
$(CC)$(CFLAGS)$(CPPFLAGS)-c-o$@$<
lib:libbam.a
libbam.a:$(LOBJS)
$(AR)-csru$@$(LOBJS)
samtools:$(AOBJS)libbam.a$(HTSLIB)
$(CC)-pthread$(LDFLAGS)-o$@$(AOBJS)libbam.a$(HTSLIB)$(LDLIBS)$(LIBCURSES)-lm-lz
bam_h=bam.h$(htslib_bgzf_h)$(htslib_samu h)
bam2bcf_h=bam2bcf.h$(htslib_vcf_h)errmod.h
bam_lpileup_h=bam_lpileup.h$(htslib_samu h)
bam_plbuf_h=bam_plbuf.h$(htslib_samu h)
bam_tview_h=bam_tview.h$(htslib_hts_h)$(htslib_samu h)$(htslib_faidx_h)$(bam2bcf_h)$(HTSDIR)/htslib/khash$(bam_lpileup_h)
sam_h=sam.h$(htslib_sam_h)$(bam_h)
sample_h=sample.h$(HTSDIR)/htslib/kstring.h
bam.o:bam.c$(bam_h)sam_header.h
bam2bcf.o:bam2bcf.c$(htslib_samu_h)$(HTSDIR)/htslib/kstring.h$(HTSDIR)/htslib/kfunc.h$(bam2bcf_h)errmod.h
bam2bcf_indel.o:bam2bcf_indel.c$(htslib_samu_h)$(bam2bcf_h)kprobaln.h$(HTSDIR)/htslib/khash$(HTSDIR)/htslib/ksort.h
bam2depth.o:bam2depth.c$(htslib_sam_h)samtools.h
bam_aux.o:bam_aux.c
bam_cat.o:bam_cat.c$(htslib_bgzf_h)$(bam_h)
bam_color.o:bam_color.c$(bam_h)
bam_import.o:bam_import.c$(HTSDIR)/htslib/kstring.h$(bam_h)$(HTSDIR)/htslib/kseq.h
bam_index.o:bam_index.c$(htslib_hts_h)$(htslib_samu h)$(HTSDIR)/htslib/khash.h
bam_lpileup.o:bam_lpileup.c$(bam_plbuf_h)$(bam_lpileup_h)$(HTSDIR)/htslib/ksort.h
bam_mate.o:bam_mate.c$(bam_h)
马里兰州巴姆:b