Moved VERSION macro into Makefile

This commit is contained in:
Bert 2011-01-23 17:27:44 +01:00
parent fdf24d4681
commit bce599038c
2 changed files with 3 additions and 3 deletions

View file

@ -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

2
sxiv.h
View file

@ -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))