config.mk 1.04 KB
Newer Older
1
2
3
# See LICENSE file for license and copyright information
# zathura make config

Moritz Lipp's avatar
Moritz Lipp committed
4
VERSION = 0.0.8.1
5
6

# paths
Moritz Lipp's avatar
Moritz Lipp committed
7
8
PREFIX ?= /usr
MANPREFIX ?= ${PREFIX}/share/man
Pavel Borzenkov's avatar
Pavel Borzenkov committed
9
DESKTOPPREFIX ?= ${PREFIX}/share/applications
10
11
# list of : seperated values
PLUGINDIR ?= ${PREFIX}/lib/zathura
12
13

# libs
14
15

# set this to 0 if you don't need to link against dl
16
17
GTK_INC ?= $(shell pkg-config --cflags gtk+-2.0)
GTK_LIB ?= $(shell pkg-config --libs gtk+-2.0 gthread-2.0)
18

19
20
GIRARA_INC ?= $(shell pkg-config --cflags girara-gtk2)
GIRARA_LIB ?= $(shell pkg-config --libs girara-gtk2)
21

22
23
24
SQLITE_INC ?= $(shell pkg-config --cflags sqlite3)
SQLITE_LIB ?= $(shell pkg-config --libs sqlite3)

25
26
DL_LIB ?= -ldl

27
INCS = ${GIRARA_INC} ${GTK_INC} $(SQLITE_INC)
28
LIBS = ${GIRARA_LIB} ${GTK_LIB} $(SQLITE_LIB) $(DL_LIB) -lpthread -lm
29
30

# flags
31
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra $(INCS) -DZATHURA_PLUGINDIR=\"${PLUGINDIR}\"
32
33

# debug
34
DFLAGS ?= -g
35

36
# ld
37
LDFLAGS += -rdynamic
38

39
# compiler
Moritz Lipp's avatar
Moritz Lipp committed
40
CC ?= gcc
Moritz Lipp's avatar
Moritz Lipp committed
41
42

# strip
43
SFLAGS ?= -s
Sebastian Ramacher's avatar
Sebastian Ramacher committed
44
45
46

# set to something != 0 if you want verbose build output
VERBOSE ?= 0