aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2017-01-14 09:08:58 -0800
committerTaylor Holberton <taylorcholberton@gmail.com>2017-01-14 09:08:58 -0800
commitfe4a22cca1741fde0692314c2b1ae561c1267cd3 (patch)
tree6e38b50cd31358abe90b1f9a72bf7531ac2c87f9
parente123a656544110d30041ffaa88f8f32856a978d3 (diff)
added cross compile var to examples
-rw-r--r--examples/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 1587e3a..a328a54 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,4 +1,6 @@
-CC = gcc
+CROSS_COMPILE ?=
+
+CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall -Wextra -Werror -Wfatal-errors -I ../include
VPATH = ../src