xref: /netbsd-src/usr.sbin/eeprom/Makefile (revision 5f058922b30a740a575f66360f39b2e64aeddc1b)
1#	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
2#	$NetBSD: Makefile,v 1.19 2013/05/02 03:56:42 matt Exp $
3
4.include <bsd.own.mk>
5
6.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" \
7	|| ${MACHINE} == "sparc" || ${MACHINE} == "sparc64" \
8	|| ${MACHINE} == "macppc" || ${MACHINE} == "prep" \
9	|| ${MACHINE_CPU} == "arm"
10PROG=	eeprom
11
12SRCS=	main.c
13LDADD+=-lutil
14DPADD+=${LIBUTIL}
15
16.if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
17SRCS+=	ophandlers.c
18CPPFLAGS+=	-DUSE_OPENPROM
19.endif
20
21.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc"
22SRCS+=	eehandlers.c
23CPPFLAGS+=	-DUSE_EEPROM
24.endif
25
26.if ${MACHINE} == "macppc" || ${MACHINE_CPU} == "arm"
27SRCS+=		ofhandlers.c
28CPPFLAGS+=	-DUSE_OPENFIRM
29.endif
30
31.if ${MACHINE} == "prep"
32SRCS+=		prephandlers.c
33CPPFLAGS+=	-DUSE_PREPNVRAM
34.endif
35
36.endif
37
38MAN=	eeprom.8
39
40CPPFLAGS+= -I${.CURDIR}
41
42.include <bsd.prog.mk>
43