summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/stand
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-26 08:36:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-26 08:36:50 +0000
commitb9ef136c75f7451a7a9e4b20d69d3d8bd7b173b3 (patch)
tree8b4a8f19dde37d27b58206f11cbd5e31833562ab /sys/arch/hppa/stand
parentd3eb2fb1070e53da3f9b49d31cc7766d09c3cea9 (diff)
adjust to libkern changes (and pretty .PATH logic); parts from maja
Diffstat (limited to 'sys/arch/hppa/stand')
-rw-r--r--sys/arch/hppa/stand/boot/Makefile18
-rw-r--r--sys/arch/hppa/stand/cdboot/Makefile23
2 files changed, 27 insertions, 14 deletions
diff --git a/sys/arch/hppa/stand/boot/Makefile b/sys/arch/hppa/stand/boot/Makefile
index bb85f69c16b..cc2075613b7 100644
--- a/sys/arch/hppa/stand/boot/Makefile
+++ b/sys/arch/hppa/stand/boot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.19 2006/10/30 18:28:57 jmc Exp $
+# $OpenBSD: Makefile,v 1.20 2007/11/26 08:36:49 deraadt Exp $
MAN= boot.8
MANSUBDIR=hppa
@@ -8,7 +8,15 @@ CLEANFILES+= boot.gdb boot.map boot.lif
.if ${MACHINE} == "hppa"
PROG= boot
-SRCS= srt0.S exec.c boot.c cmd.c vars.c bootarg.c conf.c
+SRCS= srt0.S exec.c conf.c
+
+.PATH: ${S}/stand/boot
+SRCS+= bootarg.c boot.c vars.c cmd.c
+
+.PATH: ${S}/lib/libkern/arch/hppa ${S}/lib/libkern
+SRCS+= milli.S ashrdi3.c memcmp.c memcpy.c memset.c muldi3.c \
+ strcmp.c strlcpy.c strlen.c strncmp.c strncpy.c
+
LD?= ld
LDFLAGS+=-Bstatic -nostartfiles -nostdlib -N -Ttext $(LINKADDR)
LDFLAGS+=-T ${.CURDIR}/ld.script -Map boot.map
@@ -21,10 +29,8 @@ LINKS= ${BINDIR}/boot.lif ${BINDIR}/sdboot \
${BINDIR}/boot.lif ${BINDIR}/stboot \
${BINDIR}/boot.lif ${BINDIR}/xxboot
-LDADD= ${LIBSA} ${LIBZ} ${LIBKERN}
-DPADD= ${LIBSA} ${LIBZ} ${LIBKERN}
-
-.PATH: ${S}/stand/boot
+LDADD= ${LIBSA} ${LIBZ}
+DPADD= ${LIBSA} ${LIBZ}
all: boot.lif
diff --git a/sys/arch/hppa/stand/cdboot/Makefile b/sys/arch/hppa/stand/cdboot/Makefile
index 2cdf8619217..47a08cf0f62 100644
--- a/sys/arch/hppa/stand/cdboot/Makefile
+++ b/sys/arch/hppa/stand/cdboot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 2003/04/17 12:15:51 mickey Exp $
+# $OpenBSD: Makefile,v 1.4 2007/11/26 08:36:49 deraadt Exp $
NOMAN= no man
S =${.CURDIR}/../../../..
@@ -7,7 +7,18 @@ CLEANFILES+= cdboot.gdb cdboot.map
.if ${MACHINE} == "hppa"
PROG= cdboot
-SRCS= srt0.S cdboot.c pdc.c itecons.c dev_hppa.c dk.c
+
+.PATH: ${.CURDIR}/../boot
+SRCS+= srt0.S
+
+SRCS= srt0.S cdboot.c
+
+.PATH: ${.CURDIR}/../libsa
+SRCS+= pdc.c itecons.c dev_hppa.c dk.c
+
+.PATH: ${S}/lib/libkern/arch/hppa ${S}/lib/libkern
+SRCS+= milli.S strlen.c strlcpy.c
+
LD?= ld
LDFLAGS+=-Bstatic -nostartfiles -nostdlib -N -Ttext $(LINKADDR)
LDFLAGS+=-T ${.CURDIR}/ld.script -Map cdboot.map
@@ -20,12 +31,8 @@ CRTEND=
SAREL=
USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
-DPADD+= $(SALIB) $(LIBKERN)
-LDADD+= $(SALIB) $(LIBKERN)
-
-.PATH: ${S}/stand/boot
-.PATH: ${.CURDIR}/../boot
-.PATH: ${.CURDIR}/../libsa
+DPADD+= $(SALIB)
+LDADD+= $(SALIB)
all: ${PROG}