nsxivbce5990
Moved VERSION macro into Makefile
+3 −3
2 files changed
| @@ -1,8 +1,10 @@ | |||
| 1 | 1 | all: sxiv | |
| 2 | 2 | ||
| 3 | + | VERSION=git-20110123 | |
| 4 | + | ||
| 3 | 5 | CC?=gcc | |
| 4 | 6 | PREFIX?=/usr/local | |
| 5 | − | CFLAGS+= -std=c99 -Wall -pedantic -g | |
| 7 | + | CFLAGS+= -std=c99 -Wall -pedantic -DVERSION=\"$(VERSION)\" | |
| 6 | 8 | LDFLAGS+= | |
| 7 | 9 | LIBS+= -lX11 -lImlib2 | |
| 8 | 10 | ||
| @@ -21,8 +21,6 @@ | |||
| 21 | 21 | ||
| 22 | 22 | #include "config.h" | |
| 23 | 23 | ||
| 24 | − | #define VERSION "git-20110123" | |
| 25 | − | ||
| 26 | 24 | #define ABS(a) ((a) < 0 ? (-(a)) : (a)) | |
| 27 | 25 | #define MIN(a,b) ((a) < (b) ? (a) : (b)) | |
| 28 | 26 | #define MAX(a,b) ((a) > (b) ? (a) : (b)) | |