diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-02-16 18:35:26 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-02-16 18:35:26 +0100 |
commit | 85c63fc98b44a25330032dd55add65341966412c (patch) | |
tree | b2c92b19e39ed4cbb2cf63a6f7ec0d45774b6a60 /config.mk | |
parent | 77a5334fd9db92453885b2d2f227f769424d7012 (diff) |
Make -lcurl optional (enabled by default), rework feature en-/disabling
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 37 |
1 files changed, 28 insertions, 9 deletions
@@ -17,18 +17,37 @@ example_dir = ${main_dir}/share/doc/feh/examples 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 -+ or feh --debug to see debug output) -#CFLAGS += -DDEBUG +curl ?= 1 +debug ?= 0 +xinerama ?= 1 + +ifeq (${curl},1) + CFLAGS += -DHAVE_LIBCURL + LDLIBS += -lcurl + MAN_CURL = enabled +else + MAN_CURL = disabled +endif + +ifeq (${debug},1) + CFLAGS += -DDEBUG + MAN_DEBUG = This is a debug build. +else + MAN_DEBUG = +endif + +ifeq (${xinerama},1) + CFLAGS += -DHAVE_LIBXINERAMA + LDLIBS += -lXinerama + MAN_XINERAMA = enabled +else + MAN_XINERAMA = disabled +endif # Uncomment this to use dmalloc #CFLAGS += -DWITH_DMALLOC -CFLAGS += ${xinerama} -DPREFIX=\"${PREFIX}\" \ +CFLAGS += -DPREFIX=\"${PREFIX}\" \ -DPACKAGE=\"${PACKAGE}\" -DVERSION=\"${VERSION}\" -LDLIBS += -lm -lpng -lX11 -lImlib2 -lgiblib -lcurl ${xinerama_ld} +LDLIBS += -lm -lpng -lX11 -lImlib2 -lgiblib |