2017-12-09 18:46:35 +00:00
|
|
|
GCC_VERSION=7.2.0
|
|
|
|
GCC_MAJOR_VERSION=7.2.0
|
|
|
|
gcc.tar.xz: gcc-$(GCC_VERSION).tar.xz
|
2017-04-23 11:24:31 +00:00
|
|
|
mv $^ $@
|
|
|
|
|
2017-12-09 18:46:35 +00:00
|
|
|
gcc-$(GCC_VERSION).tar.xz:
|
2017-04-23 11:24:31 +00:00
|
|
|
wget https://ftp.gnu.org/gnu/gcc/gcc-$(GCC_MAJOR_VERSION)/$@
|
|
|
|
|
|
|
|
gcc/: gcc-$(GCC_VERSION)/
|
|
|
|
mv $^ $@
|
|
|
|
|
2017-12-09 18:46:35 +00:00
|
|
|
gcc-$(GCC_VERSION)/: gcc.tar.xz
|
2017-04-23 11:24:31 +00:00
|
|
|
tar -xf $^
|
|
|
|
|
|
|
|
gcc-patch:
|
|
|
|
true #Todo: Replace this with the sed that enables libstdc++
|
|
|
|
|
|
|
|
gcc-build: gcc-install
|
|
|
|
rm -rf builddir
|
|
|
|
|
|
|
|
gcc-configure:
|
|
|
|
mkdir builddir
|
|
|
|
cd builddir; \
|
|
|
|
../gcc/configure --prefix=$(CROSSPATH) --target=$(TARGET) --disable-nls --enable-languages=c,c++ --without-headers
|
|
|
|
|
|
|
|
gcc-make: gcc-configure
|
2017-07-20 08:26:35 +00:00
|
|
|
$(MAKE) -C builddir all-gcc
|
|
|
|
$(MAKE) -C builddir all-target-libgcc
|
2017-04-23 11:24:31 +00:00
|
|
|
|
|
|
|
gcc-install: gcc-make
|
2017-12-09 18:46:35 +00:00
|
|
|
$(MAKE) -C builddir install-gcc
|
|
|
|
$(MAKE) -C builddir install-target-libgcc
|