Move configuration parts from Makefile into config.mk
This commit is contained in:
parent
ec545a6b6c
commit
ad9955a9cf
30
Makefile
30
Makefile
|
@ -1,31 +1,9 @@
|
||||||
VERSION := git-20170517
|
VERSION := git-20170906
|
||||||
|
|
||||||
PREFIX := /usr/local
|
|
||||||
MANPREFIX := $(PREFIX)/share/man
|
|
||||||
|
|
||||||
CC ?= gcc
|
|
||||||
CFLAGS += -std=c99 -Wall -pedantic
|
|
||||||
CPPFLAGS += -I/usr/include/freetype2 -D_XOPEN_SOURCE=700
|
|
||||||
LDFLAGS +=
|
|
||||||
LIBS := -lImlib2 -lX11 -lXft
|
|
||||||
|
|
||||||
# optional dependencies:
|
|
||||||
# giflib: gif animations
|
|
||||||
ifndef NO_GIFLIB
|
|
||||||
CPPFLAGS += -DHAVE_GIFLIB
|
|
||||||
LIBS += -lgif
|
|
||||||
endif
|
|
||||||
# libexif: jpeg auto-orientation, exif thumbnails
|
|
||||||
ifndef NO_LIBEXIF
|
|
||||||
CPPFLAGS += -DHAVE_LIBEXIF
|
|
||||||
LIBS += -lexif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# select autoreload backend
|
|
||||||
# overwritten with `make AUTORELOAD=nop`
|
|
||||||
AUTORELOAD := inotify
|
|
||||||
|
|
||||||
.PHONY: clean install uninstall
|
.PHONY: clean install uninstall
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
|
include config.mk
|
||||||
|
|
||||||
SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c util.c window.c
|
SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c util.c window.c
|
||||||
DEP := $(SRC:.c=.d)
|
DEP := $(SRC:.c=.d)
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
PREFIX := /usr/local
|
||||||
|
MANPREFIX := $(PREFIX)/share/man
|
||||||
|
|
||||||
|
CC ?= gcc
|
||||||
|
CFLAGS += -std=c99 -Wall -pedantic
|
||||||
|
CPPFLAGS += -I/usr/include/freetype2 -D_XOPEN_SOURCE=700
|
||||||
|
LDFLAGS +=
|
||||||
|
LIBS := -lImlib2 -lX11 -lXft
|
||||||
|
|
||||||
|
# autoreload backend: inotify/nop
|
||||||
|
AUTORELOAD := inotify
|
||||||
|
|
||||||
|
# optional dependencies:
|
||||||
|
# giflib: gif animations
|
||||||
|
ifndef NO_GIFLIB
|
||||||
|
CPPFLAGS += -DHAVE_GIFLIB
|
||||||
|
LIBS += -lgif
|
||||||
|
endif
|
||||||
|
# libexif: jpeg auto-orientation, exif thumbnails
|
||||||
|
ifndef NO_LIBEXIF
|
||||||
|
CPPFLAGS += -DHAVE_LIBEXIF
|
||||||
|
LIBS += -lexif
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue