-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.mk
More file actions
44 lines (37 loc) · 1.13 KB
/
config.mk
File metadata and controls
44 lines (37 loc) · 1.13 KB
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
MACH = $(shell uname -m)
SYS = $(shell uname -s)
SHELL = /bin/bash
PYTHON = python3
# edit to set to UCSC browser kent/src
KENTDIR = ${HOME}/kent/src
KENTINC = -I${KENTDIR}/inc -I${KENTDIR}/hg/inc
KENTLIBDIR = ${KENTDIR}/lib/${MACH}
KENTLIBS = ${KENTLIBDIR}/jkhgap.a ${KENTLIBDIR}/jkweb.a ${KENTDIR}/htslib/libhts.a
LIBS = $(shell freetype-config --libs) -lssl -lcrypto -lz -lpthread
ifeq (${SYS},Darwin)
USE_CLANG = no
else
USE_CLANG = no
endif
ifeq (${USE_CLANG}, yes)
CXX = clang++
CXXFLAGS = -std=c++11 -Wall -Werror -Wno-sign-compare -Wno-format-security
CXXDEBUG = -g -O0 -fno-inline
else
# gcc
ifeq (${SYS},Darwin)
CXX = g++-mp-8
else ifneq ($(wildcard /opt/rh/devtoolset-2/root/usr/bin/g++),)
CXX = /opt/rh/devtoolset-2/root/usr/bin/g++
else
CXX = g++
endif
CXXFLAGS = -std=c++11 -Wall -Werror -Wno-sign-compare
CXXDEBUG = -g -gdwarf-3 -O0 -fno-default-inline -fno-inline
endif
#CXXDEBUG += -pg
CXXFLAGS += ${KENTINC} ${CXXDEBUG}
BINDIR = ${ROOT}/bin
OBJDIR = ${ROOT}/objs
gencode_backmap = ${BINDIR}/gencode-backmap
gencodeAttrsStats = ${BINDIR}/gencodeAttrsStats