Build machinery to build eeprom(8) for the installation media on arches where
authormiod <miod@openbsd.org>
Thu, 24 Jul 2014 19:21:06 +0000 (19:21 +0000)
committermiod <miod@openbsd.org>
Thu, 24 Jul 2014 19:21:06 +0000 (19:21 +0000)
it matters.

distrib/special/eeprom/Makefile [new file with mode: 0644]

diff --git a/distrib/special/eeprom/Makefile b/distrib/special/eeprom/Makefile
new file mode 100644 (file)
index 0000000..f256ac1
--- /dev/null
@@ -0,0 +1,20 @@
+#      $OpenBSD: Makefile,v 1.1 2014/07/24 19:21:06 miod Exp $
+
+.PATH: ${.CURDIR}/../../../usr.sbin/eeprom
+
+.if ${MACHINE} == "macppc" || ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
+PROG=  eeprom
+
+SRCS=  main.c
+SRCS+= ophandlers.c optree.c
+
+.  if ${MACHINE} == "sparc"
+SRCS+= eehandlers.c
+.  endif
+
+CFLAGS+=       -DSMALL
+.else
+NOPROG=yes
+.endif
+
+.include <bsd.prog.mk>