aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))