Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 344 lines (289 sloc) 7.844 kB
ca5629c @ViralBShah Define FFLAGS in Make.inc and use that in external/Makefile
ViralBShah authored
1 # -*- mode: makefile-gmake -*-
2
acff892 @StefanKarpinski Some cleanup in install/
StefanKarpinski authored
3 JULIA_VERSION = $(shell cat $(JULIAHOME)/VERSION)
4 JULIA_COMMIT = $(shell git rev-parse --short=10 HEAD)
5
d4786f2 @ViralBShah Install libraries in $(JULIAHOME)/usr instead of $(JULIAHOME)/deps/root
ViralBShah authored
6 USR = $(JULIAHOME)/usr
7 USRLIB = $(USR)/lib
8 USRBIN = $(USR)/bin
9 USRINC = $(USR)/include
10 LLVMROOT = $(USR)
50998fd @nolta Makefile: usr -> $(BUILD)
nolta authored
11 BUILD = $(USR)
08b1e29 @StefanKarpinski Include machine architecture in install tarball names.
StefanKarpinski authored
12
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
13 OS = $(shell uname)
08b1e29 @StefanKarpinski Include machine architecture in install tarball names.
StefanKarpinski authored
14 ARCH = $(shell uname -m)
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
15
93a52c4 @nolta add base/buildinfo.jl
nolta authored
16 USE_MKL = 0
de42363 @nolta use mkl for blas & lapack
nolta authored
17 MKLLIB = /path/to/mkl/lib/intel64
18
c82223b @nolta add atlas blas/lapack support
nolta authored
19 USE_ATLAS = 0
20 ATLAS_LIBDIR = /path/to/atlas/build/lib
21
12349d6 @Keno Add libuv submodule + make support (libuv&windows)
Keno authored
22 ifeq ($(OS), MINGW32_NT-6.1)
23 OS=WINNT
24 endif
25
26 ifeq ($(OS), WINNT)
27 fPIC =
28 else
29 fPIC = -fPIC
30 endif
31
660400c @ViralBShah Trying to get libunwind working on OS X.
ViralBShah authored
32 DEFAULT_REPL = readline
33 JULIAGC = MARKSWEEP
34 USE_COPY_STACKS = 1
35
36 # Compiler specific stuff
37
ca5629c @ViralBShah Define FFLAGS in Make.inc and use that in external/Makefile
ViralBShah authored
38 FC = gfortran
12349d6 @Keno Add libuv submodule + make support (libuv&windows)
Keno authored
39 JFFLAGS = -O2 $(fPIC)
ca5629c @ViralBShah Define FFLAGS in Make.inc and use that in external/Makefile
ViralBShah authored
40
38352a3 @ViralBShah Use SHIPFLAGS and DEBUGFLAGS from Make.inc everywhere.
ViralBShah authored
41 USEGCC = 1
42 USECLANG = 0
43
dbfc3b6 @ViralBShah Use clang as the default compiler on Mac.
ViralBShah authored
44 ifeq ($(OS), Darwin)
87ab4fb @ViralBShah Use GCC by default on OS X 10.6.
ViralBShah authored
45 OSVER = $(shell uname -r | cut -b 1-2)
46 ifeq ($(OSVER), 10)
47 USEGCC = 1
48 USECLANG = 0
49 else
dbfc3b6 @ViralBShah Use clang as the default compiler on Mac.
ViralBShah authored
50 USEGCC = 0
51 USECLANG = 1
52 endif
87ab4fb @ViralBShah Use GCC by default on OS X 10.6.
ViralBShah authored
53 endif
30c1710 @ViralBShah Use clang as default compiler on mac
ViralBShah authored
54
38352a3 @ViralBShah Use SHIPFLAGS and DEBUGFLAGS from Make.inc everywhere.
ViralBShah authored
55 ifeq ($(USEGCC),1)
bc67251 @nolta set macosx-version-min=10.5 for darwin clang builds
nolta authored
56 CC = gcc
57 CXX = g++
12349d6 @Keno Add libuv submodule + make support (libuv&windows)
Keno authored
58 JCFLAGS = -std=gnu99 -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
59 JCXXFLAGS = -pipe $(fPIC) -fno-rtti
38352a3 @ViralBShah Use SHIPFLAGS and DEBUGFLAGS from Make.inc everywhere.
ViralBShah authored
60 DEBUGFLAGS = -ggdb3 -DDEBUG
6127109 @nolta deps: a few ppc64 build fixes
nolta authored
61 SHIPFLAGS = -O3 -DNDEBUG -falign-functions
62 ifneq ($(ARCH), ppc64)
63 SHIPFLAGS += -momit-leaf-frame-pointer
64 endif
38352a3 @ViralBShah Use SHIPFLAGS and DEBUGFLAGS from Make.inc everywhere.
ViralBShah authored
65 endif
66
67 ifeq ($(USECLANG),1)
ec8f367 @JeffBezanson fixing #611
JeffBezanson authored
68 CC = clang
294dfdb @ViralBShah clang is part of regular compiler toolchain on OS X 10.7.
ViralBShah authored
69 CXX = clang++
30c1710 @ViralBShah Use clang as default compiler on mac
ViralBShah authored
70 JCFLAGS = -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
12349d6 @Keno Add libuv submodule + make support (libuv&windows)
Keno authored
71 JCXXFLAGS = -pipe $(fPIC) -fno-rtti
38352a3 @ViralBShah Use SHIPFLAGS and DEBUGFLAGS from Make.inc everywhere.
ViralBShah authored
72 DEBUGFLAGS = -g -DDEBUG
8d2b5cc @ViralBShah Fix build so that it works with clang.
ViralBShah authored
73 SHIPFLAGS = -O3 -DNDEBUG
bc67251 @nolta set macosx-version-min=10.5 for darwin clang builds
nolta authored
74 ifeq ($(OS), Darwin)
87ab4fb @ViralBShah Use GCC by default on OS X 10.6.
ViralBShah authored
75 CC += -mmacosx-version-min=10.6
76 CXX += -mmacosx-version-min=10.6
4f6050d @ViralBShah Add -D_LARGEFILE_SOURCE -D_DARWIN_USE_64_BIT_INODE=1 to JCFLAGS
ViralBShah authored
77 JCFLAGS += -D_LARGEFILE_SOURCE -D_DARWIN_USE_64_BIT_INODE=1
bc67251 @nolta set macosx-version-min=10.5 for darwin clang builds
nolta authored
78 endif
38352a3 @ViralBShah Use SHIPFLAGS and DEBUGFLAGS from Make.inc everywhere.
ViralBShah authored
79 endif
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
80
e92066d @JeffBezanson make configurable image path relative
JeffBezanson authored
81 # if not absolute, then relative to JULIA_HOME
7559af7 @ViralBShah Update path for sys.ji relative to install path - ../lib/julia/sys.ji
ViralBShah authored
82 JCFLAGS += '-DJL_SYSTEM_IMAGE_PATH="../lib/julia/sys.ji"'
e92066d @JeffBezanson make configurable image path relative
JeffBezanson authored
83
e5716df @ViralBShah Add minimum compiler requirements to README.md.
ViralBShah authored
84 # OPENBLAS build options
5e6d3ff @ViralBShah Use DYNAMIC_ARCH=0 by default now.
ViralBShah authored
85 OPENBLAS_DYNAMIC_ARCH=0
e5716df @ViralBShah Add minimum compiler requirements to README.md.
ViralBShah authored
86 OPENBLAS_USE_THREAD=1
a6b1ea5 @StefanKarpinski OPENBLAS_TARGET_ARCH: assign emtpy value in Make.inc.
StefanKarpinski authored
87 OPENBLAS_TARGET_ARCH=
aef72f0 @vtjnash adding OpenBLAS TARGET parameter to Make.inc
vtjnash authored
88
0d2b254 @ViralBShah Allow USE_SYSTEM_FFTW
ViralBShah authored
89 # Use libraries available on the system instead of building them
90
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
91 USE_SYSTEM_LLVM=0
aa7be99 @ViralBShah Some more fixes for lighttpd and make dist
ViralBShah authored
92 USE_SYSTEM_LIGHTTPD=0
d52936c @ViralBShah Build cleanups to use system provided libraries
ViralBShah authored
93 USE_SYSTEM_LIBUNWIND=0
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
94 USE_SYSTEM_READLINE=0
2849191 @ViralBShah Add ability to USE_SYSTEM_PCRE
ViralBShah authored
95 USE_SYSTEM_PCRE=0
d3d30e8 @ViralBShah Start work on using shared libraries as discussed in issue #353
ViralBShah authored
96 USE_SYSTEM_BLAS=0
97 USE_SYSTEM_LAPACK=0
0d2b254 @ViralBShah Allow USE_SYSTEM_FFTW
ViralBShah authored
98 USE_SYSTEM_FFTW=0
fe65d7c @ViralBShah Allow USE_SYSTEM_GMP (#551)
ViralBShah authored
99 USE_SYSTEM_GMP=0
22348ba @raggi Correct a typo that was preventing libarpack from being built. Might …
raggi authored
100 USE_SYSTEM_ARPACK=0
d52936c @ViralBShah Build cleanups to use system provided libraries
ViralBShah authored
101 USE_SYSTEM_SUITESPARSE=0
421cc54 @carlobaldassi glpk_wrapper.c + moved glpk/linprog to extras
carlobaldassi authored
102 USE_SYSTEM_GLPK=0
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
103 USE_SYSTEM_NGINX=0
c854d13 @kmsquire Initial zlib uncompress, compress support. Based partially on #553.
kmsquire authored
104 USE_SYSTEM_ZLIB=0
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
105
106 ifeq ($(USE_DEBIAN), 1)
107 USE_SYSTEM_LLVM=1
aa7be99 @ViralBShah Some more fixes for lighttpd and make dist
ViralBShah authored
108 USE_SYSTEM_LIGHTTPD=1
d52936c @ViralBShah Build cleanups to use system provided libraries
ViralBShah authored
109 USE_SYSTEM_LIBUNWIND=1
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
110 USE_SYSTEM_READLINE=1
2849191 @ViralBShah Add ability to USE_SYSTEM_PCRE
ViralBShah authored
111 USE_SYSTEM_PCRE=1
d3d30e8 @ViralBShah Start work on using shared libraries as discussed in issue #353
ViralBShah authored
112 USE_SYSTEM_BLAS=1
113 USE_SYSTEM_LAPACK=1
0d2b254 @ViralBShah Allow USE_SYSTEM_FFTW
ViralBShah authored
114 USE_SYSTEM_FFTW=1
fe65d7c @ViralBShah Allow USE_SYSTEM_GMP (#551)
ViralBShah authored
115 USE_SYSTEM_GMP=1
d52936c @ViralBShah Build cleanups to use system provided libraries
ViralBShah authored
116 USE_SYSTEM_ARPACK=1
117 USE_SYSTEM_SUITESPARSE=1
421cc54 @carlobaldassi glpk_wrapper.c + moved glpk/linprog to extras
carlobaldassi authored
118 USE_SYSTEM_GLPK=1
c854d13 @kmsquire Initial zlib uncompress, compress support. Based partially on #553.
kmsquire authored
119 USE_SYSTEM_ZLIB=1
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
120 endif
121
ca25824 @nolta Make.inc: include Make.user if it exists
nolta authored
122 -include $(JULIAHOME)/Make.user
123
124 # ===========================================================================
125
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
126 ifeq ($(USE_SYSTEM_LIBUNWIND), 1)
a232dc9 @ViralBShah Use wget instead of curl everywhere.
ViralBShah authored
127 LIBUNWIND=-lunwind-generic -lunwind
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
128 else
d4786f2 @ViralBShah Install libraries in $(JULIAHOME)/usr instead of $(JULIAHOME)/deps/root
ViralBShah authored
129 LIBUNWIND=$(USRLIB)/libunwind-generic.a $(USRLIB)/libunwind.a
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
130 endif
131
132 ifeq ($(USE_SYSTEM_LLVM), 1)
133 LLVM_CONFIG=llvm-config
134 else
135 LLVM_CONFIG=$(LLVMROOT)/bin/llvm-config
136 endif
137
138 ifeq ($(USE_SYSTEM_READLINE), 1)
12349d6 @Keno Add libuv submodule + make support (libuv&windows)
Keno authored
139 READLINE = -lreadline
140 else
d4786f2 @ViralBShah Install libraries in $(JULIAHOME)/usr instead of $(JULIAHOME)/deps/root
ViralBShah authored
141 READLINE = $(USR)/lib/libreadline.a
12349d6 @Keno Add libuv submodule + make support (libuv&windows)
Keno authored
142 endif
143
144 ifneq ($(OS),WINNT)
d705131 @nolta ui build: remove -lcurses
nolta authored
145 READLINE += -lncurses
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
146 else
d4786f2 @ViralBShah Install libraries in $(JULIAHOME)/usr instead of $(JULIAHOME)/deps/root
ViralBShah authored
147 READLINE += $(USR)/lib/libhistory.a
0caf832 Prepare to build on debian using debian dependencies.
Viral B. Shah authored
148 endif
aef72f0 @vtjnash adding OpenBLAS TARGET parameter to Make.inc
vtjnash authored
149
2849191 @ViralBShah Add ability to USE_SYSTEM_PCRE
ViralBShah authored
150 ifeq ($(USE_SYSTEM_PCRE), 1)
151 PCRE_CONFIG = pcre-config
152 else
d4786f2 @ViralBShah Install libraries in $(JULIAHOME)/usr instead of $(JULIAHOME)/deps/root
ViralBShah authored
153 PCRE_CONFIG = $(USR)/bin/pcre-config
2849191 @ViralBShah Add ability to USE_SYSTEM_PCRE
ViralBShah authored
154 endif
155
d3d30e8 @ViralBShah Start work on using shared libraries as discussed in issue #353
ViralBShah authored
156 ifeq ($(USE_SYSTEM_BLAS), 1)
157 ifeq ($(OS), Darwin)
158 LIBBLAS = -framework vecLib -lBLAS
2b5bf90 @nolta lowercase libblas & liblapack on darwin
nolta authored
159 LIBBLASNAME = libblas
d3d30e8 @ViralBShah Start work on using shared libraries as discussed in issue #353
ViralBShah authored
160 else
161 LIBBLAS = -lblas
c4dff93 @nolta add _jl_libblasname to buildinfo.jl
nolta authored
162 LIBBLASNAME = libblas
d3d30e8 @ViralBShah Start work on using shared libraries as discussed in issue #353
ViralBShah authored
163 endif
164 else
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
165 ifeq ($(OS), WINNT)
171c3e3 @ViralBShah Update to openblas 0.2.2.
ViralBShah authored
166 LIBBLAS = $(USRLIB)/libopenblas-r0.2.2.$(SHLIB_EXT) #necessary due to some stupid Windows behavoir - will try yto fix soon
167 LIBBLASNAME = libopenblas-r0.2.2
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
168 else
d4786f2 @ViralBShah Install libraries in $(JULIAHOME)/usr instead of $(JULIAHOME)/deps/root
ViralBShah authored
169 LIBBLAS = -L$(USRLIB) -lopenblas
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
170 LIBBLASNAME = libopenblas
171 endif
d3d30e8 @ViralBShah Start work on using shared libraries as discussed in issue #353
ViralBShah authored
172 endif
173
174 ifeq ($(USE_SYSTEM_LAPACK), 1)
175 ifeq ($(OS), Darwin)
176 LIBLAPACK = -framework vecLib -lLAPACK
2b5bf90 @nolta lowercase libblas & liblapack on darwin
nolta authored
177 LIBLAPACKNAME = liblapack
d3d30e8 @ViralBShah Start work on using shared libraries as discussed in issue #353
ViralBShah authored
178 else
179 LIBLAPACK = -llapack
d182a62 @nolta fix USE_SYSTEM_LAPACK=1 builds
nolta authored
180 LIBLAPACKNAME = liblapack
d3d30e8 @ViralBShah Start work on using shared libraries as discussed in issue #353
ViralBShah authored
181 endif
182 else
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
183 LIBLAPACK = $(LIBBLAS)
184 LIBLAPACKNAME = $(LIBBLASNAME)
d3d30e8 @ViralBShah Start work on using shared libraries as discussed in issue #353
ViralBShah authored
185 endif
186
0d2b254 @ViralBShah Allow USE_SYSTEM_FFTW
ViralBShah authored
187 # OS specific stuff
188
b6dc95c @nolta darwin build: all libraries now have relative id names
nolta authored
189 # must end with a / and have no trailing spaces
9ab1bba @vtjnash (summary: for Macs, fix suitesparse build tests) altering install nam…
vtjnash authored
190 INSTALL_NAME_ID_DIR = @rpath/
b6dc95c @nolta darwin build: all libraries now have relative id names
nolta authored
191
2a7f5a0 @nolta fix dlopen(cholmod,umfpack) crash on FreeBSD
nolta authored
192 RPATH =
193 RPATH_ORIGIN =
194
8809afb @Keno Various fixes to the buildsystem on Windows
Keno authored
195 ifeq ($(OS), WINNT)
196 SHELL_EXT = bat
197 else
198 SHELL_EXT = sh
199 endif
200
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
201 ifeq ($(OS), Linux)
036d055 @ViralBShah Start work towards #794
ViralBShah authored
202 INSTALL_NAME_CMD = true -ignore
a161302 @ViralBShah Fix dynamic library paths for FFTW on Darwin in #916.
ViralBShah authored
203 INSTALL_NAME_CHANGE_CMD = true -ignore
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
204 SHLIB_EXT = so
f917c96 @ViralBShah Use relative paths for locating libraries.
ViralBShah authored
205 RPATH = -Wl,-rpath,'$$ORIGIN/../lib'
2a7f5a0 @nolta fix dlopen(cholmod,umfpack) crash on FreeBSD
nolta authored
206 RPATH_ORIGIN = -Wl,-rpath,'$$ORIGIN'
65f9119 @Keno Fix build on windows
Keno authored
207 OSLIBS += -ldl -lrt -Wl,--export-dynamic -Wl,--version-script=$(JULIAHOME)/src/julia.expmap -Wl,--no-whole-archive $(LIBUNWIND)
cf1a2ac @ViralBShah Use -Wl,--whole-archive on linux
ViralBShah authored
208 WHOLE_ARCHIVE = -Wl,--whole-archive
209 NO_WHOLE_ARCHIVE = -Wl,--no-whole-archive
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
210 JLDFLAGS = -Wl,-Bdynamic
e00e534 @peerst Changes needed to build on FreeBSD
peerst authored
211 endif
212
213 ifeq ($(OS), FreeBSD)
036d055 @ViralBShah Start work towards #794
ViralBShah authored
214 INSTALL_NAME_CMD = true -ignore
a161302 @ViralBShah Fix dynamic library paths for FFTW on Darwin in #916.
ViralBShah authored
215 INSTALL_NAME_CHANGE_CMD = true -ignore
e00e534 @peerst Changes needed to build on FreeBSD
peerst authored
216 SHLIB_EXT = so
f917c96 @ViralBShah Use relative paths for locating libraries.
ViralBShah authored
217 RPATH = -Wl,-rpath,'$$ORIGIN/../lib' -Wl,-z,origin
2a7f5a0 @nolta fix dlopen(cholmod,umfpack) crash on FreeBSD
nolta authored
218 RPATH_ORIGIN = -Wl,-rpath,'$$ORIGIN' -Wl,-z,origin
cf1a2ac @ViralBShah Use -Wl,--whole-archive on linux
ViralBShah authored
219 WHOLE_ARCHIVE = -Wl,--whole-archive
220 NO_WHOLE_ARCHIVE = -Wl,--no-whole-archive
d73d7e8 @nolta freebsd: fix 'JLD_FLAGS' typo in Make.inc
nolta authored
221 JLDFLAGS = -Wl,-Bdynamic
a10cd86 @nolta fix FreeBSD linking bug
nolta authored
222 OSLIBS += -lkvm -lrt -Wl,--export-dynamic -Wl,--version-script=$(JULIAHOME)/src/julia.expmap $(NO_WHOLE_ARCHIVE) $(LIBUNWIND)
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
223 endif
224
225 ifeq ($(OS), Darwin)
b6dc95c @nolta darwin build: all libraries now have relative id names
nolta authored
226 INSTALL_NAME_CMD = install_name_tool -id $(INSTALL_NAME_ID_DIR)
a161302 @ViralBShah Fix dynamic library paths for FFTW on Darwin in #916.
ViralBShah authored
227 INSTALL_NAME_CHANGE_CMD = install_name_tool -change
9ab1bba @vtjnash (summary: for Macs, fix suitesparse build tests) altering install nam…
vtjnash authored
228 RPATH = -Wl,-rpath,@executable_path/../lib
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
229 SHLIB_EXT = dylib
cf1a2ac @ViralBShah Use -Wl,--whole-archive on linux
ViralBShah authored
230 OSLIBS += -ldl -Wl,-w -framework ApplicationServices
231 WHOLE_ARCHIVE = -Xlinker -all_load
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
232 NO_WHOLE_ARCHIVE =
233 JLDFLAGS =
12349d6 @Keno Add libuv submodule + make support (libuv&windows)
Keno authored
234 endif
235
236 ifeq ($(OS), WINNT)
036d055 @ViralBShah Start work towards #794
ViralBShah authored
237 INSTALL_NAME_CMD = true -ignore
a161302 @ViralBShah Fix dynamic library paths for FFTW on Darwin in #916.
ViralBShah authored
238 INSTALL_NAME_CHANGE_CMD = true -ignore
12349d6 @Keno Add libuv submodule + make support (libuv&windows)
Keno authored
239 SHLIB_EXT = dll
8809afb @Keno Various fixes to the buildsystem on Windows
Keno authored
240 WHOLE_ARCHIVE = -Wl,--whole-archive
241 NO_WHOLE_ARCHIVE = -Wl,--no-whole-archive
242 OSLIBS += -Wl,--export-all-symbols -Wl,--version-script=$(JULIAHOME)/src/julia.expmap -lpthread $(NO_WHOLE_ARCHIVE) -lPsapi -lkernel32 -lWs2_32 -lIphlpapi
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
243 endif
acf590a @ViralBShah Link all libraries statically into the julia binary.
ViralBShah authored
244
de42363 @nolta use mkl for blas & lapack
nolta authored
245 # MKL
246
247 ifeq ($(USE_MKL), 1)
248 USE_SYSTEM_BLAS=1
249 USE_SYSTEM_LAPACK=1
250 LIBBLAS = -L$(MKLLIB) -lmkl_rt
251 LIBLAPACK = -L$(MKLLIB) -lmkl_rt
c4dff93 @nolta add _jl_libblasname to buildinfo.jl
nolta authored
252 LIBBLASNAME = libmkl_rt
d182a62 @nolta fix USE_SYSTEM_LAPACK=1 builds
nolta authored
253 LIBLAPACKNAME = libmkl_rt
fde183d @nolta add MKLLIB to rpath (closes #1028)
nolta authored
254 ifneq ($(strip $(MKLLIB)),)
255 ifeq ($(OS), Linux)
256 RPATH += -Wl,-rpath,$(MKLLIB)
257 endif
258 endif
de42363 @nolta use mkl for blas & lapack
nolta authored
259 endif
260
c82223b @nolta add atlas blas/lapack support
nolta authored
261 ifeq ($(USE_ATLAS), 1)
262 USE_SYSTEM_BLAS = 1
263 USE_SYSTEM_LAPACK = 1
264 LIBBLAS = -L$(ATLAS_LIBDIR) -lsatlas
265 LIBLAPACK = $(LIBBLAS)
266 LIBBLASNAME = libsatlas
267 LIBLAPACKNAME = $(LIBBLASNAME)
268 endif
269
6ac5993 @Keno Move new Make macros to Make.inc
Keno authored
270 # Make tricks
271
272 define dir_target
273 $$(subst $$(abspath $(JULIAHOME))/,,$$(abspath $(1))): $$(abspath $(1))
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
274 $$(abspath $(1)):
6ac5993 @Keno Move new Make macros to Make.inc
Keno authored
275 @mkdir -p $$@
276 endef
277
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
278 ifeq ($(OS), WINNT)
279 define mingw_to_dos
280 $(subst /,\\,$(subst $(shell $(2) pwd),$(shell $(2) cmd //C cd),$(abspath $(1))))
281 endef
282 define symlink_target
283 CLEAN_TARGETS += clean-$(2)/$(1)
284 clean-$$(abspath $(2)/$(1)):
285 @-cmd //C rmdir $$(call mingw_to_dos,$(2)/$(1),cd $(2) &&)
286 $$(subst $$(abspath $(JULIAHOME))/,,$$(abspath $(2)/$(1))): $$(abspath $(2)/$(1))
287 $$(abspath $(2)/$(1)): | $$(abspath $(2))
288 @cmd //C mklink //J $$(call mingw_to_dos,$(2)/$(1),cd $(2) &&) $$(call mingw_to_dos,$(1),)
289 endef
290 else
291 define symlink_target
292 CLEAN_TARGETS += clean-$(2)/$(1)
293 clean-$$(abspath $(2)/$(1)):
294 @-rm $$(abspath $(2)/$(1))
295 $$(subst $$(abspath $(JULIAHOME))/,,$$(abspath $(2)/$(1))): $$(abspath $(2)/$(1))
296 $$(abspath $(2)/$(1)): | $$(abspath $(2))
297 @ln -sf $$(abspath $(1)) $$@
298 endef
299 endif
300
301 JULIA_EXECUTABLE_debug = $(BUILD)/bin/julia-debug-$(DEFAULT_REPL)
302 JULIA_EXECUTABLE_release = $(BUILD)/bin/julia-release-$(DEFAULT_REPL)
303
304 ifeq ($(OS), WINNT)
305 JULIA_EXECUTABLE = $(JULIA_EXECUTABLE_release)
306 else
307 JULIA_EXECUTABLE = $(JULIAHOME)/julia
308 endif
309
6ac5993 @Keno Move new Make macros to Make.inc
Keno authored
310
7fe1e90 @ViralBShah colors for make and quiet compile lines in release target.
ViralBShah authored
311 # Colors for make
312
86b1a39 @ViralBShah Try to reintroduce USE_QUIET - seems to work better this time around.
ViralBShah authored
313 USE_QUIET = 1
314 ifeq ($(USE_QUIET), 1)
315
7fe1e90 @ViralBShah colors for make and quiet compile lines in release target.
ViralBShah authored
316 CCCOLOR="\033[34m"
317 LINKCOLOR="\033[34;1m"
818375e @StefanKarpinski Make our build output absurdly slick.
StefanKarpinski authored
318 PERLCOLOR="\033[35m"
319 FLISPCOLOR="\033[32m"
320 JULIACOLOR="\033[32;1m"
321
7fe1e90 @ViralBShah colors for make and quiet compile lines in release target.
ViralBShah authored
322 SRCCOLOR="\033[33m"
323 BINCOLOR="\033[37;1m"
818375e @StefanKarpinski Make our build output absurdly slick.
StefanKarpinski authored
324 JULCOLOR="\033[34;1m"
7fe1e90 @ViralBShah colors for make and quiet compile lines in release target.
ViralBShah authored
325 ENDCOLOR="\033[0m"
326
7365842 @Keno Fix a few style issue in the Makefile
Keno authored
327 GOAL=$(subst $(abspath $(JULIAHOME))/,,$(abspath $@))
818375e @StefanKarpinski Make our build output absurdly slick.
StefanKarpinski authored
328
329 QUIET_CC = @printf ' %b %b\n' $(CCCOLOR)CC$(ENDCOLOR) $(SRCCOLOR)$(GOAL)$(ENDCOLOR);
330 QUIET_LINK = @printf ' %b %b\n' $(LINKCOLOR)LINK$(ENDCOLOR) $(BINCOLOR)$(GOAL)$(ENDCOLOR);
331 QUIET_PERL = @printf ' %b %b\n' $(PERLCOLOR)PERL$(ENDCOLOR) $(BINCOLOR)$(GOAL)$(ENDCOLOR);
332 QUIET_FLISP = @printf ' %b %b\n' $(FLISPCOLOR)FLISP$(ENDCOLOR) $(BINCOLOR)$(GOAL)$(ENDCOLOR);
333 QUIET_JULIA = @printf ' %b %b\n' $(JULIACOLOR)JULIA$(ENDCOLOR) $(BINCOLOR)$(GOAL)$(ENDCOLOR);
86b1a39 @ViralBShah Try to reintroduce USE_QUIET - seems to work better this time around.
ViralBShah authored
334
335 else
336
337 QUIET_CC =
338 QUIET_LINK =
339 QUIET_PERL =
340 QUIET_FLISP =
341 QUIET_JULIA =
342
343 endif
Something went wrong with that request. Please try again.