$NetBSD: patch-ab,v 1.3 2008/08/25 14:46:29 joerg Exp $ --- Makefile.orig 2005-05-08 11:27:59.000000000 -0400 +++ Makefile 2005-10-11 18:12:19.000000000 -0400 @@ -3,14 +3,15 @@ # Uncomment this line if you want to test with a VBIOS image file # VBIOS_FILE:=-DVBIOS_FILE='"../dump/vbios-865.dmp"' +PREFIX?=/usr PLUGINS_SRCS:=${shell ls plugins/*.c} SRCS=855resolution.c vbios.c plugin.c ${PLUGINS_SRCS} OBJS=${SRCS:.c=.o} -PLUGINS_LIST:=${shell cd plugins;ls -x *.c | sed -e 's/.c//g' -e 's/ */,/g' } +PLUGINS_LIST:=${shell cd plugins;ls -x *.c | sed -e 's/.c/,/g' -e 's/,[ ]*$$//g' } PLUGINS_ADDR:=${shell echo ${PLUGINS_LIST} | sed -e 's/^/\&/g' -e 's/,/,\&/g' } VERSION:=${shell cat VERSION.txt} -LDLIBS:=-lm +LDLIBS:=-lm ${EXTRA_LIBS} CFLAGS:=-Wall -I`pwd` -DVERSION='"${VERSION}"' -DPLUGINS='${PLUGINS_LIST}' -DREF_PLUGINS='${PLUGINS_ADDR}' ${VBIOS_FILE} LDFLAGS:=-s @@ -23,7 +24,7 @@ rm -f ${OBJS} ${PRG} *~ plugins/*~ install: ${PRG} - cp ${PRG} /usr/sbin + ${BSD_INSTALL_PROGRAM} ${PRG} ${DESTDIR}${PREFIX}/sbin distrib: clean tar -C .. -zcvf /tmp/${PRG}-`cat VERSION.txt`.tgz --exclude '.*' ${PRG}