# from: @(#)Makefile 5.8 (Berkeley) 7/28/90 # $NetBSD: Makefile,v 1.15 2009/02/14 13:56:41 abs Exp $ .if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" \ || ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" \ || ${MACHINE} == "macppc" || ${MACHINE} == "prep" PROG= eeprom SRCS= main.c LDADD+=-lutil DPADD+=${LIBUTIL} .if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" SRCS+= ophandlers.c .endif .if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE_ARCH} == "sparc" SRCS+= eehandlers.c .endif .if ${MACHINE} == "macppc" 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