summaryrefslogtreecommitdiff
path: root/distrib/special
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-07-24 19:21:07 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-07-24 19:21:07 +0000
commitf8d15456a251c7e3035e7197e989b4a23baabc36 (patch)
tree1f548bd81caae88c85dd8d17532aebb932d53674 /distrib/special
parentc96a147535992caa2aba889c7d24ea03ca93befb (diff)
Build machinery to build eeprom(8) for the installation media on arches where
it matters.
Diffstat (limited to 'distrib/special')
-rw-r--r--distrib/special/eeprom/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/distrib/special/eeprom/Makefile b/distrib/special/eeprom/Makefile
new file mode 100644
index 00000000000..f256ac10cb3
--- /dev/null
+++ b/distrib/special/eeprom/Makefile
@@ -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>