Turns out that ?= is not needed to allow variables to be overridden from the make command line.
This commit is contained in:
parent
b377e4c8c1
commit
7486a4834e
6
Makefile
6
Makefile
|
@ -6,17 +6,17 @@ ifeq ($(CROSS),win32)
|
||||||
CC=i586-mingw32msvc-gcc
|
CC=i586-mingw32msvc-gcc
|
||||||
CXX=i586-mingw32msvc-g++
|
CXX=i586-mingw32msvc-g++
|
||||||
EXT=.exe
|
EXT=.exe
|
||||||
BUILD?=./build-win32
|
BUILD=./build-win32
|
||||||
else ifeq ($(CROSS),rpi)
|
else ifeq ($(CROSS),rpi)
|
||||||
CC=arm-linux-gnueabihf-gcc
|
CC=arm-linux-gnueabihf-gcc
|
||||||
CXX=arm-linux-gnueabihf-g++
|
CXX=arm-linux-gnueabihf-g++
|
||||||
EXT=
|
EXT=
|
||||||
BUILD?=./build-rpi
|
BUILD=./build-rpi
|
||||||
else
|
else
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CXX=g++
|
CXX=g++
|
||||||
EXT=
|
EXT=
|
||||||
BUILD?=./build
|
BUILD=./build
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TARGET = $(BUILD)/spinsim$(EXT)
|
TARGET = $(BUILD)/spinsim$(EXT)
|
||||||
|
|
Loading…
Reference in New Issue