mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-09 04:31:23 +00:00
50 lines
1001 B
Makefile
50 lines
1001 B
Makefile
GCC_VERSION = 4.7.2
|
|
GCC = gcc-$(GCC_VERSION)
|
|
GCC_URL = ftp://ftp.fu-berlin.de/gnu/gcc
|
|
|
|
GCC_TGZ = gcc-$(GCC_VERSION).tar.gz
|
|
|
|
#
|
|
# Interface to top-level prepare Makefile
|
|
#
|
|
PORTS += $(GCC)
|
|
|
|
prepare:: $(CONTRIB_DIR)/$(GCC)/configure
|
|
|
|
#
|
|
# Port-specific local rules
|
|
#
|
|
|
|
$(DOWNLOAD_DIR)/$(GCC_TGZ):
|
|
$(VERBOSE)wget -P $(DOWNLOAD_DIR) $(GCC_URL)/$(GCC)/$(GCC_TGZ) && touch $@
|
|
|
|
#
|
|
# Utilities
|
|
#
|
|
AUTOCONF = autoconf2.64
|
|
|
|
#
|
|
# Check if 'autoconf' is installed
|
|
#
|
|
ifeq ($(shell which $(AUTOCONF)),)
|
|
$(error Need to have '$(AUTOCONF)' installed.)
|
|
endif
|
|
|
|
#
|
|
# Check if 'autogen' is installed
|
|
#
|
|
ifeq ($(shell which autogen)),)
|
|
$(error Need to have 'autogen' installed.)
|
|
endif
|
|
|
|
$(CONTRIB_DIR)/$(GCC): $(DOWNLOAD_DIR)/$(GCC_TGZ)
|
|
$(VERBOSE)for i in $^ ; do tar xfz $$i -C $(CONTRIB_DIR) ;done
|
|
|
|
include ../tool/tool_chain_gcc_patches.inc
|
|
|
|
$(CONTRIB_DIR)/$(GCC)/configure:: $(CONTRIB_DIR)/$(GCC)
|
|
@#
|
|
@# Noux-specific changes
|
|
@#
|
|
$(VERBOSE)patch -d $(CONTRIB_DIR)/$(GCC) -N -p1 < src/noux-pkg/gcc/build.patch
|