Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 100 lines (81 sloc) 3.189 kB
3f7f460 @ViralBShah Makefile cleanup. Add perl to build requirements in README.md.
ViralBShah authored
1 JULIAHOME = $(abspath .)
577b2f9 @ViralBShah Fix ui/webserver/Makefile so that julia-release-webserver is not buil…
ViralBShah authored
2 include $(JULIAHOME)/Make.inc
19fce6f @ViralBShah Install libraries from $JULIA_HOME/ext/root/lib into $JULIA_HOME/lib …
ViralBShah authored
3
c956b74 @vtjnash copy system SuiteSparse locally to be compatible with the way we buil…
vtjnash authored
4 all: default
5f094bd @StefanKarpinski Ditch quick tests.
StefanKarpinski authored
5 default: release
f611387 @ViralBShah Simplify build environment.
ViralBShah authored
6
50998fd @nolta Makefile: usr -> $(BUILD)
nolta authored
7 DIRS = $(BUILD)/bin $(BUILD)/etc $(BUILD)/lib/julia
7365842 @Keno Fix a few style issue in the Makefile
Keno authored
8
baeb10c @Keno use relative not absolute paths for directory structure creation
Keno authored
9 $(foreach dir,$(DIRS),$(eval $(call dir_target,$(dir))))
bcf67b7 @timholy Move ZeroMQ files to ui/, as suggested by Viral
timholy authored
10 $(foreach link,extras base ui,$(eval $(call symlink_target,$(link),$(BUILD)/lib/julia)))
7365842 @Keno Fix a few style issue in the Makefile
Keno authored
11
bcf67b7 @timholy Move ZeroMQ files to ui/, as suggested by Viral
timholy authored
12 debug release: | $(DIRS) $(BUILD)/lib/julia/extras $(BUILD)/lib/julia/base $(BUILD)/lib/julia/ui
f5bbd1e @StefanKarpinski Don't echo make commands in top-level Makefile.
StefanKarpinski authored
13 @$(MAKE) -s julia-$@
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
14 @$(MAKE) JULIA_EXECUTABLE=$(JULIA_EXECUTABLE_$@) -s $(BUILD)/lib/julia/sys.ji
9298e59 @StefanKarpinski Makefile: julia-{debug,release} only depend on src/*.{h,c,cpp,scm}.
StefanKarpinski authored
15
52d1556 @JeffBezanson adding debug build to ui/Makefile
JeffBezanson authored
16 julia-debug julia-release:
33dd8e1 @StefanKarpinski Rename: external/ => deps/ [closes #726].
StefanKarpinski authored
17 @$(MAKE) -sC deps
203455c @pao make: remove PARALLEL_BUILD_JOBS
pao authored
18 @$(MAKE) -sC src lib$@
19 @$(MAKE) -sC base
816a475 @Keno Add extras/ to default make dirs
Keno authored
20 @$(MAKE) -sC extras
203455c @pao make: remove PARALLEL_BUILD_JOBS
pao authored
21 @$(MAKE) -sC ui $@
50998fd @nolta Makefile: usr -> $(BUILD)
nolta authored
22 @ln -sf $(BUILD)/bin/$@-$(DEFAULT_REPL) julia
f611387 @ViralBShah Simplify build environment.
ViralBShah authored
23
1d7b6bf @nolta Makefile: add directory dependency to helpdb.jl install
nolta authored
24 $(BUILD)/lib/julia/helpdb.jl: doc/helpdb.jl | $(BUILD)/lib/julia
f7475ac @nolta Makefile: tweak helpdb.jl dependencies
nolta authored
25 @cp $< $@
26
8044eb1 @JeffBezanson simplify bootstrapping process
JeffBezanson authored
27 # use sys.ji if it exists, otherwise run two stages
28 $(BUILD)/lib/julia/sys.ji: VERSION base/*.jl $(BUILD)/lib/julia/helpdb.jl
29 $(QUIET_JULIA) cd base && \
5727f3a @nolta add cmdline switch to supress loading startup scripts
nolta authored
30 (test -f $(BUILD)/lib/julia/sys.ji || $(JULIA_EXECUTABLE) -bf sysimg.jl) && $(JULIA_EXECUTABLE) -f sysimg.jl || echo "Note: this error is usually fixed by running 'make clean'."
819eb5a @JeffBezanson using stage 1 system image by default
JeffBezanson authored
31
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
32 ifeq ($(OS), WINNT)
33 OPENBLASNAME=openblas-r0.1.1
34 else
35 OPENBLASNAME=openblas
36 endif
6879f19 @nolta fix Makefile regressions: rename DESTDIR -> PREFIX, mkdir /share/julia
nolta authored
37 PREFIX ?= julia-$(JULIA_COMMIT)
329cbc0 @ViralBShah make install now works at toplevel, and installs into DESTDIR.
ViralBShah authored
38 install: release
6879f19 @nolta fix Makefile regressions: rename DESTDIR -> PREFIX, mkdir /share/julia
nolta authored
39 mkdir -p $(PREFIX)/{sbin,bin,etc,lib/julia,share/julia}
50998fd @nolta Makefile: usr -> $(BUILD)
nolta authored
40 cp $(BUILD)/bin/*julia* $(PREFIX)/bin
7351f48 @nolta make install: add bin/julia symlink
nolta authored
41 cd $(PREFIX)/bin && ln -s julia-release-$(DEFAULT_REPL) julia
946ccff @Keno Fix install on OS X
Keno authored
42 cp -R -L $(BUILD)/lib/julia/* $(PREFIX)/lib/julia
c854d13 @kmsquire Initial zlib uncompress, compress support. Based partially on #553.
kmsquire authored
43 -cp $(BUILD)/lib/lib{Rmath,amd,amos,arpack,cholmod,colamd,fdm,fftw3,fftw3f,fftw3_threads,fftw3f_threads,glpk,glpk_wrapper,gmp,gmp_wrapper,grisu,history,julia-release,$(OPENBLASNAME),openlibm,pcre,random,readline,suitesparse_wrapper,umfpack,z}.$(SHLIB_EXT) $(PREFIX)/lib
25031c0 @ViralBShah Diet `make dist`. Only 16MB now.
ViralBShah authored
44 # Web-REPL stuff
50998fd @nolta Makefile: usr -> $(BUILD)
nolta authored
45 -cp $(BUILD)/lib/mod* $(PREFIX)/lib
46 -cp $(BUILD)/sbin/* $(PREFIX)/sbin
47 -cp $(BUILD)/etc/* $(PREFIX)/etc
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
48 ifeq ($(OS), WINNT)
49 -cp dist/windows/* $(PREFIX)
50 ifeq ($(shell uname),MINGW32_NT-6.1)
51 -cp /mingw/bin/{libgfortran-3,libquadmath-0,libgcc_s_dw2-1,libstdc++-6,pthreadgc2}.dll $(PREFIX)/lib
52 endif
53 endif
25031c0 @ViralBShah Diet `make dist`. Only 16MB now.
ViralBShah authored
54
5e6d3ff @ViralBShah Use DYNAMIC_ARCH=0 by default now.
ViralBShah authored
55 dist: cleanall
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
56 rm -fr julia-*.tar.gz julia-$(JULIA_COMMIT)
2cf1a48 @ViralBShah An attempt to address #999 for OS X.
ViralBShah authored
57 -$(MAKE) -C deps clean-openblas
2e5b1fa @ViralBShah Revert to GCC as the default compiler on Darwin.
ViralBShah authored
58 $(MAKE) install OPENBLAS_DYNAMIC_ARCH=1
e501a6c @ViralBShah Tweaks to installing libgfortran on Darwin.
ViralBShah authored
59 ifeq ($(OS), Darwin)
60 -./contrib/fixup-libgfortran.sh $(PREFIX)/lib /usr/local/lib
61 endif
25031c0 @ViralBShah Diet `make dist`. Only 16MB now.
ViralBShah authored
62 tar zcvf julia-$(JULIA_COMMIT)-$(OS)-$(ARCH).tar.gz julia-$(JULIA_COMMIT)
43cd97a @ViralBShah Simplified install.
ViralBShah authored
63 rm -fr julia-$(JULIA_COMMIT)
329cbc0 @ViralBShah make install now works at toplevel, and installs into DESTDIR.
ViralBShah authored
64
24dc5e7 @ViralBShah Makefile rule to build and clean debian packages.
ViralBShah authored
65 deb:
66 fakeroot debian/rules binary
67
68 debclean:
69 fakeroot debian/rules clean
70
50998fd @nolta Makefile: usr -> $(BUILD)
nolta authored
71 h2j: $(BUILD)/lib/libLLVM*.a $(BUILD)/lib/libclang*.a src/h2j.cpp
818375e @StefanKarpinski Make our build output absurdly slick.
StefanKarpinski authored
72 $(QUIET_CC) g++ -O2 -fno-rtti -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -Iinclude $^ -o $@
cf6f13f @StefanKarpinski Run "make h2j && ./h2j" to see all of julia.h's function signatures.
StefanKarpinski authored
73
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
74 clean: | $(CLEAN_TARGETS)
c36d6e8 @JeffBezanson jl => base renaming in Makefile
JeffBezanson authored
75 @$(MAKE) -sC base clean
78f701b @ViralBShah launch-julia-webserver now works in the packaged julia created
ViralBShah authored
76 @$(MAKE) -sC extras clean
818375e @StefanKarpinski Make our build output absurdly slick.
StefanKarpinski authored
77 @$(MAKE) -sC src clean
78 @$(MAKE) -sC ui clean
79 @$(MAKE) -sC ui/webserver clean
80 @$(MAKE) -sC test/unicode clean
3ace3d8 @Keno Various minor fixes from the Windows branch
Keno authored
81 @rm -f julia-{release,debug}-{basic,readline,webserver}
82 @rm -f *~ *# *.tar.gz
83 @rm -fr $(BUILD)/lib/julia
2abdce9 @ViralBShah Add factorizations to the test suite.
ViralBShah authored
84
1c273f2 @ViralBShah Add Makefiles for j/ and test/
ViralBShah authored
85 cleanall: clean
818375e @StefanKarpinski Make our build output absurdly slick.
StefanKarpinski authored
86 @$(MAKE) -sC src clean-flisp clean-support
bf3175d @ViralBShah Clean up the make install stuff.
ViralBShah authored
87 # @$(MAKE) -sC deps clean-uv
c806c20 @ViralBShah install does not exist any more.
ViralBShah authored
88
1c273f2 @ViralBShah Add Makefiles for j/ and test/
ViralBShah authored
89 .PHONY: default debug release julia-debug julia-release \
1488edd @nolta Makefile: remove defunct sloccount
nolta authored
90 test testall test-* clean cleanall
9f80094 @StefanKarpinski Add make target "testall" that runs tests.j and test_utf8.j.
StefanKarpinski authored
91
767e05e @StefanKarpinski Makefile: need to ensure that sys.ji gets built.
StefanKarpinski authored
92 test: release
5f094bd @StefanKarpinski Ditch quick tests.
StefanKarpinski authored
93 @$(MAKE) -sC test default
ba4768a @StefanKarpinski Some renaming in test/; test hashing as part of testall.
StefanKarpinski authored
94
767e05e @StefanKarpinski Makefile: need to ensure that sys.ji gets built.
StefanKarpinski authored
95 testall: release
818375e @StefanKarpinski Make our build output absurdly slick.
StefanKarpinski authored
96 @$(MAKE) -sC test all
ba4768a @StefanKarpinski Some renaming in test/; test hashing as part of testall.
StefanKarpinski authored
97
767e05e @StefanKarpinski Makefile: need to ensure that sys.ji gets built.
StefanKarpinski authored
98 test-%: release
818375e @StefanKarpinski Make our build output absurdly slick.
StefanKarpinski authored
99 @$(MAKE) -sC test $*
Something went wrong with that request. Please try again.