diff options
| author | Dave Chapman <dave@dchapman.com> | 2010-05-02 09:54:14 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2010-05-02 09:54:14 +0000 |
| commit | 9de9b9dfbe6b00c63e44e5497718ae4fc77b8ffe (patch) | |
| tree | 33912ccc6b73458cc8b76f9a93398aa0203ebb4d /utils/tcctool/Makefile | |
| parent | cdcca8775f5109cb7fdae8277c2f2a647d0ec8d9 (diff) | |
| download | rockbox-9de9b9dfbe6b00c63e44e5497718ae4fc77b8ffe.zip rockbox-9de9b9dfbe6b00c63e44e5497718ae4fc77b8ffe.tar.gz rockbox-9de9b9dfbe6b00c63e44e5497718ae4fc77b8ffe.tar.bz2 rockbox-9de9b9dfbe6b00c63e44e5497718ae4fc77b8ffe.tar.xz | |
Take version number from SVN, or via VERSION variable in Makefile - i.e. use "make VERSION=v1.0" to build with that version number.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25774 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/tcctool/Makefile')
| -rw-r--r-- | utils/tcctool/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/tcctool/Makefile b/utils/tcctool/Makefile index 4e1ec47..7258f2f 100644 --- a/utils/tcctool/Makefile +++ b/utils/tcctool/Makefile @@ -1,7 +1,11 @@ # This contains the file to upload ROMFILE=player.rom -CFLAGS=-Wall -W -I/usr/local/include +ifndef VERSION +VERSION=$(shell ../../tools/version.sh) +endif + +CFLAGS=-Wall -W -I/usr/local/include -DVERSION=\"$(VERSION)\" ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) OUTPUT=tcctool.exe |