-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (15 loc) · 945 Bytes
/
Makefile
File metadata and controls
24 lines (15 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
VERSION=0.3
CURL_STATIC_LIBS := $(shell curl-config --static-libs)
GSSAPI_STATIC_LIBS := $(shell krb5-config --libs gssapi)
CXXFLAGS= -static -std=c++0x -fopenmp -fno-math-errno -flto -O3 -pipe -s -fuse-ld=gold -I$(cdir)/src/eigen -I$(cdir)/src/spectra/include -I$(cdir)/src/boost -I$(cdir)/src/htslib/include -L$(cdir)/src/htslib/lib -I$(cdir)/src/BRENT -I$(cdir)/src/shrinkwrap/include
LDFLAGS= -lhts -static -fopenmp -flto -fuse-linker-plugin -O3 -pipe -Wno-unused-function -lgcov -lpthread -lz -lm -llzma -I$(cdir)/src/boost -I$(cdir)/src/htslib/include -L$(cdir)/src/htslib/lib -Wl,-rpath=$(cdir)/src/htslib/lib -I$(cdir)/src/BRENT -I$(cdir)/src/shrinkwrap/include -Wl,--no-as-needed
cppsrc = $(wildcard src/*.cpp src/BRENT/*.cpp)
csrc = $(wildcard src/*.c)
objs = $(cppsrc:.cpp=.o) $(csrc:.c=.o)
cdir = ${CURDIR}
bin/apex: $(objs)
@mkdir -p $(@D)
$(CXX) -o $@ $^ $(LDFLAGS)
.PHONY: clean
clean:
rm -f *.o src/*.o src/BRENT/*.o