Home | History | Annotate | Line # | Download | only in zbsdmod
Makefile revision 1.3
      1 #	$NetBSD: Makefile,v 1.3 2007/08/17 06:47:03 he Exp $
      2 
      3 S=	${.CURDIR}/../../../..
      4 
      5 OBJS=	zbsdmod.o
      6 SRCS=	zbsdmod.c
      7 NOMAN=	yes
      8 
      9 realall: ${OBJS}
     10 
     11 cleandir:
     12 	rm -f machine arm
     13 
     14 .include <bsd.prog.mk>
     15 
     16 afterinstall:
     17 	${INSTALL_FILE} ${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) && !make(release)
     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 
     38 release: check_RELEASEDIR
     39 	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${OBJS} \
     40 	    ${RELEASEDIR}/${MACHINE}/installation
     41