1 # from: @(#)Makefile 5.8 (Berkeley) 7/28/90 2 # $NetBSD: Makefile,v 1.13 2006/11/17 22:13:08 christos Exp $ 3 4 .if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc" \ 5 || ${MACHINE} == "sparc64" || ${MACHINE} == "macppc" 6 PROG= eeprom 7 8 SRCS= main.c 9 LDADD+=-lutil 10 DPADD+=${LIBUTIL} 11 12 .if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64" 13 SRCS+= ophandlers.c 14 .endif 15 16 .if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc" 17 SRCS+= eehandlers.c 18 .endif 19 20 .if ${MACHINE} == "macppc" 21 SRCS+= ofhandlers.c 22 CPPFLAGS+= -DUSE_OPENFIRM 23 .endif 24 25 26 .endif 27 28 MAN= eeprom.8 29 30 CPPFLAGS+= -I${.CURDIR} 31 32 .include <bsd.prog.mk> 33