X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=upstream%2FMakefile;h=bc220670a4fc8d1e43e42e1a8d4786febf06f7aa;hp=a0207320b50e2c7b058dcba7cce0e1c8b36d3c14;hb=031222f07c4ac6549cfdcb0667114ba5476bbbaf;hpb=6598036848013a0dcd0a0511ebfd37880c1f22c3 diff --git a/upstream/Makefile b/upstream/Makefile index a020732..bc22067 100644 --- a/upstream/Makefile +++ b/upstream/Makefile @@ -30,8 +30,10 @@ tasks/everything: \ tasks/build_linpack \ -darcs_gcclass = http://darcs.brianweb.net/gcclass -darcs_classgen = http://darcs.brianweb.net/classgen +darcs_gcclass = http://gcclass.ibex.org/ +darcs_classgen = http://classgen.ibex.org/ +git_gcclass = http://gcclass.ibex.org/.git/ +git_classgen = http://classgen.ibex.org/.git/ cross_root := $(usr)/mips-unknown-elf .SECONDARY: # This is broken in gmake < 3.79.1 @@ -100,6 +102,30 @@ tasks/build_darcs_%: tasks/extract_darcs_% cd "build/$*" && $(MAKE) touch $@ +tasks/extract_git_%: + if [ -e $@ ]; then echo "Error: $@ exists. something isn't right"; false; else true; fi + mkdir -p build + if [ -z "$(git_$*)" ]; then echo "No git url for $*" >&2; false; fi + if [ -d "$(root)/.git" ]; then \ + cd build && git clone "$(git_$*)" "$*"; \ + else \ + mkdir -p "build/" && cd "build/"; \ + git clone $(darcs_$*) $*; \ + fi + touch $@ + +update_git_%: tasks/extract_git_% + if [ -d "build/$*/.git" ]; then \ + cd "build/$*" && git fetch; \ + else \ + cd "build/$*" && git clone $(git_$*); \ + fi + rm -f "tasks/build_git_$*" # to force a rebuild + +tasks/build_git_%: tasks/extract_git_% + cd "build/$*" && $(MAKE) + touch $@ + clean_%: rm -rf "build/$(*)"* rm -f "tasks/build_$*" "tasks/patch_$*" "tasks/extract_$*" @@ -211,7 +237,7 @@ tasks/build_newlib: tasks/build_gcc ## openbsdglob ############################################################################## -url_openbsdglob = http://www.brianweb.net/xwt/openbsdglob.tar.gz +url_openbsdglob = http://nestedvm.ibex.org/upstream/openbsdglob.tar.gz tasks/build_openbsdglob: tasks/download_openbsdglob tasks/build_newlib @mkdir -p $(usr)/mips-unknown-elf/{include,lib} @@ -377,7 +403,7 @@ tasks/build_freetype: tasks/patch_freetype tasks/build_libc version_boehmgc = 6.3alpha2 #url_boehmgc = http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc$(version_boehmgc).tar.gz -url_boehmgc = http://www.brianweb.net/misc/gc$(version_boehmgc).tar.gz +url_boehmgc = http://nestedvm.ibex.org/upstream/gc$(version_boehmgc).tar.gz patches_boehmgc = boehm-gc.patch tasks/extract_boehmgc: tasks/download_boehmgc