Home | History | Annotate | Line # | Download | only in stand
      1  1.6   tsutsui # $NetBSD: Makefile.bootprogs,v 1.6 2014/01/12 15:26:29 tsutsui Exp $
      2  1.1       uwe 
      3  1.1       uwe S=		${.CURDIR}/../../../../..
      4  1.1       uwe 
      5  1.1       uwe NOMAN=		# defined
      6  1.1       uwe 
      7  1.1       uwe BINDIR=		/usr/mdec
      8  1.1       uwe BINMODE=	0444
      9  1.1       uwe 
     10  1.1       uwe PRIMARY_LOAD_ADDRESS?=0x8c201000
     11  1.1       uwe SECONDARY_LOAD_ADDRESS?=0x8ff00000
     12  1.1       uwe 
     13  1.1       uwe .include <bsd.own.mk>
     14  1.5      matt .include <bsd.klinks.mk>
     15  1.1       uwe 
     16  1.1       uwe STRIPFLAG=	# override
     17  1.1       uwe 
     18  1.1       uwe LIBCRT0=	# nothing
     19  1.6   tsutsui LIBCRTI=	# nothing
     20  1.1       uwe LIBCRTBEGIN=	# nothing
     21  1.1       uwe LIBCRTEND=	# nothing
     22  1.1       uwe LIBC=		# nothing
     23  1.1       uwe 
     24  1.1       uwe .PATH:	${.CURDIR}/..
     25  1.1       uwe 
     26  1.2    nonaka COPTS=		-m4-nofpu -Os -ffreestanding
     27  1.1       uwe 
     28  1.1       uwe LDFLAGS+=	-N
     29  1.1       uwe CFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes
     30  1.1       uwe CPPFLAGS+=	-nostdinc -D_STANDALONE
     31  1.1       uwe CPPFLAGS+=	-DSH4
     32  1.1       uwe CPPFLAGS+=	-I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S}
     33  1.1       uwe 
     34  1.1       uwe ### find out what to use for libsa
     35  1.1       uwe SA_AS= library
     36  1.1       uwe .include "${S}/lib/libsa/Makefile.inc"
     37  1.1       uwe LIBSA= ${SALIB}
     38  1.1       uwe CPPFLAGS+=	-I$(SADIR)
     39  1.1       uwe 
     40  1.1       uwe ### find out what to use for libkern
     41  1.1       uwe KERN_AS= library
     42  1.1       uwe .include "${S}/lib/libkern/Makefile.inc"
     43  1.1       uwe LIBKERN= ${KERNLIB}
     44  1.1       uwe 
     45  1.1       uwe ### find out what to use for libz
     46  1.1       uwe Z_AS= library
     47  1.1       uwe .include "${S}/lib/libz/Makefile.inc"
     48  1.1       uwe LIBZ= ${ZLIB}
     49  1.1       uwe 
     50  1.4  dholland cleandir distclean: .WAIT cleanlibdir
     51  1.1       uwe 
     52  1.1       uwe cleanlibdir:
     53  1.1       uwe 	-rm -rf lib
     54