1 # $NetBSD: Makefile,v 1.6 2013/08/25 14:20:30 matt Exp $ 2 3 .include <bsd.obj.mk> # Pull in OBJDIR name rules. 4 .include <bsd.own.mk> 5 .include <bsd.klinks.mk> 6 7 LIBISPRIVATE?= yes 8 LIB= kern 9 DBG= -Os 10 11 S= ${NETBSDSRCDIR}/sys 12 CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I${S}/arch 13 14 CPPFLAGS+= -D_STANDALONE 15 16 COPTS+= -ffreestanding 17 COPTS+= -fno-stack-protector 18 COPTS+= -fno-unwind-tables 19 CWARNFLAGS+= -Werror 20 CWARNFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith 21 22 ### find out what to use for libkern 23 KERN_AS= library 24 KERNDIR= ${S}/lib/libkern 25 26 .include "${KERNDIR}/Makefile.libkern" 27 .ifndef ARCHSUBDIR 28 .BEGIN: 29 @echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU} 30 @false 31 .endif 32 33 .include <bsd.lib.mk> 34