-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
36 lines (28 loc) · 879 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
CC=gcc
COPT= -O -g
CFLAGS= -Wall -Werror -Wformat -Wimplicit -Wreturn-type -Wuninitialized -Werror=unused-but-set-variable
DFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
KENT=cuskent
SAMTOOLS=cussamtools
INCLUDES= -I$(KENT) -I$(SAMTOOLS)
KENTLIB=$(KENT)/libcuskent.a
SAMLIB=$(SAMTOOLS)/libbam.a
L = -pthread -lm -lz
MYF = methylQA
O = generic.o medip.o mre.o atac.o density.o genomecov.o bismark.o bwscale.o from_kent.o $(MYF).o
%.o: %.c
$(CC) $(COPT) $(CFLAGS) $(DFLAGS) $(INCLUDES) -o $@ -c $<
all: $O $(KENTLIB) $(SAMLIB)
$(CC) $(COPT) -o $(MYF) $O $(KENTLIB) $(SAMLIB) $L
.PHONY:all $(KENTLIB) $(SAMLIB) clean
$(KENTLIB):
cd $(KENT) && make
$(SAMLIB):
cd $(SAMTOOLS) && make lib
cleanlocal:
rm -f $(MYF) $(O)
clean:
wdir=`pwd`; \
cd $$wdir/$(KENT) && make clean; \
cd $$wdir/$(SAMTOOLS) && make cleanlocal; \
cd $$wdir && rm -f $(MYF) $(O)