$OpenBSD: patch-config_mk,v 1.8 2011/09/13 14:02:53 gsoares Exp $ --- config.mk.orig Sun Jul 10 17:24:25 2011 +++ config.mk Tue Jul 26 10:44:28 2011 @@ -4,30 +4,30 @@ VERSION = 5.9 # Customize below to fit your system # 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 # Xinerama XINERAMALIBS = -L${X11LIB} -lXinerama XINERAMAFLAGS = -DXINERAMA # includes and libs -INCS = -I. -I/usr/include -I${X11INC} -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} +INCS = -I${X11INC} +LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} # flags -CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +CPPFLAGS += -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} -CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +CFLAGS += -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} #LDFLAGS = -g ${LIBS} -LDFLAGS = -s ${LIBS} +LDFLAGS += ${LIBS} # Solaris #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" #LDFLAGS = ${LIBS} # compiler and linker -CC = cc +CC ?= cc