aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-10-04 08:44:17 -0500
committerRob Landley <rob@landley.net>2015-10-04 08:44:17 -0500
commit5b39d5c58cc3c43580a9114355b0763c171926b6 (patch)
treef8b4c593e1930be73b4febc4663b8aa474eb5e54 /Makefile
parent9cc78770dc593b58e2ac0b24c42c3948c09d5eec (diff)
downloadtoybox-5b39d5c58cc3c43580a9114355b0763c171926b6.tar.gz
Export makefile variables so you can say "make CROSS_COMPILE=blah-" as well as "CROSS_COMPILE=blah- make".
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
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 <rob@landley.net>
+# 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