NetBSD/usr.sbin/eeprom/Makefile
matt 5f058922b3 This change arm, armeb, earm, earmeb, earmhf, earmhfeb so all builds that
share a MACHINE_ARCH for userland so that except for etc, will produce
identical sets.

usr/include/machine now points to usr/include/arm
2013-05-02 03:56:38 +00:00

43 lines
872 B
Makefile

# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
# $NetBSD: Makefile,v 1.19 2013/05/02 03:56:42 matt Exp $
.include <bsd.own.mk>
.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" \
|| ${MACHINE} == "sparc" || ${MACHINE} == "sparc64" \
|| ${MACHINE} == "macppc" || ${MACHINE} == "prep" \
|| ${MACHINE_CPU} == "arm"
PROG= eeprom
SRCS= main.c
LDADD+=-lutil
DPADD+=${LIBUTIL}
.if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
SRCS+= ophandlers.c
CPPFLAGS+= -DUSE_OPENPROM
.endif
.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc"
SRCS+= eehandlers.c
CPPFLAGS+= -DUSE_EEPROM
.endif
.if ${MACHINE} == "macppc" || ${MACHINE_CPU} == "arm"
SRCS+= ofhandlers.c
CPPFLAGS+= -DUSE_OPENFIRM
.endif
.if ${MACHINE} == "prep"
SRCS+= prephandlers.c
CPPFLAGS+= -DUSE_PREPNVRAM
.endif
.endif
MAN= eeprom.8
CPPFLAGS+= -I${.CURDIR}
.include <bsd.prog.mk>