xref: /netbsd-src/usr.sbin/eeprom/Makefile (revision 0647473106440a964f74e4da0d9101cd009f0b0d)
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"
7PROG=	eeprom
8
9SRCS=	main.c
10LDADD+=-lutil
11DPADD+=${LIBUTIL}
12
13.if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
14SRCS+=	ophandlers.c
15.endif
16
17.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc"
18SRCS+=	eehandlers.c
19.endif
20
21.if ${MACHINE} == "macppc"
22SRCS+=		ofhandlers.c
23CPPFLAGS+=	-DUSE_OPENFIRM
24.endif
25
26.if ${MACHINE} == "prep"
27SRCS+=		prephandlers.c
28CPPFLAGS+=	-DUSE_PREPNVRAM
29.endif
30
31.endif
32
33MAN=	eeprom.8
34
35CPPFLAGS+= -I${.CURDIR}
36
37.include <bsd.prog.mk>
38