File: devel/gcc-primitives/Makefile
base-0 patch-1
Line 1Line 0
GARNAME = gcc-primitives
GARVERSION = $(GCC_VERSION)
CATEGORIES = devel
MAINTAINER = Nate Riffe <inkblot@movealong.org>
LICENSE = GPL2

WORKSRC = $(WORKDIR)/gcc-$(GARVERSION)

DESCRIPTION = GNU Compiler Collection internal headers and crt* objects
define BLURB
The gcc-primitives package provides the fixed headers and crt* objects which
are needed in order to build the full gcc package. This is the egg.
devel/gcc is the chicken.
endef

BUILDDEPS = devel/gcc
INSTALL_SCRIPTS = slurp-cross-compiler

GAR_EXTRA_CONF += devel/gcc/package-api.mk
include ../../gar.mk

# export the current value of GARTARGET to the environment. When GAR gets
# around to building devel/gcc as a BUILDDEPS, that value will tell gcc to be a
# cross-compiler (or not, if GARBUILD == GARHOST).
export GARTARGET

install-slurp-cross-compiler:
        install -d $(GCC_DIR)
        install -m 644 $(CROSS_GCC_DIR)/crt* $(GCC_DIR)/
        rsync -pav $(CROSS_GCC_DIR)/include $(GCC_DIR)/
        $(MAKECOOKIE)