forked from statgen/statgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.include
29 lines (22 loc) · 915 Bytes
/
Makefile.include
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
# This Makefile requires that the following values be previously set.
# PATH_TO_BASE - the path to this Makefile - the path to the base of the tree.
LIB_PATH = $(PATH_TO_BASE)/lib
STAT_GEN_LIB = $(LIB_PATH)/libStatGen.a
REQ_LIBS = $(STAT_GEN_LIB) $(LIB_PATH)/samtools/libbam.a
OBJDIR = obj
TEST_DIR = test
SAMTOOLS_PATH = $(LIB_PATH)/samtools
INCLUDE_PATH = $(LIB_PATH)/include
TCLAP_PATH = $(LIB_PATH)/tclap
include $(PATH_TO_BASE)/Makefile.toolchain
# -fno-ftti is sometimes useful to increase speed
# 2-5%, but makes linking consistently more difficult
#OPTFLAG?=-ggdb -O0
OPTFLAG?=-O4
CXX?=g++
# User specific variables listed here.
# USER_INCLUDES =
# USER_COMPILE_VARS =
CFLAGS?= -Wall $(OPTFLAG) -I$(INCLUDE_PATH) -I$(SAMTOOLS_PATH) $(USER_INCLUDES) -D__ZLIB_AVAILABLE__ -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS $(USER_COMPILE_VARS)
# default installation directory
INSTALLDIR?=/usr/local/bin