diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-05-10 17:45:37 +0200 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-05-10 17:48:01 +0200 |
commit | 8568a8de1368b1c61169a0627dead2c2de18f349 (patch) | |
tree | 144c1a45f1bad0cb84f9e34a356de99ae5054b1f | |
parent | 7ab7f865dcf237135958fafcaf5871670b18794c (diff) | |
download | rockbox-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.make | 4 | ||||
-rw-r--r-- | rbutil/rbutilqt/Makefile.libs | 15 |
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 |
26 | APPVERSION ?= $(shell $(TOP)/../tools/version.sh $(TOP)/..) | 26 | APPVERSION ?= $(shell $(TOP)/../tools/version.sh $(TOP)/..) |
27 | CFLAGS += -DVERSION=\""$(APPVERSION)"\" | 27 | CFLAGS += -DVERSION=\"$(APPVERSION)\" |
28 | TARGET_DIR ?= $(abspath .)/ | 28 | TARGET_DIR ?= $(abspath .)/ |
29 | 29 | ||
30 | NATIVECC ?= gcc | 30 | NATIVECC ?= gcc |
31 | CC ?= gcc | 31 | CC ?= gcc |
32 | CPPDEFINES=$(shell echo foo | $(CROSS)$(CC) -dM -E -) | 32 | CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -) |
33 | # use POSIX/C99 printf on windows | 33 | # use POSIX/C99 printf on windows |
34 | CFLAGS += -D__USE_MINGW_ANSI_STDIO=1 | 34 | CFLAGS += -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. |
26 | export APPVERSION=\"rbutil\" | ||
26 | export SYS_SPEEX | 27 | export SYS_SPEEX |
27 | export TARGET_DIR | 28 | export TARGET_DIR |
28 | export RBBASE_DIR | 29 | export 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 | ||
42 | libipodpatcher: | 43 | libipodpatcher: |
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 | ||
45 | libsansapatcher: | 46 | libsansapatcher: |
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 | ||
48 | libmkamsboot: | 49 | libmkamsboot: |
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 | ||
51 | libmktccboot: | 52 | libmktccboot: |
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 | ||
54 | libmkmpioboot: | 55 | libmkmpioboot: |
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 | ||
57 | libchinachippatcher: | 58 | libchinachippatcher: |
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 | ||
60 | libmkimxboot: | 61 | libmkimxboot: |
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 | ||