Home | History | Annotate | Line # | Download | only in eeprom
      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"
     10 PROG=	eeprom
     11 
     12 SRCS=	main.c
     13 LDADD+=-lutil
     14 DPADD+=${LIBUTIL}
     15 
     16 .if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
     17 SRCS+=	ophandlers.c
     18 CPPFLAGS+=	-DUSE_OPENPROM
     19 .endif
     20 
     21 .if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc" 
     22 SRCS+=	eehandlers.c
     23 CPPFLAGS+=	-DUSE_EEPROM
     24 .endif
     25 
     26 .if ${MACHINE} == "macppc" || ${MACHINE_CPU} == "arm"
     27 SRCS+=		ofhandlers.c
     28 CPPFLAGS+=	-DUSE_OPENFIRM
     29 .endif
     30 
     31 .if ${MACHINE} == "prep"
     32 SRCS+=		prephandlers.c
     33 CPPFLAGS+=	-DUSE_PREPNVRAM
     34 .endif
     35 
     36 .endif
     37 
     38 MAN=	eeprom.8
     39 
     40 CPPFLAGS+= -I${.CURDIR}
     41 
     42 .include <bsd.prog.mk>
     43