Created
July 2, 2012 10:06
-
-
Save machinaut/3032430 to your computer and use it in GitHub Desktop.
gccgo Toolchain Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GCC = gcc-4.7.1 | |
GMP = gmp-5.0.5 | |
MPFR = mpfr-3.1.0 | |
MPC = mpc-0.9 | |
PARALLEL="-j8" | |
PREFIX=$(PWD) | |
all: $(GCC) | |
prefix: | |
mkdir -p $(PREFIX)/install | |
$(GCC).tar.bz2: | |
wget -c ftp://ftp.gnu.org/gnu/gcc/$(GCC)/$(GCC).tar.bz2 | |
$(GMP).tar.bz2: | |
wget -c ftp://ftp.gmplib.org/pub/$(GMP)/$(GMP).tar.bz2 | |
$(MPFR).tar.bz2: | |
wget -c http://www.mpfr.org/mpfr-current/$(MPFR).tar.bz2 | |
$(MPC).tar.gz: | |
wget -c http://www.multiprecision.org/mpc/download/$(MPC).tar.gz | |
$(GMP): $(GMP).tar.bz2 prefix | |
tar xfvj $(GMP).tar.bz2 | |
cd $(GMP)-boot-build && ../$(GMP)/configure --prefix=$(PREFIX) --build=x86_64-linux-gnu && make $(PARALLEL) && make install | |
$(MPFR): $(MPFR).tar.bz2 prefix $(GMP) | |
tar xfvj src/$(MPFR).tar.bz2 | |
cd $(MPFR)-boot-build && ../$(MPFR)/configure --prefix=$(PREFIX) --build=x86_64-linux-gnu --with-gmp=$(PREFIX) && make $(PARALLEL) && make install | |
$(MPC): $(MPC).tar.gz prefix $(GMP) $(MPFR) | |
tar xfvz src/$(MPC).tar.gz | |
cd $(MPC)-boot-build && ../$(MPC)/configure --prefix=$(PREFIX) --build=x86_64-linux-gnu --with-gmp=$(PREFIX) --with-mpfr=$(PREFIX) && make $(PARALLEL) && make install | |
$(GCC): $(GCC).tar.bz2 prefix $(GMP) $(MPFR) $(MPC) | |
tar xfvj src/$(GCC).tar.bz2 | |
cd $(GCC)-boot-build && ../$(GCC)/configure --prefix=$(PREFIX) --build=x86_64-linux-gnu --with-gmp=$(PREFIX) --with-mpfr=$(PREFIX) --with-mpc=$(PREFIX) --enable-languages="c,c++,go" --program-suffix=-4.7 && \ | |
make $(PARALLEL) && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment