forked from sequencing/NxTrim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·40 lines (30 loc) · 1.14 KB
/
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
37
38
CXX ?= g++
CXXFLAGS ?= -O3
LFLAGS = -lz
all: mergeReads nxtrim
debug: CXXFLAGS += -Wall -g
debug: all
GIT_HASH := $(shell git describe --abbrev=4 --always )
VERSION = v0.4.1
GIT_VERSION =
ifneq "$(wildcard .git)" ""
GIT_VERSION = -$(shell git describe --always)
endif
version.h:
echo '#define VERSION "$(VERSION)$(GIT_VERSION)"' > $@
unit_test: test.cpp fastqlib.o utilityfunc.o matepair.o
$(CXX) $(CXXFLAGS) test.cpp fastqlib.o utilityfunc.o matepair.o -o unit_test $(LFLAGS)
nxtrim: nxtrim.cpp fastqlib.o utilityfunc.o matepair.o fastqlib.o version.h
$(CXX) $(CXXFLAGS) nxtrim.cpp fastqlib.o utilityfunc.o matepair.o -o nxtrim $(LFLAGS)
mergeReads: mergeReads.cpp fastqlib.o utilityfunc.o fastqlib.o githash.h version.h
$(CXX) $(CXXFLAGS) mergeReads.cpp fastqlib.o utilityfunc.o -o mergeReads $(LFLAGS)
matepair.o: matepair.cpp matepair.h fastqlib.h
$(CXX) $(CXXFLAGS) -c matepair.cpp
fastqlib.o: fastqlib.cpp fastqlib.h utilityfunc.h
$(CXX) $(CXXFLAGS) -c fastqlib.cpp
utilityfunc.o: utilityfunc.cpp utilityfunc.h
$(CXX) $(CXXFLAGS) -c utilityfunc.cpp
test: nxtrim
bash example/run_test.sh
clean:
rm *.o nxtrim test mergeReads version.h