aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-23 17:27:44 +0100
committerBert <ber.t@gmx.com>2011-01-23 17:27:44 +0100
commitbce599038ceac361c09e9d715e8c94716d6c3d0c (patch)
tree90f4004e5180611c5ac9465996ad03579f7bb689
parentfdf24d468135327f16ac568d7310f21b167c3208 (diff)
Moved VERSION macro into Makefile
-rw-r--r--Makefile4
-rw-r--r--sxiv.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 326ecd4..253d015 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
all: sxiv
+VERSION=git-20110123
+
CC?=gcc
PREFIX?=/usr/local
-CFLAGS+= -std=c99 -Wall -pedantic -g
+CFLAGS+= -std=c99 -Wall -pedantic -DVERSION=\"$(VERSION)\"
LDFLAGS+=
LIBS+= -lX11 -lImlib2
diff --git a/sxiv.h b/sxiv.h
index 824cfbb..837ae73 100644
--- a/sxiv.h
+++ b/sxiv.h
@@ -21,8 +21,6 @@
#include "config.h"
-#define VERSION "git-20110123"
-
#define ABS(a) ((a) < 0 ? (-(a)) : (a))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))