# $NetBSD: Makefile,v 1.1 2006/12/17 16:07:11 peter Exp $ S= ${.CURDIR}/../../../.. OBJS= zbsdmod.o SRCS= zbsdmod.c NOMAN= yes all: ${OBJS} cleandir: rm -f machine arm .include afterinstall: ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \ ${OBJS} ${DESTDIR}/${BINDIR} CFLAGS= -Wall -Wmissing-prototypes -Wstrict-prototypes CFLAGS+= -DMACHINE=\"${MACHINE}\" -DUTS_RELEASE=\"2.4.20\" CPPFLAGS+= -nostdinc -D_STANDALONE CPPFLAGS+= -I${.OBJDIR} -I${S} .if !make(obj) && !make(clean) && !make(cleandir) .BEGIN: machine arm .NOPATH: machine arm machine:: -rm -f $@ ln -s ${S}/arch/${MACHINE}/include $@ arm:: -rm -f $@ ln -s ${S}/arch/arm/include $@ .endif