From: miod Date: Thu, 24 Jul 2014 19:21:06 +0000 (+0000) Subject: Build machinery to build eeprom(8) for the installation media on arches where X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=98befbd047c6904f07caa98d4e0429fdcaa6066f;p=openbsd Build machinery to build eeprom(8) for the installation media on arches where it matters. --- 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