xref: /netbsd-src/usr.sbin/eeprom/Makefile (revision 8ac07aec990b9d2e483062509d0a9fa5b4f57cf2)
1#	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
2#	$NetBSD: Makefile,v 1.14 2007/03/01 16:49:48 garbled Exp $
3
4.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc" \
5	|| ${MACHINE} == "sparc64" || ${MACHINE} == "macppc" \
6	|| ${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