From 031cf5e8ffd0511c1d69a41da295ab6bb017bc1d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 21 Mar 2010 16:57:12 +0100 Subject: Remove autoconf (from branch 'autocruft') Use config.mk for configuration, both GNU make and FreeBSD make are supported. --- config.mk | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 config.mk (limited to 'config.mk') diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..030254a --- /dev/null +++ b/config.mk @@ -0,0 +1,42 @@ +# Package name and version +package = feh +version = 1.4.1 + +# 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 + +# debug = 1 if you want debug mode +debug = + +# default CFLAGS +CFLAGS = -g -Wall -Wextra -O2 + +# Comment these out if you don't have libxinerama +xinerama = -DHAVE_LIBXINERAMA +xinerama_ld = -lXinerama + +# Put extra header directories here +extra_headers = + +# Put extra include (-Lfoo) directories here +extra_libs = + +dmalloc = -DWITH_DMALLOC +# Enable 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)\" $(debug) + +LDFLAGS = -lz -lpng -lX11 -lImlib2 -lfreetype -lXext -ldl -lm -lgiblib \ + $(xinerama_ld) $(extra_includes) -- cgit v1.2.3