Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 55 lines (43 sloc) 1.352 kB
acff892 @StefanKarpinski Some cleanup in install/
StefanKarpinski authored
1 JULIA_VERSION = $(shell cat $(JULIAHOME)/VERSION)
2 JULIA_COMMIT = $(shell git rev-parse --short=10 HEAD)
3
479b3dc @ViralBShah No need of a JULIAHOME env variable any more.
ViralBShah authored
4 JULIALIB = $(JULIAHOME)/lib
9d622e3 @ViralBShah Directory reorganization.
ViralBShah authored
5 EXTROOT = $(JULIAHOME)/external/root
19fce6f @ViralBShah Install libraries from $JULIA_HOME/ext/root/lib into $JULIA_HOME/lib …
ViralBShah authored
6 EXTROOTLIB = $(EXTROOT)/lib
7 LLVMROOT = $(EXTROOT)
08b1e29 @StefanKarpinski Include machine architecture in install tarball names.
StefanKarpinski authored
8
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
9 OS = $(shell uname)
08b1e29 @StefanKarpinski Include machine architecture in install tarball names.
StefanKarpinski authored
10 ARCH = $(shell uname -m)
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
11
660400c @ViralBShah Trying to get libunwind working on OS X.
ViralBShah authored
12 DEFAULT_REPL = readline
13 JULIAGC = MARKSWEEP
14 USE_COPY_STACKS = 1
15
16 # Compiler specific stuff
17
38352a3 @ViralBShah Use SHIPFLAGS and DEBUGFLAGS from Make.inc everywhere.
ViralBShah authored
18 USEGCC = 1
19 USECLANG = 0
20
21 ifeq ($(USEGCC),1)
d402e49 @ViralBShah Makefile cleanup
ViralBShah authored
22 CC = gcc
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
23 CXX = g++
d402e49 @ViralBShah Makefile cleanup
ViralBShah authored
24 FC = gfortran
7956c7c @ViralBShah Rename llt to support everywhere.
ViralBShah authored
25 CFLAGS = -pipe -std=gnu99 -fPIC
26 CXXFLAGS = -pipe -fPIC -fno-rtti
38352a3 @ViralBShah Use SHIPFLAGS and DEBUGFLAGS from Make.inc everywhere.
ViralBShah authored
27 DEBUGFLAGS = -ggdb3 -DDEBUG
28 SHIPFLAGS = -O3 -DNDEBUG
29 endif
30
31 ifeq ($(USECLANG),1)
294dfdb @ViralBShah clang is part of regular compiler toolchain on OS X 10.7.
ViralBShah authored
32 CC = clang
33 CXX = clang++
38352a3 @ViralBShah Use SHIPFLAGS and DEBUGFLAGS from Make.inc everywhere.
ViralBShah authored
34 CFLAGS = -fPIC -fexceptions -pipe
35 CXXFLAGS = -fPIC -fno-rtti -fexceptions -pipe
36 DEBUGFLAGS = -g -DDEBUG
37 SHIPFLAGS = -O4 -DNDEBUG
38 endif
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
39
40 # OS specific stuff
41
42 ifeq ($(OS), Linux)
43 SHLIB_EXT = so
f0e78aa @StefanKarpinski Allow compilation on OS X; libunwind doesn't work though.
StefanKarpinski authored
44 OSLIBS += -Wl,--export-dynamic -Wl,--version-script=$(JULIAHOME)/src/julia.expmap $(EXTROOT)/lib/libunwind-generic.a $(EXTROOT)/lib/libunwind.a
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
45 endif
46
47 ifeq ($(OS), Darwin)
48 SHLIB_EXT = dylib
dde5dcb @ViralBShah Don't link the vecLib framework on Mac anymore, since we use our
ViralBShah authored
49 OSLIBS += -Wl,-w -framework ApplicationServices
660400c @ViralBShah Trying to get libunwind working on OS X.
ViralBShah authored
50 #CFLAGS += -fno-optimize-sibling-calls -fno-inline-functions
d209cfa @ViralBShah Integrate Make.inc.OS into one Make.inc
ViralBShah authored
51 endif
acf590a @ViralBShah Link all libraries statically into the julia binary.
ViralBShah authored
52
53 # Libraries to link
901ca10 @ViralBShah Reorder library linking to build on linux
ViralBShah authored
54 LIBS = $(shell $(LLVMROOT)/bin/llvm-config --libfiles) $(JULIAHOME)/src/flisp/libflisp.a $(JULIAHOME)/src/support/libsupport.a -L$(EXTROOT)/lib -lutil -ldl -lm $(OSLIBS) -lpthread $(shell $(LLVMROOT)/bin/llvm-config --ldflags)
Something went wrong with that request. Please try again.