summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc/stand/tftpboot/Makefile
diff options
context:
space:
mode:
authorSteve Murphree <smurph@cvs.openbsd.org>2001-06-26 21:58:11 +0000
committerSteve Murphree <smurph@cvs.openbsd.org>2001-06-26 21:58:11 +0000
commit416f561c78b0eca90fdb484e72a96080b0825dca (patch)
treed310db0254b85229b90b9d90e79cabfbbcb6101a /sys/arch/mvmeppc/stand/tftpboot/Makefile
parent77682e0d8d22531ed2952aaab30aae7c69483b3d (diff)
Initial import of mvmeppc.
Diffstat (limited to 'sys/arch/mvmeppc/stand/tftpboot/Makefile')
-rw-r--r--sys/arch/mvmeppc/stand/tftpboot/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/sys/arch/mvmeppc/stand/tftpboot/Makefile b/sys/arch/mvmeppc/stand/tftpboot/Makefile
new file mode 100644
index 00000000000..7c248c806bf
--- /dev/null
+++ b/sys/arch/mvmeppc/stand/tftpboot/Makefile
@@ -0,0 +1,45 @@
+# $OpenBSD: Makefile,v 1.1 2001/06/26 21:58:09 smurph Exp $
+
+SIZE?= size
+STRIP?= strip
+
+S= ${.CURDIR}/../../../..
+DEFS= -DSUN_BOOTPARAMS
+#-DNETIF_DEBUG
+INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \
+ -I${S} -I${S}/lib/libsa
+CFLAGS=-O2 ${DEFS} ${INCPATH} ${COPTS}
+CLEANFILES+=tftpboot tftpboot.bin
+
+.include "${S}/arch/mvmeppc/stand/bugcrt/Makefile.inc"
+.include "${S}/arch/mvmeppc/stand/libbug/Makefile.inc"
+.include "${S}/arch/mvmeppc/stand/libsa/Makefile.inc"
+.include "${S}/arch/mvmeppc/stand/libz/Makefile.inc"
+
+SRCS= boot.c version.c
+#SRCS+= if_ie.c
+#SRCS+= if_le.c
+OBJS= ${SRCS:S/.c/.o/g}
+LIBS= ${LIBSA} ${LIBBUG} ${LIBZ} ${LIBGCC}
+LDFLAGS+= -s -X -N -Ttext ${STAGE1_RELOC} -e _start
+#LDFLAGS+= -nostdlib -s -N -Ttext ${RELOC}
+
+all: tftpboot.bin
+
+tftpboot: ${OBJS} ${SINGLE} ${LIBS}
+ ${LD} ${LDFLAGS} \
+ ${SINGLE} ${OBJS} ${LIBS} -o $@
+# @${SIZE} $@
+
+tftpboot.bin: tftpboot
+ ${STRIP} tftpboot
+ dd ibs=96 skip=1 if=tftpboot of=$@
+# dd ibs=38 skip=1 if=tftpboot of=$@
+ chown ${LIBOWN}.${LIBGRP} tftpboot.bin
+ chmod ${LIBMODE} tftpboot.bin
+
+install:
+ ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+ tftpboot.bin ${DESTDIR}${MDEC_DIR}/tftpboot
+
+.include <bsd.prog.mk>