blob: 5c741d40f33f63897eecc8c0d93f4d711e32f695 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-ab,v 1.1 2005/10/12 02:15:30 christos 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 -li386
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
+ install -m 555 ${PRG} ${PREFIX}/sbin
distrib: clean
tar -C .. -zcvf /tmp/${PRG}-`cat VERSION.txt`.tgz --exclude '.*' ${PRG}
|