2016-01-24 00:22:45 +03:00
|
|
|
# $NetBSD: Makefile,v 1.7 2016/01/23 21:22:46 christos Exp $
|
2013-08-20 21:35:41 +04:00
|
|
|
|
|
|
|
.include <bsd.obj.mk> # Pull in OBJDIR name rules.
|
|
|
|
.include <bsd.own.mk>
|
2013-08-21 09:45:16 +04:00
|
|
|
.include <bsd.klinks.mk>
|
2013-08-20 21:35:41 +04:00
|
|
|
|
2013-08-20 22:06:03 +04:00
|
|
|
LIBISPRIVATE?= yes
|
2013-08-25 18:20:30 +04:00
|
|
|
LIB= kern
|
2013-08-20 21:35:41 +04:00
|
|
|
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
|
2016-01-24 00:22:45 +03:00
|
|
|
CPPFLAGS+= -D_KERNTYPES
|
2013-08-20 21:35:41 +04:00
|
|
|
|
|
|
|
### find out what to use for libkern
|
|
|
|
KERN_AS= library
|
|
|
|
KERNDIR= ${S}/lib/libkern
|
|
|
|
|
2013-08-25 18:20:30 +04:00
|
|
|
.include "${KERNDIR}/Makefile.libkern"
|
2013-08-20 21:35:41 +04:00
|
|
|
.ifndef ARCHSUBDIR
|
|
|
|
.BEGIN:
|
|
|
|
@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
|
|
|
|
@false
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|