Add optional Xinerama support

Enable by making with `make XINERAMA=1`
This commit is contained in:
Steven Allen
2013-09-24 23:14:43 -04:00
parent 4437b0c674
commit ac29e045e6
2 changed files with 132 additions and 13 deletions

View File

@@ -2,6 +2,11 @@ CC ?= gcc
STRIP ?= strip
CFLAGS = -std=c99 -fshort-wchar -Os
LDFLAGS = -lxcb
XINERAMA ?= 0
ifneq "$(XINERAMA)" "0"
LDFLAGS += -lxcb-xinerama
CFLAGS += -DXINERAMA=${XINERAMA}
endif
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
-Wsign-conversion -Wconversion -Wimplicit-function-declaration