summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-26 11:04:50 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-26 11:04:50 -0700
commit5c3bdd9fc85e1003a0537d286d968cdd008b1b95 (patch)
treeb58cf8f1d3758a7e6d1229f2da396410fa524b64 /Makefile
parent13ef2fbbe5d1e54b0b4474ce1133f83b5e1e8b80 (diff)
downloadsubsurface-5c3bdd9fc85e1003a0537d286d968cdd008b1b95.tar.gz
Add the version to the Makefile
Not quite the same format as for the kernel, but I want to do the normal "edit the makefile before making a release" model that I'm used to. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e93d03030..628f116d7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+VERSION=1.0
+
CC=gcc
CFLAGS=-Wall -Wno-pointer-sign -g
INSTALL=install
@@ -68,6 +70,7 @@ libdivecomputer.o: libdivecomputer.c dive.h display.h display-gtk.h libdivecompu
gtk-gui.o: gtk-gui.c dive.h display.h divelist.h display-gtk.h libdivecomputer.h
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0 gconf-2.0` \
-I$(LIBDIVECOMPUTERINCLUDES) \
+ -DVERSION_STRING='"v$(VERSION)"' \
-c gtk-gui.c
uemis.o: uemis.c uemis.h