Home | History | Annotate | Line # | Download | only in zbsdmod
Makefile revision 1.1
      1 #	$NetBSD: Makefile,v 1.1 2006/12/17 16:07:11 peter Exp $
      2 
      3 S=	${.CURDIR}/../../../..
      4 
      5 OBJS=	zbsdmod.o
      6 SRCS=	zbsdmod.c
      7 NOMAN=	yes
      8 
      9 all: ${OBJS}
     10 
     11 cleandir:
     12 	rm -f machine arm
     13 
     14 .include <bsd.prog.mk>
     15 
     16 afterinstall:
     17 	${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
     18 		${OBJS} ${DESTDIR}/${BINDIR}
     19 
     20 CFLAGS=		-Wall -Wmissing-prototypes -Wstrict-prototypes
     21 CFLAGS+=	-DMACHINE=\"${MACHINE}\" -DUTS_RELEASE=\"2.4.20\"
     22 CPPFLAGS+=      -nostdinc -D_STANDALONE
     23 CPPFLAGS+=	-I${.OBJDIR} -I${S}
     24 
     25 .if !make(obj) && !make(clean) && !make(cleandir)
     26 .BEGIN: machine arm
     27 .NOPATH: machine arm
     28 
     29 machine::
     30 	-rm -f $@
     31 	ln -s ${S}/arch/${MACHINE}/include $@
     32 
     33 arm::
     34 	-rm -f $@
     35 	ln -s ${S}/arch/arm/include $@
     36 .endif
     37