From 660a2a1e27a353955898f5a6d24a711bedc977c4 Mon Sep 17 00:00:00 2001 From: Thasan Date: Thu, 15 Oct 2015 00:45:56 +0300 Subject: [PATCH] Cross compile support --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 46cfa76..1c3e5da 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,8 @@ +# Cross comple, eg. +# export PATH=$PATH:/path/to/compiler/bin +# export CROSS_COMPILE=arm-none-linux-gnueabi- +# make + all: - gcc -std=gnu11 -pedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c + $(CROSS_COMPILE)gcc -std=gnu99 -pedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c +