forked from benedictpaten/cPecan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (36 loc) · 1.73 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
39
40
41
42
43
44
45
46
47
rootPath = ./
include ./include.mk
libSources = impl/*.c
libHeaders = inc/*.h
libTests = tests/*.c
cPecanDependencies = ${LIBDEPENDS}
cPecanLibs = ${LDLIBS}
CFLAGS += -Wno-overlength-strings
all : ${LIBDIR}/cPecanLib.a ${BINDIR}/cPecanLibTests ${BINDIR}/cPecanRealign ${BINDIR}/cPecanEm ${BINDIR}/cPecanModifyHmm ${BINDIR}/cPecanAlign
cd externalTools && ${MAKE} all
clean :
rm -f ${BINDIR}/cPecanRealign ${BINDIR}/cPecanEm ${BINDIR}/cPecanLibTests ${LIBDIR}/cPecanLib.a
cd externalTools && ${MAKE} clean
rm -rf tmp_* *.o
export PYTHONPATH = ../sonLib/src:..
export PATH := ../sonLib/bin:${PATH}
test : all
${PYTHON} allTests.py
${BINDIR}/cPecanRealign : cPecanRealign.c ${LIBDIR}/cPecanLib.a ${cPecanDependencies}
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o ${BINDIR}/cPecanRealign cPecanRealign.c ${LIBDIR}/cPecanLib.a ${cPecanLibs} ${LDLIBS}
${BINDIR}/cPecanEm : cPecanEm.py
cp cPecanEm.py ${BINDIR}/cPecanEm
chmod +x ${BINDIR}/cPecanEm
${BINDIR}/cPecanModifyHmm : cPecanModifyHmm.py
cp cPecanModifyHmm.py ${BINDIR}/cPecanModifyHmm
chmod +x ${BINDIR}/cPecanModifyHmm
${BINDIR}/cPecanAlign : cPecanAlign.c ${LIBDIR}/cPecanLib.a ${cPecanDependencies}
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o ${BINDIR}/cPecanAlign cPecanAlign.c ${LIBDIR}/cPecanLib.a ${cPecanLibs} ${LDLIBS}
${BINDIR}/cPecanLibTests : ${libTests} ${LIBDIR}/cPecanLib.a ${cPecanDependencies}
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Wno-error -o ${BINDIR}/cPecanLibTests ${libTests} ${LIBDIR}/cPecanLib.a ${cPecanLibs} ${LDLIBS}
${LIBDIR}/cPecanLib.a : ${libSources} ${libHeaders} ${stBarDependencies}
${CC} ${CPPFLAGS} ${CFLAGS} -I inc -I ${LIBDIR}/ -c ${libSources}
${AR} rc cPecanLib.a *.o
${RANLIB} cPecanLib.a
mv cPecanLib.a ${LIBDIR}/
cp ${libHeaders} ${LIBDIR}/