config.mk: improvements, allow to override X11INC and X11LIB - xscreenshot - screen capture tool
 (HTM) git clone git://git.codemadness.org/xscreenshot
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 85ee16921ed51359ffe1496f7380684f5a03979d
 (DIR) parent 8a6fbfbed1428dc71588d6a1b86730e0da055163
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Mon, 16 Nov 2015 17:52:49 +0100
       
       config.mk: improvements, allow to override X11INC and X11LIB
       
       Diffstat:
         M config.mk                           |      19 ++++++++++---------
       
       1 file changed, 10 insertions(+), 9 deletions(-)
       ---
 (DIR) 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