Home | History | Annotate | Line # | Download | only in libkern
      1 #	$NetBSD: Makefile,v 1.7 2016/01/23 21:22:46 christos 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 CPPFLAGS+= -D_KERNTYPES
     22 
     23 ### find out what to use for libkern
     24 KERN_AS=	library
     25 KERNDIR=	${S}/lib/libkern
     26 
     27 .include "${KERNDIR}/Makefile.libkern"
     28 .ifndef ARCHSUBDIR
     29 .BEGIN:
     30 	@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
     31 	@false
     32 .endif
     33 
     34 .include <bsd.lib.mk>
     35