summaryrefslogtreecommitdiff
path: root/config.mk
blob: 7ac83df018eb11da4c003c2b29dad3f427f277e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package = feh
version = 1.4.1-git

# Customize below:

# Prefix for all installed files
prefix = /usr/local

# Directories for manuals, executables, docs, data, etc.
man_dir = $(prefix)/share/man
bin_dir = $(prefix)/bin
doc_dir = $(prefix)/share/doc
image_dir = $(prefix)/share/feh/images
font_dir = $(prefix)/share/feh/fonts

# default CFLAGS
CFLAGS = -g -Wall -Wextra -pedantic -O2

# Comment these out if you don't have libxinerama
xinerama = -DHAVE_LIBXINERAMA
xinerama_ld = -lXinerama

# Put extra header (-I/some/directory) directories here
extra_headers =

# Put extra include (-L/some/directory) directories here
extra_libs =

debug = -DDEBUG
# Uncomment this for debug mode
# (Use feh -+ <level> to see debug output)
#CFLAGS += $(debug)

dmalloc = -DWITH_DMALLOC
# Uncomment this to use dmalloc
#CFLAGS += $(dmalloc)


# You should not need to change anything below this line.

CFLAGS += $(extra_headers) $(xinerama) -DPREFIX=\"$(prefix)\" \
	-DPACKAGE=\"$(package)\" -DVERSION=\"$(version)\"

LDFLAGS = -lz -lpng -lX11 -lImlib2 -lfreetype -lXext -ldl -lm -lgiblib \
	$(xinerama_ld) $(extra_includes)