xref: /netbsd-src/usr.sbin/eeprom/Makefile (revision 93bf6008f8b7982c1d1a9486e4a4a0e687fe36eb)
1#	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
2#	$NetBSD: Makefile,v 1.15 2009/02/14 13:56:41 abs Exp $
3
4.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" \
5	|| ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" \
6	|| ${MACHINE} == "macppc" || ${MACHINE} == "prep"
7PROG=	eeprom
8
9SRCS=	main.c
10LDADD+=-lutil
11DPADD+=${LIBUTIL}
12
13.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
14SRCS+=	ophandlers.c
15.endif
16
17.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE_ARCH} == "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