From 98befbd047c6904f07caa98d4e0429fdcaa6066f Mon Sep 17 00:00:00 2001 From: miod Date: Thu, 24 Jul 2014 19:21:06 +0000 Subject: [PATCH] Build machinery to build eeprom(8) for the installation media on arches where it matters. --- distrib/special/eeprom/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 distrib/special/eeprom/Makefile 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 -- 2.20.1