Debian Codegraph @

sim4dbutils/Make.include

raw
1 # -*- makefile -*-
2
3 LIBUTL/ :=$(realpath $/../libutil/)/
4 LIBBIO/ :=$(realpath $/../libbio/)/
5 LIBSEQ/ :=$(realpath $/../libseq/)/
6 LIBSIM4/ :=$(realpath $/../libsim4/)/
7
8 src := $/cleanPolishes.C \
9 $/fixPolishesIID.C \
10 $/comparePolishes.C \
11 $/convertToAtac.C \
12 $/convertToExtent.C \
13 $/convertPolishes.C \
14 $/detectChimera.C \
15 $/depthOfPolishes.C \
16 $/filterPolishes.C \
17 $/headPolishes.C \
18 $/mappedCoverage.C \
19 $/mergePolishes.C \
20 $/parseSNP.C \
21 $/pickBestPolish.C \
22 $/pickBestPair.C \
23 $/pickUniquePolish.C \
24 $/plotCoverageVsIdentity.C \
25 $/removeDuplicate.C \
26 $/sortPolishes.C \
27 $/summarizePolishes.C \
28 $/uniqPolishes.C \
29 $/vennPolishes.C \
30 $/realignPolishes.C \
31 $/removeRedundant.C \
32 $/reportAlignmentDifferences.C \
33 $/s4p_overlap.C
34
35 $/.C_SRCS :=${filter %.c,${src}}
36 $/.CXX_SRCS :=${filter %.C,${src}}
37
38 obj_c := ${$/.C_SRCS:.c=.o}
39 obj_C := ${$/.CXX_SRCS:.C=.o}
40
41 # always using c++ to link
42 $/.CXX_EXES := $/cleanPolishes \
43 $/fixPolishesIID \
44 $/comparePolishes \
45 $/convertToAtac \
46 $/convertToExtent \
47 $/convertPolishes \
48 $/detectChimera \
49 $/depthOfPolishes \
50 $/filterPolishes \
51 $/headPolishes \
52 $/mappedCoverage \
53 $/mergePolishes \
54 $/parseSNP \
55 $/pickBestPolish \
56 $/pickBestPair \
57 $/pickUniquePolish \
58 $/plotCoverageVsIdentity \
59 $/removeDuplicate \
60 $/sortPolishes \
61 $/summarizePolishes \
62 $/uniqPolishes \
63 $/vennPolishes \
64 $/realignPolishes \
65 $/removeRedundant \
66 $/reportAlignmentDifferences
67
68 $/.CLEAN := $/*.o
69
70 $(eval $/%.d $/%.o: CFLAGS+=-I${LIBUTL/} -I${LIBBIO/} -I${LIBSEQ/} -I${LIBSIM4/})
71 $(eval $/%.d $/%.o: CXXFLAGS+=-I${LIBUTL/} -I${LIBBIO/} -I${LIBSEQ/} -I${LIBSIM4/})
72
73 $/filterPolishes : $/filterPolishes.o
74 $/headPolishes : $/headPolishes.o
75 $/mappedCoverage : $/mappedCoverage.o
76 $/mergePolishes : $/mergePolishes.o
77 $/sortPolishes : $/sortPolishes.o
78 $/pickBestPolish : $/pickBestPolish.o
79 $/pickBestPair : $/pickBestPair.o
80 $/pickUniquePolish : $/pickUniquePolish.o
81 $/cleanPolishes : $/cleanPolishes.o
82 $/fixPolishesIID : $/fixPolishesIID.o
83 $/plotIntronSize : $/plotIntronSize.o
84 $/plotCoverageVsIdentity : $/plotCoverageVsIdentity.o
85 $/parseSNP : $/parseSNP.o
86 $/comparePolishes : $/comparePolishes.o $/s4p_overlap.o
87 $/convertToAtac : $/convertToAtac.o
88 $/convertToExtent : $/convertToExtent.o
89 $/convertPolishes : $/convertPolishes.o
90 $/depthOfPolishes : $/depthOfPolishes.o
91 $/detectChimera : $/detectChimera.o
92 $/trimSequencesBasedOnMatches : $/trimSequencesBasedOnMatches.o
93 $/uniqPolishes : $/uniqPolishes.o
94 $/summarizePolishes : $/summarizePolishes.o
95 $/removeDuplicate : $/removeDuplicate.o
96 $/vennPolishes : $/vennPolishes.o
97 $/realignPolishes : $/realignPolishes.o
98 $/removeRedundant : $/removeRedundant.o $/s4p_overlap.o
99 $/reportAlignmentDifferences : $/reportAlignmentDifferences.o
100
101 # Yeah, not everyone needs all these libraries. Live with it.
102 #
103 ${$/.C_EXES} ${$/.CXX_EXES}: ${LIBSIM4/}libsim4.a ${LIBSEQ/}libseq.a ${LIBBIO/}libbio.a ${LIBUTL/}libutil.a
104
105 # Run the test cases for parseSNP
106 $/.parseSNP-test: $/parseSNP ${SIM4DB/}sim4db
107 @ echo See page 85 in Big Bad Bri IR#2 for notes on parseSNP-test.
108 @ t=`dirname $<`/test ${SIM4DB/}sim4db -align -cdna $t/parsesnp-snp.fasta -genomic $t/parsesnp-gen.fasta -o $t/parsesnp-sim4.out
109 @ t=`dirname $<`/test $< -O $t/parsesnp-good -F $t/parsesnp-fail < $t/parsesnp-sim4.out
110 @-t=`dirname $<`/test diff $t/parsesnp-good $t/parsesnp-correct-parsed > $t/parsesnp-diffs
111 @ t=`dirname $<`/test; \
112 if test -s $t/parsesnp-diffs ; then \
113 echo "parseSNP tests FAILED" ; \
114 cat $t/parsesnp-diffs ; \
115 exit 13 ; \
116 else \
117 echo "parseSNP tests passed" ; \
118 t=`dirname $<` rm -f $t/parsesnp-good $t/parsesnp-fail $t/parsesnp-sim4.out $t/parsesnp-diffs $t/parsesnp-gen.fastaidx $t/parsesnp-snp.fastaidx; \
119 fi
120