Introduction
Introduction Statistics Contact Development Disclaimer Help
config.mk: improvements, allow to override X11INC and X11LIB - xscreenshot - sc…
git clone git://git.codemadness.org/xscreenshot
Log
Files
Refs
README
LICENSE
---
commit 85ee16921ed51359ffe1496f7380684f5a03979d
parent 8a6fbfbed1428dc71588d6a1b86730e0da055163
Author: Hiltjo Posthuma <[email protected]>
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(-)
---
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
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.