-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
31 lines (26 loc) · 967 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
######################################
# Makefile written by Zev Kronenberg #
# zev.kronenberg@gmail.com #
######################################
CC=gcc
CXX=g++
GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always)
CPPFLAGS= -std=c++0x -O3 -Wall -DVERSION=\"$(GIT_VERSION)\"
LIB=-L. -Lvcflib/tabixpp/htslib/
INCLUDE=-I vcflib/include/ -Ivcflib/src/ -Ivcflib/tabixpp/htslib -Ivcflib/tabixpp/
LINKERS=-lhts -lm -lz -lpthread -lsplit
all: buildVCFlib mergeSVcallers
mergeSVcallers: vcflib/tabixpp/tabix.o libsplit.a libFasta.a libhts.a libvcflib.a
$(CXX) $(CPPFLAGS) $(INCLUDE) $(LIB) src/mergeSVcallers.cpp -o mergeSVcallers *.a $(LINKERS)
buildVCFlib:
cd vcflib && make
libvcflib.a: buildVCFlib
cp vcflib/libvcflib.a .
libhts.a: vcflib/libvcflib.a
cp vcflib/tabixpp/htslib/libhts.a .
libFasta.a: vcflib/libvcflib.a
ar rcs libfasta.a vcflib/obj/Fasta.o
libsplit.a: vcflib/libvcflib.a
ar rcs libsplit.a vcflib/src/split.o
clean:
rm *.a