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