summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/stand/ofwboot/Makefile
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-09-01 15:34:14 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-09-01 15:34:14 +0000
commitcf0b6232acb8c668778a86e13c718b4ee42f251b (patch)
treea30b898b3265d7281a9a8a2cb79c032204739131 /sys/arch/macppc/stand/ofwboot/Makefile
parentbcb91dffec5231fd5f9ababc238093449963f96a (diff)
The "powerpc" port which has supported the newer Apple Macintosh powerpc based
is being renamed to macppc. This is to allow sharing of common code between different powerpc base platforms. Most of the work involved in the renaming process was performed by miod@ Files moved from powerpc/stand/ofwboot to macppc/stand/ofwboot
Diffstat (limited to 'sys/arch/macppc/stand/ofwboot/Makefile')
-rw-r--r--sys/arch/macppc/stand/ofwboot/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys/arch/macppc/stand/ofwboot/Makefile b/sys/arch/macppc/stand/ofwboot/Makefile
new file mode 100644
index 00000000000..dd464abf906
--- /dev/null
+++ b/sys/arch/macppc/stand/ofwboot/Makefile
@@ -0,0 +1,38 @@
+# $OpenBSD: Makefile,v 1.1 2001/09/01 15:34:13 drahn Exp $
+# $NetBSD: Makefile,v 1.2 1997/04/17 07:46:24 thorpej Exp $
+
+S= ${.CURDIR}/../../../..
+R=../
+
+PROG= ofwboot
+SRCS= Locore.c boot.c ofdev.c net.c netif_of.c alloc.c cache.c hfs.c
+.PATH: ${S}/arch/macppc/stand
+SRCS+= ofwmagic.S
+#CFLAGS+= -DDEBUG -DNETIF_DEBUG
+NOMAN=
+STRIPFLAG=
+BINMODE= 444
+OBJCOPY?= objcopy
+SAREL=
+BINDIR= /usr/mdec
+
+NEWVERSWHAT= "OpenFirmware Boot"
+
+# For now...
+RELOC= 20074
+
+ENTRY= _start
+
+CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
+CPPFLAGS+= -DRELOC=0x${RELOC}
+CPPFLAGS+= -DFIRMWORKSBUGS
+CPPFLAGS+= -DPOWERPC_BOOT_ELF
+CPPFLAGS+= -DXCOFF_GLUE # for booting PCI Powermacs
+
+LIBS!= cd $(.CURDIR)/$(R); $(MAKE) libdep
+
+${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
+ ${LD} -X -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
+ ${OBJS} ${LIBS}
+
+.include <bsd.prog.mk>