mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Set APPVERSION globally for extralibs Makefile.
Make sure its value quotes are properly escaped. Otherwise make on Windows causes problems. Also, expand CPPDEFINES only once. Change-Id: I52e91f17626b2596f389811b22abc12d94f721d1
This commit is contained in:
parent
7ab7f865dc
commit
8568a8de13
2 changed files with 10 additions and 9 deletions
|
|
@ -24,12 +24,12 @@ TOP := $(dir $(lastword $(MAKEFILE_LIST)))
|
|||
|
||||
# overwrite for releases
|
||||
APPVERSION ?= $(shell $(TOP)/../tools/version.sh $(TOP)/..)
|
||||
CFLAGS += -DVERSION=\""$(APPVERSION)"\"
|
||||
CFLAGS += -DVERSION=\"$(APPVERSION)\"
|
||||
TARGET_DIR ?= $(abspath .)/
|
||||
|
||||
NATIVECC ?= gcc
|
||||
CC ?= gcc
|
||||
CPPDEFINES=$(shell echo foo | $(CROSS)$(CC) -dM -E -)
|
||||
CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -)
|
||||
# use POSIX/C99 printf on windows
|
||||
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue