Moved VERSION macro into Makefile
This commit is contained in:
parent
fdf24d4681
commit
bce599038c
4
Makefile
4
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
|
||||
|
||||
|
2
sxiv.h
2
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user