Makefile
branchpublic
changeset 8 b7e0285edfa8
parent 6 862080d48ef2
child 18 efd809f369c6
equal deleted inserted replaced
7:3a8769ca3642 8:b7e0285edfa8
    97 	rm -rf build
    97 	rm -rf build
    98 	mkdir -p build
    98 	mkdir -p build
    99 
    99 
   100 # native toolchain, pre-built
   100 # native toolchain, pre-built
   101 mingwdir=build/mingw
   101 mingwdir=build/mingw
       
   102 
       
   103 define get_mingw
       
   104 $(call get_src_sf,mingw/MinGW/Base/$(1),$(2)) tar -C $(mingwdir) --lzma -xf $$dld
       
   105 endef
       
   106 define get_msys
       
   107 $(call get_src_sf,mingw/MSYS/Base/$(1),$(2)) tar -C $(mingwdir) --lzma -xf $$dld
       
   108 endef
   102 mingw: |build
   109 mingw: |build
   103 	rm -rf $(mingwdir)
   110 	rm -rf $(mingwdir)
   104 	mkdir -p $(mingwdir)
   111 	mkdir -p $(mingwdir)
   105 	# windows.h
   112 	# windows.h
   106 	$(call get_src_sf,mingw/MinGW/Base/w32api/w32api-3.17,w32api-3.17-2-mingw32-dev.tar.lzma)\
   113 	$(call get_mingw,w32api/w32api-3.17,w32api-3.17-2-mingw32-dev.tar.lzma)
   107 	tar -C $(mingwdir) --lzma -xf $$dld
       
   108 	# mingw runtime
   114 	# mingw runtime
   109 	$(call get_src_sf,mingw/MinGW/Base/mingw-rt/mingwrt-3.20,mingwrt-3.20-mingw32-dll.tar.gz)\
   115 	$(call get_mingw,mingw-rt/mingwrt-3.20,mingwrt-3.20-2-mingw32-dll.tar.lzma)
   110 	tar -C $(mingwdir) -xzf $$dld
       
   111 	# mingw headers and lib
   116 	# mingw headers and lib
   112 	$(call get_src_sf,mingw/MinGW/Base/mingw-rt/mingwrt-3.20,mingwrt-3.20-mingw32-dev.tar.gz)\
   117 	$(call get_mingw,mingw-rt/mingwrt-3.20,mingwrt-3.20-2-mingw32-dev.tar.lzma)
   113 	tar -C $(mingwdir) -xzf $$dld
       
   114 	# binutils
   118 	# binutils
   115 	$(call get_src_sf,mingw/MinGW/Base/binutils/binutils-2.21.53,binutils-2.21.53-1-mingw32-bin.tar.lzma)\
   119 	$(call get_mingw,binutils/binutils-2.21.53,binutils-2.21.53-1-mingw32-bin.tar.lzma)
   116 	tar -C $(mingwdir) --lzma -xf $$dld
       
   117 	# C compiler
   120 	# C compiler
   118 	$(call get_src_sf,mingw/MinGW/Base/gcc/Version4/gcc-4.6.1-2,gcc-core-4.6.1-2-mingw32-bin.tar.lzma)\
   121 	$(call get_mingw,gcc/Version4/gcc-4.6.1-2,gcc-core-4.6.1-2-mingw32-bin.tar.lzma)
   119 	tar -C $(mingwdir) --lzma -xf $$dld
       
   120 	# dependencies
   122 	# dependencies
   121 	$(call get_src_sf,mingw/MinGW/Base/gmp/gmp-5.0.1-1,libgmp-5.0.1-1-mingw32-dll-10.tar.lzma)\
   123 	$(call get_mingw,gmp/gmp-5.0.1-1,libgmp-5.0.1-1-mingw32-dll-10.tar.lzma)
   122 	tar -C $(mingwdir) --lzma -xf $$dld
   124 	$(call get_mingw,mpc/mpc-0.8.1-1,libmpc-0.8.1-1-mingw32-dll-2.tar.lzma)
   123 	$(call get_src_sf,mingw/MinGW/Base/mpc/mpc-0.8.1-1,libmpc-0.8.1-1-mingw32-dll-2.tar.lzma)\
   125 	$(call get_mingw,mpfr/mpfr-2.4.1-1,libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma)
   124 	tar -C $(mingwdir) --lzma -xf $$dld
   126 	$(call get_mingw,gettext/gettext-0.17-1,libintl-0.17-1-mingw32-dll-8.tar.lzma)
   125 	$(call get_src_sf,mingw/MinGW/Base/mpfr/mpfr-2.4.1-1,libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma)\
   127 	$(call get_mingw,gettext/gettext-0.17-1,libgettextpo-0.17-1-mingw32-dll-0.tar.lzma)
   126 	tar -C $(mingwdir) --lzma -xf $$dld
   128 	$(call get_mingw,libiconv/libiconv-1.13.1-1,libiconv-1.13.1-1-mingw32-dll-2.tar.lzma)
   127 	$(call get_src_sf,mingw/MinGW/Base/gettext/gettext-0.17-1,libintl-0.17-1-mingw32-dll-8.tar.lzma)\
   129 	# make, bash, and dependencies
   128 	tar -C $(mingwdir) --lzma -xf $$dld
   130 	$(call get_msys,bash/bash-3.1.17-3,bash-3.1.17-3-msys-1.0.13-bin.tar.lzma)
   129 	$(call get_src_sf,mingw/MinGW/Base/gettext/gettext-0.17-1,libgettextpo-0.17-1-mingw32-dll-0.tar.lzma)\
   131 	$(call get_msys,coreutils/coreutils-5.97-3,coreutils-5.97-3-msys-1.0.13-bin.tar.lzma)
   130 	tar -C $(mingwdir) --lzma -xf $$dld
   132 	$(call get_msys,libiconv/libiconv-1.13.1-2,libiconv-1.13.1-2-msys-1.0.13-bin.tar.lzma)
   131 	$(call get_src_sf,mingw/MinGW/Base/libiconv/libiconv-1.13.1-1,libiconv-1.13.1-1-mingw32-dll-2.tar.lzma)\
   133 	$(call get_msys,libiconv/libiconv-1.13.1-2,libiconv-1.13.1-2-msys-1.0.13-dll-2.tar.lzma)
   132 	tar -C $(mingwdir) --lzma -xf $$dld
   134 	$(call get_msys,gettext/gettext-0.17-2,libintl-0.17-2-msys-dll-8.tar.lzma)
   133 	
   135 	$(call get_msys,regex/regex-1.20090805-2,libregex-1.20090805-2-msys-1.0.13-dll-1.tar.lzma)
   134 	touch $@
   136 	$(call get_msys,termcap/termcap-0.20050421_1-2,libtermcap-0.20050421_1-2-msys-1.0.13-dll-0.tar.lzma)
   135 
   137 	$(call get_msys,make/make-3.81-3,make-3.81-3-msys-1.0.13-bin.tar.lzma) 
       
   138 	$(call get_msys,msys-core/msys-1.0.13-2,msysCORE-1.0.13-2-msys-1.0.13-bin.tar.lzma)
       
   139 	$(call get_msys,termcap/termcap-0.20050421_1-2,libtermcap-0.20050421_1-2-msys-1.0.13-dll-0.tar.lzma)
       
   140 	touch $@
       
   141 	
   136 msiexec = WINEPREFIX=$(tmp) msiexec
   142 msiexec = WINEPREFIX=$(tmp) msiexec
   137 wine = WINEPREFIX=$(tmp) wine
   143 wine = WINEPREFIX=$(tmp) wine
   138 pydir = build/python
   144 pydir = build/python
   139 pysite = $(pydir)/Lib/site-packages
   145 pysite = $(pydir)/Lib/site-packages
   140 
   146