Krolyxon
Commit bce5990

Branches

Refs →

nsxivbce5990

Moved VERSION macro into Makefile

Author
Bert
Date
2011-01-23 17:27 +0100
Parent
fdf24d4
Commit
bce599038ceac361c09e9d715e8c94716d6c3d0c

+3 −3

2 files changed

  1. M Makefile +3 −1
  2. M sxiv.h +0 −2
M Makefile View
@@ -1,8 +1,10 @@
11 all: sxiv
22
3+VERSION=git-20110123
4+
35 CC?=gcc
46 PREFIX?=/usr/local
5−CFLAGS+= -std=c99 -Wall -pedantic -g
7+CFLAGS+= -std=c99 -Wall -pedantic -DVERSION=\"$(VERSION)\"
68 LDFLAGS+=
79 LIBS+= -lX11 -lImlib2
810
M sxiv.h View
@@ -21,8 +21,6 @@
2121
2222 #include "config.h"
2323
24−#define VERSION "git-20110123"
25−
2624 #define ABS(a) ((a) < 0 ? (-(a)) : (a))
2725 #define MIN(a,b) ((a) < (b) ? (a) : (b))
2826 #define MAX(a,b) ((a) > (b) ? (a) : (b))