691b941464
designed for surf but also usable with many other application, i.e. uzbl, urxvt and xterm. ok landry@
37 lines
887 B
Plaintext
37 lines
887 B
Plaintext
$OpenBSD: patch-config_mk,v 1.1.1.1 2012/07/09 08:42:53 zinke Exp $
|
|
--- config.mk.orig Sat Jul 7 22:51:05 2012
|
|
+++ config.mk Sun Jul 8 15:01:17 2012
|
|
@@ -4,21 +4,24 @@ VERSION = 0.4
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
-PREFIX = /usr/local
|
|
-MANPREFIX = ${PREFIX}/share/man
|
|
+PREFIX ?= /usr/local
|
|
+MANPREFIX = ${PREFIX}/man
|
|
|
|
+X11INC = ${X11BASE}/include
|
|
+X11LIB = ${X11BASE}/lib
|
|
+
|
|
# includes and libs
|
|
-INCS = -I. -I/usr/include
|
|
-LIBS = -L/usr/lib -lc -lX11
|
|
+INCS = -I${X11INC}
|
|
+LIBS = -L${X11LIB} -lX11
|
|
|
|
# flags
|
|
-CPPFLAGS = -DVERSION=\"${VERSION}\"
|
|
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
|
-LDFLAGS = -s ${LIBS}
|
|
+CPPFLAGS += -DVERSION=\"${VERSION}\"
|
|
+CFLAGS += -std=c99 -pedantic -Wall ${INCS} ${CPPFLAGS}
|
|
+LDFLAGS += ${LIBS}
|
|
|
|
# Solaris
|
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
|
#LDFLAGS = ${LIBS}
|
|
|
|
# compiler and linker
|
|
-CC = cc
|
|
+CC ?= cc
|