Moved VERSION macro into Makefile
This commit is contained in:
parent
fdf24d4681
commit
bce599038c
4
Makefile
4
Makefile
|
@ -1,8 +1,10 @@
|
||||||
all: sxiv
|
all: sxiv
|
||||||
|
|
||||||
|
VERSION=git-20110123
|
||||||
|
|
||||||
CC?=gcc
|
CC?=gcc
|
||||||
PREFIX?=/usr/local
|
PREFIX?=/usr/local
|
||||||
CFLAGS+= -std=c99 -Wall -pedantic -g
|
CFLAGS+= -std=c99 -Wall -pedantic -DVERSION=\"$(VERSION)\"
|
||||||
LDFLAGS+=
|
LDFLAGS+=
|
||||||
LIBS+= -lX11 -lImlib2
|
LIBS+= -lX11 -lImlib2
|
||||||
|
|
||||||
|
|
2
sxiv.h
2
sxiv.h
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#define VERSION "git-20110123"
|
|
||||||
|
|
||||||
#define ABS(a) ((a) < 0 ? (-(a)) : (a))
|
#define ABS(a) ((a) < 0 ? (-(a)) : (a))
|
||||||
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||||
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||||
|
|
Loading…
Reference in a new issue