Turns out that ?= is not needed to allow variables to be overridden from the make command line.

This commit is contained in:
David Betz 2015-04-03 09:52:43 -04:00
parent b377e4c8c1
commit 7486a4834e
1 changed files with 3 additions and 3 deletions

View File

@ -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)