summaryrefslogtreecommitdiff
path: root/toolchain/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-08-20 20:41:41 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-08-20 20:41:41 +0200
commit70c44baa23fbf86a888f6f37a75bca10a631a01c (patch)
treecf5d557fddf53ddb4851a0ae5db68c3ff9f5407e /toolchain/Makefile
parentdd35f8739be06beda5a2e2d3f753056cf1fb724a (diff)
add eglibc support
all three libraries tested with qemu-x86
Diffstat (limited to 'toolchain/Makefile')
-rw-r--r--toolchain/Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
index c492ef339..2c424ed7d 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -1,5 +1,15 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
+#
+# Steps to build toolchains
+# 1) build and install binutils
+# 2) build and install mpfr and gmp
+# 3) build and install gcc c compiler
+# 4) install kernel-headers
+# 5) install libc headers
+# 6) build and install full gcc
+# 7) build and install full libc
+# 8) build and install gdb debugger
include $(TOPDIR)/rules.mk
@@ -7,7 +17,12 @@ TARGETS:=binutils gmp mpfr gcc
ifeq ($(ADK_TARGET_LIB_GLIBC),y)
TARGETS+=glibc
LIBC:=glibc
-else
+endif
+ifeq ($(ADK_TARGET_LIB_EGLIBC),y)
+TARGETS+=eglibc
+LIBC:=eglibc
+endif
+ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
TARGETS+=uClibc
LIBC:=uClibc
endif
@@ -22,9 +37,9 @@ install: $(TARGETS_INSTALL)
clean: $(TARGETS_CLEAN)
download: $(DOWNLOAD)
-$(LIBC)-prepare: kernel-headers-prepare
-binutils-prepare: $(LIBC)-prepare
-gcc-configure: binutils-install gmp-install mpfr-install
+gcc-prepare: binutils-install gmp-install mpfr-install
+$(LIBC)-prepare: gcc-prepare kernel-headers-prepare
+gcc-configure: $(LIBC)-prepare
$(LIBC)-compile: gcc-configure
gcc-compile: $(LIBC)-install