2012-05-01 00:40:03 -04:00
|
|
|
$OpenBSD: patch-config_mk,v 1.10 2012/05/01 04:40:03 gsoares Exp $
|
|
|
|
--- config.mk.orig Sun Jan 8 10:18:43 2012
|
|
|
|
+++ config.mk Tue Apr 3 12:08:37 2012
|
2011-08-18 10:13:28 -04:00
|
|
|
@@ -2,11 +2,11 @@
|
2012-05-01 00:40:03 -04:00
|
|
|
VERSION = 4.5
|
2007-01-19 16:38:40 -05:00
|
|
|
|
|
|
|
# paths
|
|
|
|
-PREFIX = /usr/local
|
|
|
|
-MANPREFIX = ${PREFIX}/share/man
|
|
|
|
+#PREFIX = /usr/local
|
|
|
|
+MANPREFIX = ${PREFIX}/man
|
|
|
|
|
|
|
|
-X11INC = /usr/X11R6/include
|
|
|
|
-X11LIB = /usr/X11R6/lib
|
|
|
|
+X11INC = ${X11BASE}/include
|
|
|
|
+X11LIB = ${X11BASE}/lib
|
|
|
|
|
2008-07-02 16:44:45 -04:00
|
|
|
# Xinerama, comment if you don't want it
|
2011-08-18 10:13:28 -04:00
|
|
|
XINERAMALIBS = -lXinerama
|
2012-05-01 00:40:03 -04:00
|
|
|
@@ -17,10 +17,10 @@ INCS = -I${X11INC}
|
2011-08-18 10:13:28 -04:00
|
|
|
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
|
2007-01-19 16:38:40 -05:00
|
|
|
|
|
|
|
# flags
|
2012-05-01 00:40:03 -04:00
|
|
|
-CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
2008-07-02 16:44:45 -04:00
|
|
|
+CPPFLAGS += -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
2012-05-01 00:40:03 -04:00
|
|
|
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
|
|
|
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
|
|
|
-LDFLAGS = -s ${LIBS}
|
2008-07-02 16:44:45 -04:00
|
|
|
+CFLAGS += ${INCS} ${CPPFLAGS}
|
|
|
|
+LDFLAGS += ${LIBS}
|
2007-01-19 16:38:40 -05:00
|
|
|
|
|
|
|
# compiler and linker
|
|
|
|
-CC = cc
|
2011-08-18 10:13:28 -04:00
|
|
|
+CC ?= cc
|