-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (42 loc) · 1.34 KB
/
Makefile
File metadata and controls
57 lines (42 loc) · 1.34 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Use version 4.9 of g++
# Set dependencies, s.t. make detects changes in header files.
%.o: %.cc %.h
g++ -c $^
CXX=g++
CC=$(CXX)
# Don't change the path to SeqAn! PopDel relies on added HTSlib functionality.
SEQAN_LIB=.
CXXFLAGS+=-I$(SEQAN_LIB) -DSEQAN_HAS_ZLIB=1 -DSEQAN_USE_HTSLIB=1 -std=c++14 -DSEQAN_DISABLE_VERSION_CHECK
LDLIBS=-lz -lpthread -lhts
DATE=on 2021-03-25
VERSION=1.5.0
CXXFLAGS+=-DDATE=\""$(DATE)"\" -DVERSION=\""$(VERSION)"\"
# Enable warnings
CXXFLAGS+=-W -Wall -Wno-long-long -pedantic -Wno-variadic-macros -Wno-unused-result
HEADERS=parse_popdel.h insert_histogram_popdel.h workflow_popdel.h utils_popdel.h
HEADERS+=popdel_profile/*.h
HEADERS+=popdel_call/*.h
HEADERS+=popdel_view/*.h
.PHONY: all
all: CXXFLAGS+=-O3 -DSEQAN_ENABLE_TESTING=0 -DSEQAN_ENABLE_DEBUG=0
all: popdel
.PHONY: profiling
profiling: CXXFLAGS+=-g -O3 -DSEQAN_ENABLE_TESTING=0 -DSEQAN_ENABLE_DEBUG=1
profiling: popdel
.PHONY: debug
debug: CXXFLAGS+=-g -O0 -DSEQAN_ENABLE_TESTING=0 -DSEQAN_ENABLE_DEBUG=1
debug: popdel
PREFIX = /usr/local
.PHONY: install
install: CXXFLAGS+=-O3 -DSEQAN_ENABLE_TESTING=0 -DSEQAN_ENABLE_DEBUG=0
install: popdel
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp $< $(DESTDIR)$(PREFIX)/bin/popdel
.PHONY: uninstall
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/popdel
popdel: popdel.o
popdel.o: popdel.cpp $(HEADERS)
.PHONY: clean
clean:
rm -f *.o popdel