xscreenshot

suckless screen capture tool
git clone git://git.2f30.org/xscreenshot.git
Log | Files | Refs | README | LICENSE

commit 85ee16921ed51359ffe1496f7380684f5a03979d
parent 8a6fbfbed1428dc71588d6a1b86730e0da055163
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon Nov 16 17:52:49 +0100

config.mk: improvements, allow to override X11INC and X11LIB

Diffstat:
config.mk | 19++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/config.mk b/config.mk @@ -6,21 +6,22 @@ VERSION = 1.0 PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man +X11INC = /usr/X11R6/include +X11LIB = /usr/X11R6/lib + # includes and libs -INCS = -LIBS = -lc -lX11 +INCS = -I${X11INC} +LIBS = -L${X11LIB} -lX11 + +# flags +CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" # debug -CFLAGS = -O0 -g -std=c99 -Wall -pedantic -DVERSION=\"${VERSION}\" +CFLAGS = -O0 -g -std=c99 -Wall -pedantic ${INCS} ${CPPFLAGS} LDFLAGS = ${LIBS} # optimized -#CFLAGS = -O2 -std=c99 -DVERSION=\"${VERSION}\" -#LDFLAGS = -s ${LIBS} - -# tcc -#CC = tcc -#CFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE +#CFLAGS = -O2 -std=c99 -DVERSION=\"${VERSION}\" ${INCS} ${CPPFLAGS} #LDFLAGS = -s ${LIBS} # compiler and linker