Home | History | Annotate | Line # | Download | only in common
      1 #	$NetBSD: Makefile,v 1.15 2016/01/17 04:50:36 tsutsui Exp $
      2 
      3 S= ${.CURDIR}/../../../..
      4 
      5 NOMAN= # defined
      6 
      7 CFLAGS= -Os -Wall
      8 CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
      9 
     10 CPPFLAGS+= -D_STANDALONE
     11 CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I.
     12 CPPFLAGS+= -D__daddr_t=int32_t
     13 CPPFLAGS+= -DLIBSA_CREAD_NOCRC
     14 AFLAGS= -D_LOCORE
     15 
     16 .include <bsd.klinks.mk>
     17 .include <bsd.prog.mk>
     18 
     19 ### find out what to use for libkern
     20 KERN_AS= library
     21 .include "${S}/lib/libkern/Makefile.inc"
     22 LIBKERN= ${KERNLIB}
     23 
     24 ### find out what to use for libz
     25 Z_AS= library
     26 .include "${S}/lib/libz/Makefile.inc"
     27 LIBZ= ${ZLIB}
     28 
     29 ### find out what to use for libsa
     30 SA_AS= library
     31 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes SA_EXTRADIR=${.CURDIR}
     32 .include "${S}/lib/libsa/Makefile.inc"
     33 LIBSA= ${SALIB}
     34 
     35 LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
     36 
     37 realall: ${LIBS}
     38 
     39 cleandir distclean: .WAIT cleanlibdir
     40 
     41 cleanlibdir:
     42 	-rm -rf lib
     43