blob: b3d9d488e452f22710ea8c71475783e09a7f62c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $NetBSD: Makefile,v 1.7 2016/01/23 21:22:46 christos 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
CPPFLAGS+= -D_KERNTYPES
### 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>
|