File: makefile

package info (click to toggle)
blasr 5.3%2B0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,064 kB
  • sloc: cpp: 13,753; ansic: 614; python: 314; makefile: 237; xml: 201; sh: 72
file content (47 lines) | stat: -rw-r--r-- 1,243 bytes parent folder | download | duplicates (2)
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
.PHONY=all cramtests

SRCDIR:=$(dir $(realpath $(lastword $(MAKEFILE_LIST))))
-include ${CURDIR}/../defines.mk
include ${SRCDIR}/../rules.mk

CXXOPTS := -std=c++0x -pedantic \
           -Wall -Wextra -Wno-overloaded-virtual \
           -MMD -MP
CXXFLAGS += ${CXXOPTS} ${GCXXFLAGS}

EXE = sa2bwt bwt2sa excrep evolve bsdb simpleShredder swMatcher \
  samodify sals printTupleCountTable cmpH5StoreQualityByContext

LD_LIBRARY_PATH=${HDF5_LIB}:${LIBBLASR_LIB}:${LIBPBIHDF_LIB}:${LIBPBDATA_LIB}
export LD_LIBRARY_PATH

vpath %.cpp ${SRCDIR}

all: ${EXE}

${EXE}:
	${CXX} -o $@ $< ${CXXFLAGS} ${CPPFLAGS} -MF"${@:%=%.d}" ${STATIC} ${LDFLAGS} ${LDLIBS}

sa2bwt: SuffixArrayToBWT.o
bwt2sa: BwtToSuffixArray.o
excrep: ExciseRepeats.o
evolve: Evolve.o
bsdb: BuildSequenceDB.o
simpleShredder: SimpleShredder.o
swMatcher: SWMatcher.o
samodify: SAModify.o
sals: SALS.o
printTupleCountTable: PrintTupleCountTable.o
cmpH5StoreQualityByContext: StoreQualityByContextFromCmpH5.o

CTESTS := \
ctest/printTupleCountTable.t  ctest/sals.t      ctest/swmatcher.t \
ctest/bwt2sa.t   ctest/cmpH5StoreQualityByContext.t  ctest/sa2bwt.t                ctest/samodify.t


cramtests: ${EXE}
	cram -v --shell=/bin/bash ${CTESTS}

clean: 
	@rm -f ${EXE}
	@rm -f *.d *.o