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