Makefile revision 1.18
1#	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
2#	$NetBSD: Makefile,v 1.18 2013/03/15 20:22:44 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
16CPPFLAGS+=	-DUSE_OPENPROM
17.endif
18
19.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc" 
20SRCS+=	eehandlers.c
21CPPFLAGS+=	-DUSE_EEPROM
22.endif
23
24.if ${MACHINE} == "macppc" || ${MACHINE} == "shark"
25SRCS+=		ofhandlers.c
26CPPFLAGS+=	-DUSE_OPENFIRM
27.endif
28
29.if ${MACHINE} == "prep"
30SRCS+=		prephandlers.c
31CPPFLAGS+=	-DUSE_PREPNVRAM
32.endif
33
34.endif
35
36MAN=	eeprom.8
37
38CPPFLAGS+= -I${.CURDIR}
39
40.include <bsd.prog.mk>
41