nsxivad9955a
Move configuration parts from Makefile into config.mk
+28 −26
2 files changed
| @@ -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 | |
| 27 | 2 | ||
| 28 | 3 | .PHONY: clean install uninstall | |
| 4 | + | .SUFFIXES: | |
| 5 | + | ||
| 6 | + | include config.mk | |
| 29 | 7 | ||
| 30 | 8 | SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c util.c window.c | |
| 31 | 9 | DEP := $(SRC:.c=.d) | |
| @@ -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 | + | ||