Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.29
      1 #	$NetBSD: Makefile,v 1.29 2012/10/12 20:15:52 tsutsui Exp $
      2 
      3 S=		${.CURDIR}/../../../..
      4 
      5 CFLAGS+=	-m68020-60
      6 
      7 CPPFLAGS+=	-nostdinc -I${.OBJDIR} -I. -I${S}
      8 CPPFLAGS+=	-I${.CURDIR}/../libiocs -I${.CURDIR}/../common
      9 CPPFLAGS+=	-D_STANDALONE
     10 CPPFLAGS+=	-DHEAP_VARIABLE
     11 CPPFLAGS+=	-DHAVE_CHANGEDISK_HOOK
     12 CPPFLAGS+=	-DUSTAR_SECT_PER_CYL=16
     13 CPPFLAGS+=	-DLIBSA_ENABLE_LS_OP
     14 CPPFLAGS+=	-DSUPPORT_BOOTP -DSUPPORT_DHCP
     15 #CPPFLAGS+=	-DDEBUG
     16 
     17 .PATH:	${LIBSADIR} ${LIBKERNDIR} ${LIBZDIR} ${LIBZDIST}
     18 
     19 .include "../Makefile.booters"
     20 
     21 # only needed during build
     22 libinstall::
     23 
     24 .include <bsd.prog.mk>
     25 
     26 ### find out what to use for libkern
     27 KERN_AS= library
     28 .include "${S}/lib/libkern/Makefile.inc"
     29 LIBKERN= ${KERNLIB}
     30 
     31 ### find out what to use for libz
     32 Z_AS= library
     33 .include "${S}/lib/libz/Makefile.inc"
     34 LIBZ= ${ZLIB}
     35 
     36 ### find out what to use for libsa
     37 SA_AS= library
     38 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes SA_ENABLE_LS_OP=yes SA_EXTRADIR=${.CURDIR}
     39 .include "${S}/lib/libsa/Makefile.inc"
     40 LIBSA= ${SALIB}
     41 
     42 LIBS= ${LIBKERN} ${LIBZ} ${LIBSA}
     43 
     44 all realall: ${LIBS}
     45 
     46 cleandir distclean: .WAIT cleanlibdir
     47 
     48 cleanlibdir:
     49 	-rm -rf lib
     50