1995-07-13 22:07:19 +04:00
|
|
|
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
|
2013-05-02 07:56:38 +04:00
|
|
|
# $NetBSD: Makefile,v 1.19 2013/05/02 03:56:42 matt Exp $
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1995-07-13 22:07:19 +04:00
|
|
|
|
2009-02-14 16:50:50 +03:00
|
|
|
.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" \
|
2009-12-13 08:01:32 +03:00
|
|
|
|| ${MACHINE} == "sparc" || ${MACHINE} == "sparc64" \
|
2011-12-15 11:51:29 +04:00
|
|
|
|| ${MACHINE} == "macppc" || ${MACHINE} == "prep" \
|
2013-05-02 07:56:38 +04:00
|
|
|
|| ${MACHINE_CPU} == "arm"
|
1995-07-13 22:07:19 +04:00
|
|
|
PROG= eeprom
|
|
|
|
|
2006-11-18 01:11:28 +03:00
|
|
|
SRCS= main.c
|
|
|
|
LDADD+=-lutil
|
|
|
|
DPADD+=${LIBUTIL}
|
1995-07-13 22:07:19 +04:00
|
|
|
|
2009-12-13 08:01:32 +03:00
|
|
|
.if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
|
1995-07-13 22:07:19 +04:00
|
|
|
SRCS+= ophandlers.c
|
2013-03-16 00:22:44 +04:00
|
|
|
CPPFLAGS+= -DUSE_OPENPROM
|
1995-07-13 22:07:19 +04:00
|
|
|
.endif
|
2006-08-16 07:24:57 +04:00
|
|
|
|
2009-12-13 08:01:32 +03:00
|
|
|
.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc"
|
2000-11-29 01:31:37 +03:00
|
|
|
SRCS+= eehandlers.c
|
2013-03-16 00:22:44 +04:00
|
|
|
CPPFLAGS+= -DUSE_EEPROM
|
2000-11-29 01:31:37 +03:00
|
|
|
.endif
|
|
|
|
|
2013-05-02 07:56:38 +04:00
|
|
|
.if ${MACHINE} == "macppc" || ${MACHINE_CPU} == "arm"
|
2006-08-16 07:24:57 +04:00
|
|
|
SRCS+= ofhandlers.c
|
|
|
|
CPPFLAGS+= -DUSE_OPENFIRM
|
|
|
|
.endif
|
|
|
|
|
2007-03-01 19:49:48 +03:00
|
|
|
.if ${MACHINE} == "prep"
|
|
|
|
SRCS+= prephandlers.c
|
|
|
|
CPPFLAGS+= -DUSE_PREPNVRAM
|
|
|
|
.endif
|
2006-08-16 07:24:57 +04:00
|
|
|
|
1997-06-23 08:51:16 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
MAN= eeprom.8
|
1995-07-13 22:07:19 +04:00
|
|
|
|
2003-05-09 00:24:10 +04:00
|
|
|
CPPFLAGS+= -I${.CURDIR}
|
|
|
|
|
1995-07-13 22:07:19 +04:00
|
|
|
.include <bsd.prog.mk>
|