NetBSD/lib/libkern/Makefile

34 lines
722 B
Makefile

# $NetBSD: Makefile,v 1.6 2013/08/25 14:20:30 matt Exp $
.include <bsd.obj.mk> # Pull in OBJDIR name rules.
.include <bsd.own.mk>
.include <bsd.klinks.mk>
LIBISPRIVATE?= yes
LIB= kern
DBG= -Os
S= ${NETBSDSRCDIR}/sys
CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I${S}/arch
CPPFLAGS+= -D_STANDALONE
COPTS+= -ffreestanding
COPTS+= -fno-stack-protector
COPTS+= -fno-unwind-tables
CWARNFLAGS+= -Werror
CWARNFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
### find out what to use for libkern
KERN_AS= library
KERNDIR= ${S}/lib/libkern
.include "${KERNDIR}/Makefile.libkern"
.ifndef ARCHSUBDIR
.BEGIN:
@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
@false
.endif
.include <bsd.lib.mk>