Home | History | Annotate | Line # | Download | only in common
      1 #	$NetBSD: Makefile,v 1.4 2014/08/08 16:56:32 joerg Exp $
      2 
      3 S= ${.CURDIR}/../../../..
      4 
      5 .include <bsd.klinks.mk>
      6 
      7 NOMAN= # defined
      8 
      9 CPPFLAGS+= -D_STANDALONE
     10 CPPFLAGS+= -D__daddr_t=int32_t
     11 CPPFLAGS+= -I. -I${S} -I${.OBJDIR}
     12 CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-pointer-sign
     13 
     14 CFLAGS= -Os -ffreestanding
     15 
     16 .include <bsd.prog.mk>
     17 
     18 ### find out what to use for libkern
     19 KERN_AS=	library
     20 .include "${S}/lib/libkern/Makefile.inc"
     21 LIBKERN=	${KERNLIB}
     22 
     23 ### find out what to use for libz
     24 Z_AS=		library
     25 .include "${S}/lib/libz/Makefile.inc"
     26 LIBZ=		${ZLIB}
     27 
     28 ### find out what to use for libsa
     29 SA_AS=		library
     30 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes SA_INCLUDE_NET=no
     31 .include "${S}/lib/libsa/Makefile.inc"
     32 LIBSA=		${SALIB}
     33 
     34 LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
     35 
     36 realall: ${LIBS}
     37