Krolyxon
Commit ad9955a

Branches

Refs →

nsxivad9955a

Move configuration parts from Makefile into config.mk

Author
Bert Münnich
Date
2017-09-06 20:12 +0200
Parent
ec545a6
Commit
ad9955a9cf2200bf00e607da39a226c4c1d45a6b

+28 −26

2 files changed

  1. M Makefile +4 −26
  2. A config.mk +24 −0
M Makefile View
@@ -1,31 +1,9 @@
1−VERSION := git-20170517
2−
3−PREFIX := /usr/local
4−MANPREFIX := $(PREFIX)/share/man
5−
6−CC ?= gcc
7−CFLAGS += -std=c99 -Wall -pedantic
8−CPPFLAGS += -I/usr/include/freetype2 -D_XOPEN_SOURCE=700
9−LDFLAGS +=
10−LIBS := -lImlib2 -lX11 -lXft
11−
12−# optional dependencies:
13−# giflib: gif animations
14−ifndef NO_GIFLIB
15− CPPFLAGS += -DHAVE_GIFLIB
16− LIBS += -lgif
17−endif
18−# libexif: jpeg auto-orientation, exif thumbnails
19−ifndef NO_LIBEXIF
20− CPPFLAGS += -DHAVE_LIBEXIF
21− LIBS += -lexif
22−endif
23−
24−# select autoreload backend
25−# overwritten with `make AUTORELOAD=nop`
26−AUTORELOAD := inotify
1+VERSION := git-20170906
272
283 .PHONY: clean install uninstall
4+.SUFFIXES:
5+
6+include config.mk
297
308 SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c util.c window.c
319 DEP := $(SRC:.c=.d)
A config.mk View
@@ -0,0 +1,24 @@
1+PREFIX := /usr/local
2+MANPREFIX := $(PREFIX)/share/man
3+
4+CC ?= gcc
5+CFLAGS += -std=c99 -Wall -pedantic
6+CPPFLAGS += -I/usr/include/freetype2 -D_XOPEN_SOURCE=700
7+LDFLAGS +=
8+LIBS := -lImlib2 -lX11 -lXft
9+
10+# autoreload backend: inotify/nop
11+AUTORELOAD := inotify
12+
13+# optional dependencies:
14+# giflib: gif animations
15+ifndef NO_GIFLIB
16+ CPPFLAGS += -DHAVE_GIFLIB
17+ LIBS += -lgif
18+endif
19+# libexif: jpeg auto-orientation, exif thumbnails
20+ifndef NO_LIBEXIF
21+ CPPFLAGS += -DHAVE_LIBEXIF
22+ LIBS += -lexif
23+endif
24+