Newer
Older
Birte Kristina Friesel
committed
PACKAGE ?= feh
# Prefix for all installed files
Birte Kristina Friesel
committed
PREFIX ?= /usr/local
# Directories for manuals, executables, docs, data, etc.
Birte Kristina Friesel
committed
main_dir = ${DESTDIR}${PREFIX}
man_dir = ${main_dir}/share/man
bin_dir = ${main_dir}/bin
Birte Kristina Friesel
committed
doc_dir = ${main_dir}/share/doc/feh
Birte Kristina Friesel
committed
image_dir = ${main_dir}/share/feh/images
font_dir = ${main_dir}/share/feh/fonts
Birte Kristina Friesel
committed
CFLAGS ?= -g -O2
CFLAGS += -Wall -Wextra -pedantic
# Comment these out if you don't have libxinerama
xinerama = -DHAVE_LIBXINERAMA
xinerama_ld = -lXinerama
# (Use feh -+ <level> or feh --debug-level <level> to see debug output)
Birte Kristina Friesel
committed
#CFLAGS += ${debug}
dmalloc = -DWITH_DMALLOC
Birte Kristina Friesel
committed
#CFLAGS += ${dmalloc}
Birte Kristina Friesel
committed
CFLAGS += ${xinerama} -DPREFIX=\"${PREFIX}\" \
-DPACKAGE=\"${PACKAGE}\" -DVERSION=\"${VERSION}\"
Birte Kristina Friesel
committed
LDFLAGS += -lm -lpng -lX11 -lImlib2 -lgiblib ${xinerama_ld}