From 5b39d5c58cc3c43580a9114355b0763c171926b6 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 Oct 2015 08:44:17 -0500 Subject: Export makefile variables so you can say "make CROSS_COMPILE=blah-" as well as "CROSS_COMPILE=blah- make". --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1ea69295..38b4120e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ # Makefile for toybox. # Copyright 2006 Rob Landley +# If people set these on the make command line, use 'em +# Note that CC defaults to "cc" so the one in configure doesn't get +# used when scripts/make.sh and care called through "make". +export CROSS_COMPILE CFLAGS OPTIMIZE LDOPTIMIZE CC HOSTCC V + all: toybox KCONFIG_CONFIG ?= .config -- cgit v1.2.3