29 lines
698 B
Plaintext
29 lines
698 B
Plaintext
$OpenBSD: patch-config_mk,v 1.2 2013/11/09 09:51:50 jung Exp $
|
|
--- config.mk.orig Tue May 28 23:47:33 2013
|
|
+++ config.mk Sat Nov 9 10:19:13 2013
|
|
@@ -4,17 +4,16 @@ VERSION = 0.5
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
-TARGET = sltar
|
|
-PREFIX = /usr/local
|
|
-MANPREFIX = ${PREFIX}/share/man
|
|
+PREFIX ?= /usr/local
|
|
+MANPREFIX = ${PREFIX}/man
|
|
|
|
# includes and libs
|
|
-INCS = -I. -I/usr/include
|
|
-LIBS = -L/usr/lib -lc
|
|
+INCS = -I${PREFIX}/include
|
|
+LIBS = -L${PREFIX}/lib
|
|
|
|
# flags
|
|
-CFLAGS = -static -Os -g -Wall -Werror ${INCS} -DVERSION=\"${VERSION}\"
|
|
-LDFLAGS = -g ${LIBS}
|
|
+CFLAGS += -Wall -Werror ${INCS} -DVERSION=\"${VERSION}\"
|
|
+LDFLAGS += ${LIBS}
|
|
|
|
# compiler and linker
|
|
-CC = cc
|
|
+CC ?= cc
|