SGDK icon indicating copy to clipboard operation
SGDK copied to clipboard

Makefile supporting variable overriding for tools.

Open GoogleCodeExporter opened this issue 9 years ago • 1 comments

Use:

SHELL?=$(BIN)/sh
RM?= $(BIN)/rm
AR?= $(BIN)/ar
CC?= $(BIN)/gcc
LD?= $(BIN)/ld 

Instead of:

SHELL=$(BIN)/sh
RM= $(BIN)/rm
AR= $(BIN)/ar
CC= $(BIN)/gcc
LD= $(BIN)/ld

Original issue reported on code.google.com by Stephane.D on 31 Jul 2013 at 7:49

GoogleCodeExporter avatar Mar 16 '15 20:03 GoogleCodeExporter

This syntax: SHELL?=$(BIN)/sh

does not seem to be supported by all make tools, at least it does not work on mine. Is there any alternative and more generic syntax for that ?

Stephane-D avatar Jul 10 '15 08:07 Stephane-D