summaryrefslogtreecommitdiffstats
path: root/utils/tcctool/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/tcctool/Makefile')
-rw-r--r--utils/tcctool/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/tcctool/Makefile b/utils/tcctool/Makefile
index 4e1ec476ab..7258f2f8cd 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