summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/stand/boot
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-05-31 19:56:52 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-05-31 19:56:52 +0000
commit051178d4c3ee867c864049d7d6b2e7d6ad0fa863 (patch)
tree23ece125fb03222cd82b005f57bffc58bb98e97d /sys/arch/hppa/stand/boot
parent5bdf8e8607e5e9858ada0e527f47fed8c9d9ad68 (diff)
build mans all the time, cleanfiles always the same
Diffstat (limited to 'sys/arch/hppa/stand/boot')
-rw-r--r--sys/arch/hppa/stand/boot/Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/sys/arch/hppa/stand/boot/Makefile b/sys/arch/hppa/stand/boot/Makefile
index d103626c921..bc7d21b76e5 100644
--- a/sys/arch/hppa/stand/boot/Makefile
+++ b/sys/arch/hppa/stand/boot/Makefile
@@ -1,17 +1,19 @@
-# $OpenBSD: Makefile,v 1.9 1999/12/23 02:42:23 mickey Exp $
+# $OpenBSD: Makefile,v 1.10 2000/05/31 19:56:51 mickey Exp $
+MAN= boot.8
+MANSUBDIR=/hppa
+MLINKS= boot.8 boot.conf.8
+S =${.CURDIR}/../../../..
+CLEANFILES+= boot.gdb boot.map boot.lif bsd
+
+.if ${MACHINE} == "hppa"
PROG= boot
SRCS= srt0.S boot.c cmd.c vars.c bootarg.c conf.c
LD?= ld
LDFLAGS+=-Bstatic -nostartfiles -nostdlib -N -Ttext $(LINKADDR)
LDFLAGS+=-T ${.CURDIR}/ld.script -Map boot.map
SIZE?= size
-MAN= boot.8
-MANSUBDIR=/hppa
-MLINKS= boot.8 boot.conf.8
-S =${.CURDIR}/../../../..
SADIR= ${.CURDIR}/..
-CLEANFILES+= boot.gdb boot.map boot.lif bsd
LDADD= ${LIBSA} ${LIBZ} ${LIBKERN}
DPADD= ${LIBSA} ${LIBZ} ${LIBKERN}
@@ -23,13 +25,13 @@ all: boot.lif
# enable this when SHEPHERD dies
#.if exists(${.CURDIR}/../../compile/DISKLESS/bsd)
#bsd: ${.CURDIR}/../../compile/DISKLESS/bsd
-# gzip -9c ${.CURDIR}/../../compile/DISKLESS/bsd > bsd
+# gzip -9 -c ${.CURDIR}/../../compile/DISKLESS/bsd > bsd
#ADDBOOT+=bsd
#.endif
.if exists(${.CURDIR}/../../compile/SHEPHERD_PIE/bsd)
bsd: ${.CURDIR}/../../compile/SHEPHERD_PIE/bsd
- gzip -9c ${.CURDIR}/../../compile/SHEPHERD_PIE/bsd > bsd
+ gzip -9 -c ${.CURDIR}/../../compile/SHEPHERD_PIE/bsd > bsd
ADDBOOT+=bsd
.endif
@@ -42,6 +44,9 @@ boot.lif: ${PROG} ${ADDBOOT}
${PROG}: $(OBJS) $(DPADD)
$(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDADD)
@${SIZE} $(PROG)
+.else
+NOPROG=
+.endif
.include <bsd.prog.mk>