diff --git a/config.mk b/config.mk
index 63051ad..53bfc29 100644
a
|
b
|
CAIRO_LIB ?= $(shell pkg-config --libs cairo) |
22 | 22 | LIBARCHIVE_INC ?= $(shell pkg-config --cflags libarchive) |
23 | 23 | LIBARCHIVE_LIB ?= $(shell pkg-config --libs libarchive) |
24 | 24 | |
25 | | GLIB_INC ?= $(shell pkg-config --cflags glib-2.0) |
26 | | GLIB_LIB ?= $(shell pkg-config --libs glib-2.0) |
| 25 | GLIB_INC ?= $(shell pkg-config --cflags glib-2.0 gio-2.0) |
| 26 | GLIB_LIB ?= $(shell pkg-config --libs glib-2.0 gio-2.0) |
| 27 | |
| 28 | GDK_INC ?= $(shell pkg-config --cflags gdk-pixbuf-2.0 gdk-${ZATHURA_GTK_VERSION}.0) |
| 29 | GDK_LIB ?= $(shell pkg-config --libs gdk-pixbuf-2.0 gdk-${ZATHURA_GTK_VERSION}.0) |
27 | 30 | |
28 | 31 | GIRARA_INC ?= $(shell pkg-config --cflags girara-gtk${ZATHURA_GTK_VERSION}) |
29 | 32 | GIRARA_LIB ?= $(shell pkg-config --libs girara-gtk${ZATHURA_GTK_VERSION}) |
30 | 33 | |
31 | 34 | ZATHURA_INC ?= $(shell pkg-config --cflags zathura) |
32 | 35 | |
33 | | INCS = ${GIRARA_INC} ${GLIB_INC} ${ZATHURA_INC} ${LIBARCHIVE_INC} |
34 | | LIBS = ${GIRARA_LIB} ${GLIB_LIB} ${LIBARCHIVE_LIB} |
| 36 | INCS = ${GIRARA_INC} ${GDK_INC} ${GLIB_INC} ${ZATHURA_INC} ${LIBARCHIVE_INC} |
| 37 | LIBS = ${GIRARA_LIB} ${GDK_LIB} ${GLIB_LIB} ${LIBARCHIVE_LIB} |
35 | 38 | |
36 | 39 | # plugindir |
37 | 40 | PLUGINDIR ?= $(shell pkg-config --variable=plugindir zathura) |
… |
… |
endif |
42 | 45 | # flags |
43 | 46 | CFLAGS += -std=c99 -fPIC -pedantic -Wall -Wno-format-zero-length $(INCS) |
44 | 47 | |
| 48 | # linker flags |
| 49 | LDFLAGS += -fPIC -fno-common |
| 50 | |
45 | 51 | # debug |
46 | 52 | DFLAGS ?= -g |
47 | 53 | |