mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
makefile: Use origin check for CC variable
Make defines defaults for commonly used variables, therefore we need to check first how the variable was defined. If `default` value was used, override it with our own default.
This commit is contained in:
1 parent
bebe79c4c9
commit
3c89b22207
1 file changed
+3
-1
@@ -4,7 +4,9 @@ DEFAULT_CONFIG_LOCATION = 454656
|
|||||||
CONFIG_LOCATION = 458752
|
CONFIG_LOCATION = 458752
|
||||||
HTML_LOCATION = 262144
|
HTML_LOCATION = 262144
|
||||||
|
|
||||||
CC ?= sdcc
|
ifeq ($(origin CC),default)
|
||||||
|
CC = sdcc
|
||||||
|
endif
|
||||||
CC_FLAGS = -mmcs51 -I. -Ihttpd -Iuip
|
CC_FLAGS = -mmcs51 -I. -Ihttpd -Iuip
|
||||||
ASM ?= sdas8051
|
ASM ?= sdas8051
|
||||||
AFLAGS= -plosgff
|
AFLAGS= -plosgff
|
||||||
|
|||||||
Reference in new issue
Block a user