forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMake.inc
43 lines (35 loc) · 917 Bytes
/
Make.inc
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
JULIALIB = $(JULIAHOME)/lib
EXTROOT = $(JULIAHOME)/external/root
EXTROOTLIB = $(EXTROOT)/lib
LLVMROOT = $(EXTROOT)
OS = $(shell uname)
CC = gcc
CXX = g++
CFLAGS = -std=gnu99 -fPIC -D_FORTIFY_SOURCE=0
CXXFLAGS = -fPIC -D_FORTIFY_SOURCE=0
FC = gfortran
DEBUGFLAGS = -ggdb3 -DDEBUG $(FLAGS)
SHIPFLAGS = -O3 -DNDEBUG $(FLAGS)
# Different REPLs. Currently, only one of these can be chosen
DEFAULT_REPL = readline
REPL_READLINE = 1
#REPL_BASIC = 1
#REPL_CLOUD = 1
JULIAGC = MARKSWEEP
USE_COPY_STACKS = 1
# OS specific stuff
ifeq ($(OS), Linux)
SHLIB_EXT = so
OSLIBS += -Wl,--export-dynamic -Wl,--version-script=$(JULIAHOME)/src/julia.expmap
endif
ifeq ($(OS), Darwin)
SHLIB_EXT = dylib
OSLIBS += -Wl,-w -framework ApplicationServices -framework vecLib
endif
# Library versions for building external libraries
LLVM_VER = 2.9
READLINE_VER = 6.2
FDLIBM_VER = 5.3
PCRE_VER = 8.12
LAPACK_VER = 3.3.1
MONGOOSE_VER = 3.0