Introduction
Introduction Statistics Contact Development Disclaimer Help
config.mk: introduce X11LIB and X11INC, makes porting simpler - lel - Farbfeld …
git clone git://git.codemadness.org/lel
Log
Files
Refs
README
LICENSE
---
commit 6ad84540f1b6baec45bcb45c392773dc254e290e
parent c9c96132f710460f1fa37f443ea8f70f4709af26
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 17 Nov 2015 21:32:08 +0100
config.mk: introduce X11LIB and X11INC, makes porting simpler
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 = 0.1
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 = -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}\"
+#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.