summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw/libofw/Makefile
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2000-11-10 06:39:58 +0000
committerbenno <benno@FreeBSD.org>2000-11-10 06:39:58 +0000
commit7d73a3330371286c3b3b0c935dabb9f849aef4d1 (patch)
tree22789847a40afa54801d110d94fa52b73934f134 /sys/boot/ofw/libofw/Makefile
parent0268629b4f753fd4a0f76b1ab3467287f30fd286 (diff)
downloadFreeBSD-src-7d73a3330371286c3b3b0c935dabb9f849aef4d1.zip
FreeBSD-src-7d73a3330371286c3b3b0c935dabb9f849aef4d1.tar.gz
OpenFirmware/PowerPC loader, part 2.
As of this patchset, the loader builds (under NetBSD/macppc), boots, interacts and talks to BOOTP/NFS servers. (main.c was moved from boot/ofw/libofw to boot/ofw/common but has no revision history) Reviewed by: obrien
Diffstat (limited to 'sys/boot/ofw/libofw/Makefile')
-rw-r--r--sys/boot/ofw/libofw/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/sys/boot/ofw/libofw/Makefile b/sys/boot/ofw/libofw/Makefile
index 2733ea9..5126ef1 100644
--- a/sys/boot/ofw/libofw/Makefile
+++ b/sys/boot/ofw/libofw/Makefile
@@ -6,18 +6,28 @@ NOPROFILE= true
INTERNALLIB= true
INTERNALSTATICLIB= true
-SRCS= devicename.c main.c ofw_copy.c ofw_module.c ofw_disk.c ofw_console.c \
- ofw_time.c ofw_devsearch.c ofw_reboot.c openfirm.c
+SRCS= devicename.c ofw_copy.c ofw_module.c ofw_disk.c ofw_net.c \
+ ofw_console.c ofw_time.c ofw_devsearch.c ofw_reboot.c openfirm.c
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
# Pick up the bootstrap header for some interface items
-CFLAGS+= -I${.CURDIR}/../../common -msoft-float \
- -I${.CURDIR}/../../.. -I.
+CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
-.ifdef(BOOT_BIOSDISK_DEBUG)
+.if ${MACHINE_ARCH} == "powerpc"
+CFLAGS+= -msoft-float
+.endif
+
+.ifdef(BOOT_DISK_DEBUG)
# Make the disk code more talkative
CFLAGS+= -DDISK_DEBUG
.endif
+machine:
+ ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
+
+CLEANFILES+= machine
+
.include <bsd.lib.mk>
+
+beforedepend ${OBJS}: machine
OpenPOWER on IntegriCloud