summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-18 22:55:44 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-18 22:55:44 +0000
commit129b1d713e4b7df2ae24007effb85926f9e74616 (patch)
tree6f7e467c7f3ef725b4f2bcd1a27f3e514c8fa942 /Rules.mak
parent22be0d39e95b9c2a783d6b1daf0420916ed0fc60 (diff)
- define RANLIB since a subdir or two uses it
- add support for DESTDIR to work the same as PREFIX
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak8
1 files changed, 7 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index fb56a2ac2..a9f500146 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -42,6 +42,7 @@ AR= $(CROSS)ar
LD= $(CROSS)ld
NM= $(CROSS)nm
STRIPTOOL= $(CROSS)strip
+RANLIB= $(CROSS)ranlib
INSTALL= install
LN= ln
@@ -70,6 +71,12 @@ UCLIBC_LDSO:=ld-uClibc.so.$(MAJOR_VERSION)
LIBNAME:=libc.a
LIBC:=$(TOPDIR)libc/$(LIBNAME)
+# Make sure DESTDIR and PREFIX can be used to install
+# PREFIX is a uClibcism while DESTDIR is a common GNUism
+ifndef PREFIX
+PREFIX = $(DESTDIR)
+endif
+
# Pull in the user's uClibc configuration
ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
-include $(TOPDIR).config
@@ -309,4 +316,3 @@ ifeq ($(CONFIG_BINFMT_SHARED_FLAT),y)
endif
TARGET_ARCH:=$(strip $(subst ",, $(strip $(TARGET_ARCH))))
-