Browse Source

use CROSS_COMPILE instead of PREFIX to indicate toolchain prefix

Steffen Jaeckel 8 years ago
parent
commit
7597d20c78
2 changed files with 6 additions and 6 deletions
  1. 1 1
      makefile
  2. 5 5
      makefile_include.mk

+ 1 - 1
makefile

@@ -23,7 +23,7 @@ endif
 
 # ranlib tools
 ifndef RANLIB
-RANLIB:=$(PREFIX)ranlib
+RANLIB:=$(CROSS_COMPILE)ranlib
 endif
 INSTALL_CMD = install
 

+ 5 - 5
makefile_include.mk

@@ -8,15 +8,15 @@ VERSION=1.17
 VERSION_LT=0:117
 
 # Compiler and Linker Names
-ifndef PREFIX
-  PREFIX:=
+ifndef CROSS_COMPILE
+  CROSS_COMPILE:=
 endif
 
 ifeq ($(CC),cc)
-  CC := $(PREFIX)gcc
+  CC := $(CROSS_COMPILE)gcc
 endif
-LD:=$(PREFIX)ld
-AR:=$(PREFIX)ar
+LD:=$(CROSS_COMPILE)ld
+AR:=$(CROSS_COMPILE)ar
 
 # Archiver [makes .a files]
 #AR=ar