summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-05-10 17:45:37 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-05-10 17:48:01 +0200
commit8568a8de1368b1c61169a0627dead2c2de18f349 (patch)
tree144c1a45f1bad0cb84f9e34a356de99ae5054b1f
parent7ab7f865dcf237135958fafcaf5871670b18794c (diff)
downloadrockbox-8568a8de1368b1c61169a0627dead2c2de18f349.tar.gz
rockbox-8568a8de1368b1c61169a0627dead2c2de18f349.zip
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
-rw-r--r--rbutil/libtools.make4
-rw-r--r--rbutil/rbutilqt/Makefile.libs15
2 files changed, 10 insertions, 9 deletions
diff --git a/rbutil/libtools.make b/rbutil/libtools.make
index be2a69e2c7..59be99f76b 100644
--- a/rbutil/libtools.make
+++ b/rbutil/libtools.make
@@ -24,12 +24,12 @@ TOP := $(dir $(lastword $(MAKEFILE_LIST)))
24 24
25# overwrite for releases 25# overwrite for releases
26APPVERSION ?= $(shell $(TOP)/../tools/version.sh $(TOP)/..) 26APPVERSION ?= $(shell $(TOP)/../tools/version.sh $(TOP)/..)
27CFLAGS += -DVERSION=\""$(APPVERSION)"\" 27CFLAGS += -DVERSION=\"$(APPVERSION)\"
28TARGET_DIR ?= $(abspath .)/ 28TARGET_DIR ?= $(abspath .)/
29 29
30NATIVECC ?= gcc 30NATIVECC ?= gcc
31CC ?= gcc 31CC ?= gcc
32CPPDEFINES=$(shell echo foo | $(CROSS)$(CC) -dM -E -) 32CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -)
33# use POSIX/C99 printf on windows 33# use POSIX/C99 printf on windows
34CFLAGS += -D__USE_MINGW_ANSI_STDIO=1 34CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
35 35
diff --git a/rbutil/rbutilqt/Makefile.libs b/rbutil/rbutilqt/Makefile.libs
index a3119f28fc..ecb1c1814e 100644
--- a/rbutil/rbutilqt/Makefile.libs
+++ b/rbutil/rbutilqt/Makefile.libs
@@ -23,6 +23,7 @@ EXTRALIBS_AR ?= ar
23# re-export variables that might have been set via command line. 23# re-export variables that might have been set via command line.
24# If set via command line sub-makefiles cannot override them, so use different 24# If set via command line sub-makefiles cannot override them, so use different
25# variable names in the calling makefile. 25# variable names in the calling makefile.
26export APPVERSION=\"rbutil\"
26export SYS_SPEEX 27export SYS_SPEEX
27export TARGET_DIR 28export TARGET_DIR
28export RBBASE_DIR 29export RBBASE_DIR
@@ -40,23 +41,23 @@ libucl:
40 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/tools/ucl/src BUILD_DIR=$(BUILD_DIR)/ucl libucl.a 41 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/tools/ucl/src BUILD_DIR=$(BUILD_DIR)/ucl libucl.a
41 42
42libipodpatcher: 43libipodpatcher:
43 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/ipodpatcher BUILD_DIR=$(BUILD_DIR)/ipodpatcher APPVERSION="rbutil" libipodpatcher.a 44 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/ipodpatcher BUILD_DIR=$(BUILD_DIR)/ipodpatcher libipodpatcher.a
44 45
45libsansapatcher: 46libsansapatcher:
46 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/sansapatcher BUILD_DIR=$(BUILD_DIR)/sansapatcher APPVERSION="rbutil" libsansapatcher.a 47 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/sansapatcher BUILD_DIR=$(BUILD_DIR)/sansapatcher libsansapatcher.a
47 48
48libmkamsboot: 49libmkamsboot:
49 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkamsboot BUILD_DIR=$(BUILD_DIR)/mkamsboot APPVERSION="rbutil" libmkamsboot.a 50 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkamsboot BUILD_DIR=$(BUILD_DIR)/mkamsboot libmkamsboot.a
50 51
51libmktccboot: 52libmktccboot:
52 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mktccboot BUILD_DIR=$(BUILD_DIR)/mktccboot APPVERSION="rbutil" libmktccboot.a 53 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mktccboot BUILD_DIR=$(BUILD_DIR)/mktccboot libmktccboot.a
53 54
54libmkmpioboot: 55libmkmpioboot:
55 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkmpioboot BUILD_DIR=$(BUILD_DIR)/mkmpioboot APPVERSION="rbutil" libmkmpioboot.a 56 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkmpioboot BUILD_DIR=$(BUILD_DIR)/mkmpioboot libmkmpioboot.a
56 57
57libchinachippatcher: 58libchinachippatcher:
58 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/chinachippatcher BUILD_DIR=$(BUILD_DIR)/chinachippatcher APPVERSION="rbutil" libchinachippatcher.a 59 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/chinachippatcher BUILD_DIR=$(BUILD_DIR)/chinachippatcher libchinachippatcher.a
59 60
60libmkimxboot: 61libmkimxboot:
61 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkimxboot BUILD_DIR=$(BUILD_DIR)/mkimxboot APPVERSION="rbutil" libmkimxboot.a 62 $(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkimxboot BUILD_DIR=$(BUILD_DIR)/mkimxboot libmkimxboot.a
62 63