Krolyxon
Commit e228594

Branches

Refs →

nsxive228594

Grouped optional dependencies in Makefile

Author
Bert Münnich
Date
2014-12-08 08:20 +0100
Parent
6216bf6
Commit
e228594391a8e7bc2d9ab66638cd571f99aac2c1

+14 −3

1 file changed

  1. M Makefile +14 −3
M Makefile View
@@ -1,13 +1,24 @@
1−VERSION := git-20141201
1+VERSION := git-20141208
22
33 PREFIX := /usr/local
44 MANPREFIX := $(PREFIX)/share/man
55
66 CC ?= gcc
77 CFLAGS += -std=c99 -Wall -pedantic
8−CPPFLAGS += -I$(PREFIX)/include -D_XOPEN_SOURCE=500 -DHAVE_LIBEXIF -DHAVE_GIFLIB
8+CPPFLAGS += -I$(PREFIX)/include -D_XOPEN_SOURCE=500
99 LDFLAGS += -L$(PREFIX)/lib
10−LIBS := -lX11 -lImlib2 -lexif -lgif
10+LIBS := -lX11 -lImlib2
11+
12+# optional dependencies:
13+# giflib: gif animations
14+ CPPFLAGS += -DHAVE_GIFLIB
15+ LIBS += -lgif
16+# libexif: jpeg auto-orientation, exif thumbnails
17+ CPPFLAGS += -DHAVE_LIBEXIF
18+ LIBS += -lexif
19+
20+
21+.PHONY: clean install uninstall
1122
1223 SRC := commands.c image.c main.c options.c thumbs.c util.c window.c
1324 DEP := $(SRC:.c=.d)