加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 851 Bytes
一键复制 编辑 原始数据 按行查看 历史
Devon Ryan 提交于 2020-05-22 21:53 . Bump version
prefix ?= /usr/local/bin #This can be changed
CC ?= gcc
LIBS ?= # e.g., -L$PREFIX/lib, or where ever htslib is
LIBBIGWIG ?=
CFLAGS ?= -Wall -g -O3 -pthread
.PHONY: all clean install version.h
.SUFFIXES:.c .o
all: MethylDackel
OBJS = common.o bed.o svg.o pileup.o extract.o MBias.o mergeContext.o perRead.o
VERSION = 0.5.1
version.h:
echo '#define VERSION "$(VERSION)"' > $@
.c.o:
$(CC) -c $(CFLAGS) $(LIBS) -IlibBigWig $< -o $@
libMethylDackel.a: version.h $(OBJS)
-@rm -f $@
$(AR) -rcs $@ $(OBJS)
lib: libMethylDackel.a
MethylDackel: libMethylDackel.a version.h $(OBJS)
$(CC) $(CFLAGS) $(LIBS) -o MethylDackel $(OBJS) main.c libMethylDackel.a $(LIBBIGWIG) -lm -lz -lpthread -lhts -lcurl
test: MethylDackel
python tests/test.py
clean:
rm -f *.o MethylDackel libMethylDackel.a
install: MethylDackel
install MethylDackel $(prefix)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化