aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-03-17 20:01:53 +0100
committerBert Münnich <ber.t@posteo.de>2014-03-17 20:01:53 +0100
commit6d7acac3d132c5be09a9a4e8d0f4ebd4972e9385 (patch)
treefdc879d53995a7ff4e8f49ab9810a5156e74d7e2 /Makefile
parent653a6ee83b722e430ac3068f53650dd382d9209b (diff)
downloadnsxiv-6d7acac3d132c5be09a9a4e8d0f4ebd4972e9385.tar.zst
Use real path of all files internally, requires _XOPEN_SOURCE>=500, fixes issue #137
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 84d8798..3eab873 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
-VERSION = git-20140218
+VERSION = git-20140317
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
-CC = gcc
-CFLAGS = -std=c99 -Wall -pedantic -O2 -I$(PREFIX)/include -DHAVE_GIFLIB
-LDFLAGS = -L$(PREFIX)/lib
-LIBS = -lX11 -lImlib2 -lgif
+CC = gcc
+CFLAGS = -std=c99 -Wall -pedantic -O2
+CPPFLAGS = -I$(PREFIX)/include -D_XOPEN_SOURCE=500 -DHAVE_GIFLIB
+LDFLAGS = -L$(PREFIX)/lib
+LIBS = -lX11 -lImlib2 -lgif
SRC = commands.c exif.c image.c main.c options.c thumbs.c util.c window.c
OBJ = $(SRC:.c=.o)
@@ -16,7 +17,7 @@ all: sxiv
$(OBJ): Makefile config.h
.c.o:
- $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $<
+ $(CC) $(CFLAGS) $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $<
config.h:
cp config.def.h $@