Home | History | Annotate | Line # | Download | only in stand
Makefile.buildboot revision 1.1
      1  1.1  reinoud #	$NetBSD: Makefile.buildboot,v 1.1 2002/12/28 23:57:36 reinoud Exp $
      2  1.1  reinoud 
      3  1.1  reinoud S?=	${.CURDIR}/../../../..
      4  1.1  reinoud 
      5  1.1  reinoud .PATH: ${.CURDIR}/../lib
      6  1.1  reinoud 
      7  1.1  reinoud SRCS=	${PROGSOURCE}
      8  1.1  reinoud NOMAN=# defined
      9  1.1  reinoud BINDIR=/usr/mdec
     10  1.1  reinoud BINMODE=444
     11  1.1  reinoud FILESDIR=/usr/mdec
     12  1.1  reinoud 
     13  1.1  reinoud RISCOSTYPE ?= ff8
     14  1.1  reinoud 
     15  1.1  reinoud SRCS+=		vers.c
     16  1.1  reinoud CLEANFILES+=	vers.c
     17  1.1  reinoud .PHONY: vers.c
     18  1.1  reinoud vers.c: ${.CURDIR}/version
     19  1.1  reinoud 	sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version ${MACHINE} ${NEWVERSWHAT}
     20  1.1  reinoud 
     21  1.1  reinoud CPPFLAGS+=	-D_STANDALONE 
     22  1.1  reinoud CPPFLAGS+=	-I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. 
     23  1.1  reinoud CPPFLAGS+=	-I${.CURDIR}/../lib
     24  1.1  reinoud CFLAGS=		-O2
     25  1.1  reinoud CFLAGS+=	-Wall -Wstrict-prototypes -Wmissing-prototypes
     26  1.1  reinoud 
     27  1.1  reinoud .if !make(obj) && !make(clean) && !make(cleandir)
     28  1.1  reinoud .BEGIN: machine
     29  1.1  reinoud .NOPATH: machine
     30  1.1  reinoud .endif
     31  1.1  reinoud 
     32  1.1  reinoud realdepend realall: machine
     33  1.1  reinoud CLEANFILES+= machine
     34  1.1  reinoud 
     35  1.1  reinoud machine::
     36  1.1  reinoud 	-rm -f $@
     37  1.1  reinoud 	ln -s $S/arch/acorn32/include $@
     38  1.1  reinoud 
     39  1.1  reinoud ${OBJS}: machine
     40  1.1  reinoud 
     41  1.1  reinoud ### find out what to use for libkern
     42  1.1  reinoud KERN_AS=	library
     43  1.1  reinoud .include "${S}/lib/libkern/Makefile.inc"
     44  1.1  reinoud LIBKERN=	${KERNLIB}
     45  1.1  reinoud 
     46  1.1  reinoud ### find out what to use for libz
     47  1.1  reinoud Z_AS=		library
     48  1.1  reinoud .include "${S}/lib/libz/Makefile.inc"
     49  1.1  reinoud LIBZ=		${ZLIB}
     50  1.1  reinoud 
     51  1.1  reinoud ### find out what to use for libsa
     52  1.1  reinoud SA_AS=		library
     53  1.1  reinoud SAMISCMAKEFLAGS+= SA_INCLUDE_NET=no SA_USE_LOADFILE=yes SA_USE_CREAD=yes
     54  1.1  reinoud CPPFLAGS+=	-DLIBSA_NO_RAW_ACCESS \
     55  1.1  reinoud 		-DLIBSA_SINGLE_FILESYSTEM=riscos \
     56  1.1  reinoud 		-DLIBSA_NO_FS_WRITE \
     57  1.1  reinoud 		-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET \
     58  1.1  reinoud 		-DHEAP_VARIABLE
     59  1.1  reinoud .include "${S}/lib/libsa/Makefile.inc"
     60  1.1  reinoud LIBSA=		${SALIB}
     61  1.1  reinoud 
     62  1.1  reinoud ### find out what to use for libriscos
     63  1.1  reinoud RISCOS_AS=		library
     64  1.1  reinoud .include "${S}/arch/acorn32/stand/lib/Makefile.inc"
     65  1.1  reinoud LIBRISCOS=		${RISCOSLIB}
     66  1.1  reinoud 
     67  1.1  reinoud RELOC=8000
     68  1.1  reinoud # -N (OMAGIC) since we don't need a gap between text and data.
     69  1.1  reinoud LINKFLAGS=-N
     70  1.1  reinoud 
     71  1.1  reinoud ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBRISCOS}
     72  1.1  reinoud 	${LD} -o ${.TARGET} ${LINKFLAGS} -Ttext ${RELOC} ${OBJS} \
     73  1.1  reinoud 	    ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBRISCOS} ${LIBSA}
     74  1.1  reinoud 	${SIZE} ${.TARGET}
     75  1.1  reinoud 
     76  1.1  reinoud ${PROG},${RISCOSTYPE}: ${PROG}
     77  1.1  reinoud 	${OBJCOPY} --output-target=binary ${.ALLSRC} ${.TARGET}
     78  1.1  reinoud 
     79  1.1  reinoud realall: ${PROG},${RISCOSTYPE}
     80  1.1  reinoud 
     81  1.1  reinoud CLEANFILES+=	${PROG},${RISCOSTYPE}
     82  1.1  reinoud FILES+=		${PROG},${RISCOSTYPE}
     83  1.1  reinoud 
     84  1.1  reinoud .include <bsd.prog.mk>
     85