forked from ComparativeGenomicsToolkit/hal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinclude.mk
74 lines (58 loc) · 2.02 KB
/
include.mk
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#Location of sonLib
binPath=${rootPath}bin/
libPath=${rootPath}lib/
#Modify this variable to set the location of sonLib
#(sonlib is used only for cuTest at this potin)
sonLibRootPath=${rootPath}/../sonLib
sonLibPath=${sonLibRootPath}/lib
include ${sonLibRootPath}/include.mk
dataSetsPath=/Users/hickey/Documents/Devel/genomes/datasets
cflags += -I${sonLibPath} -fPIC
cppflags += -I${sonLibPath} -fPIC
basicLibs = ${sonLibPath}/sonLib.a ${sonLibPath}/cuTest.a
basicLibsDependencies = ${basicLibs}
# hdf5 compilation is done through its wrappers.
# we can speficy our own (sonlib) compilers with these variables:
HDF5_CXX = ${cpp}
HDF5_CXXLINKER = ${cpp}
HDF5_CC = ${cxx}
HDF5_CCLINKER = ${cxx}
cpp = h5c++ ${h5prefix}
cxx = h5cc ${h5prefix}
# add compiler flag and kent paths if udc is enabled
# relies on KENTSRC containing path to top level kent/ dir
# and MACHTYPE being specified
ifdef ENABLE_UDC
# Find samtabix as in kent/src/inc/common.mk:
ifeq (${SAMTABIXDIR},)
SAMTABIXDIR = /hive/data/outside/samtabix/${MACHTYPE}
endif
cppflags += -DENABLE_UDC -I${KENTSRC}/src/inc -pthread
cflags += -I${KENTSRC}/src/inc -pthread
basicLibs += ${KENTSRC}/src/lib/${MACHTYPE}/jkweb.a ${SAMTABIXDIR}/libsamtabix.a -lssl -lcrypto
endif
#
# phyloP support
#
phyloPcppflags =
phyloPlibs =
ifdef ENABLE_PHYLOP
ifndef TARGETOS
TARGETOS := $(shell uname -s)
endif
# Local Linux install (phast and clapack sister dirs to hal/)
# (note CLAPACKPATH not needed in Mac)
PHAST=../../phast
CLAPACKPATH=../../clapack
# Melissa's version of the above
# PHAST=/home/mt269/phast
# CLAPACKPATH=/usr/local/software/CLAPACK
ifeq ($(TARGETOS), Darwin)
phyloPcppflags += -DENABLE_PHYLOP -I${PHAST}/include -I${PHAST}/src/lib/pcre -framework vecLib -DVECLIB
phyloPlibs += -L${PHAST}/lib -lphast -lc
else
F2CPATH=${CLAPACKPATH}/F2CLIBS
phyloPcppflags += -DENABLE_PHYLOP -I${PHAST}/include -I${PHAST}/src/lib/pcre -I${CLAPACKPATH}/INCLUDE -I${F2CPATH}
phyloPlibs += -L${PHAST}/lib -lphast -L${CLAPACKPATH} -L${F2CPATH} -llapack -ltmg -lblaswr -lf2c
endif
endif