4 #GCC_SEPARATE_PACKAGES=1
8 CFGFLAGS
=--with-as
=/usr
/ccs
/bin
/as --with-ld
=/usr
/ccs
/bin
/ld --disable-lto
13 all: gcc-install.tag gcc-clean
17 rm -rf download
/* *.tag
19 ifdef GCC_SEPARATE_PACKAGES
20 download
/gcc-core-
$(GCC_VERSION
).
tar.bz2
:
21 $(WGET
) ftp
://ftp.gnu.org
/gnu
/gcc
/gcc-
$(GCC_VERSION
)/gcc-core-
$(GCC_VERSION
).
tar.bz2
23 download
/gcc-g
++-$(GCC_VERSION
).
tar.bz2
:
24 $(WGET
) ftp
://ftp.gnu.org
/gnu
/gcc
/gcc-
$(GCC_VERSION
)/gcc-g
++-$(GCC_VERSION
).
tar.bz2
26 gcc-unpack.tag
: download
/gcc-core-
$(GCC_VERSION
).
tar.bz2 download
/gcc-g
++-$(GCC_VERSION
).
tar.bz2
30 #bunzip2 -c download/gcc*.tar.bz2 | tar -xf -
33 download
/gcc-
$(GCC_VERSION
).
tar.bz2
:
34 $(WGET
) ftp
://ftp.gnu.org
/gnu
/gcc
/gcc-
$(GCC_VERSION
)/gcc-
$(GCC_VERSION
).
tar.bz2
36 gcc-unpack.tag
: download
/gcc-
$(GCC_VERSION
).
tar.bz2
37 tar -xjf download
/gcc-
$(GCC_VERSION
).
tar.bz2
41 gcc-configure.tag
: gcc-unpack.tag
45 ..
/gcc-
$(GCC_VERSION
)/configure \
46 --prefix=$(LOCAL_DIR
) \
47 --enable-languages
=c
,c
++ \
48 --with-gmp
=$(LOCAL_DIR
) --with-mpfr
=$(LOCAL_DIR
) --with-mpc
=$(LOCAL_DIR
) \
49 --enable-threads
--disable-nls \
50 --disable-shared
$(CFGFLAGS
) $(CFGENV
)
53 gcc-make.tag
: gcc-configure.tag
55 PATH
=$(PATH
):$(LOCAL_DIR
)/bin \
59 gcc-install.tag
: gcc-make.tag
61 PATH
=$(PATH
):$(LOCAL_DIR
)/bin \
63 rm -r
$(LOCAL_DIR
)/man
$(LOCAL_DIR
)/info
69 rm -rf gcc-
$(GCC_VERSION
)
71 rm -f gcc-unpack.tag gcc-configure.tag gcc-make.tag