瀏覽代碼

- define RANLIB since a subdir or two uses it
- add support for DESTDIR to work the same as PREFIX

Mike Frysinger 20 年之前
父節點
當前提交
129b1d713e
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      Rules.mak

+ 7 - 1
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))))
-