Skip to content
config.mk 908 B
Newer Older
Birte Kristina Friesel's avatar
Birte Kristina Friesel committed
VERSION ?= 1.7-git
# Prefix for all installed files

# Directories for manuals, executables, docs, data, etc.
main_dir = ${DESTDIR}${PREFIX}
man_dir = ${main_dir}/share/man
bin_dir = ${main_dir}/bin
image_dir = ${main_dir}/share/feh/images
font_dir = ${main_dir}/share/feh/fonts
CFLAGS ?= -g -O2
CFLAGS += -Wall -Wextra -pedantic

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

# Uncomment this for debug mode
# (Use feh -+ <level> or feh --debug-level <level> to see debug output)
dmalloc = -DWITH_DMALLOC
# Uncomment this to use dmalloc
CFLAGS += ${xinerama} -DPREFIX=\"${PREFIX}\" \
	-DPACKAGE=\"${PACKAGE}\" -DVERSION=\"${VERSION}\"
LDFLAGS += -lm -lpng -lX11 -lImlib2 -lgiblib ${xinerama_ld}