Home | History | Annotate | Line # | Download | only in stand
Makefile.buildboot revision 1.12
      1  1.12   simonb #	$NetBSD: Makefile.buildboot,v 1.12 2000/12/16 04:20:24 simonb Exp $
      2   1.1  thorpej 
      3   1.1  thorpej S=		${.CURDIR}/../../../..
      4   1.1  thorpej 
      5   1.1  thorpej .PATH: ${.CURDIR}/../common
      6   1.1  thorpej 
      7   1.1  thorpej PROG=		${PROGAOUT}.lif
      8   1.1  thorpej 
      9   1.1  thorpej SRCS=		${COMMONSOURCE} ${DRIVERSOURCE} ${PROGSOURCE}
     10   1.5    lukem MKMAN=		no
     11   1.3  thorpej STRIPFLAG=
     12   1.1  thorpej BINMODE=	444
     13   1.1  thorpej 
     14  1.10  frueauf .PHONY: machine-links
     15  1.10  frueauf beforedepend: machine-links
     16  1.10  frueauf # ${MACHINE} then ${MACHINE_ARCH}
     17  1.10  frueauf machine-links:
     18  1.10  frueauf 	-rm -f machine && \
     19  1.10  frueauf 		ln -s $S/arch/hp300/include machine
     20  1.10  frueauf 	-rm -f hp300 && \
     21  1.10  frueauf 		ln -s $S/arch/hp300/include hp300
     22  1.10  frueauf CLEANFILES+=machine hp300
     23  1.10  frueauf 
     24  1.11  mycroft realall: machine-links ${PROG}
     25  1.10  frueauf 
     26   1.1  thorpej CLEANFILES+=	${PROGAOUT} vers.c vers.o
     27   1.1  thorpej 
     28  1.10  frueauf CPPFLAGS+=	-I${.CURDIR}/../../.. -I${.CURDIR}/../../../..  -I${.OBJDIR}
     29   1.9  thorpej CFLAGS=		-Os -msoft-float
     30   1.1  thorpej 
     31   1.8  thorpej CPPFLAGS+=	-DBOOT_AOUT
     32   1.8  thorpej #CPPFLAGS+=	-DBOOT_ELF
     33   1.8  thorpej 
     34  1.12   simonb SRCS+=		vers.c
     35  1.12   simonb CLEANFILES+=	vers.c
     36  1.12   simonb 
     37  1.12   simonb .PHONY: vers.c
     38  1.12   simonb vers.c: ${.CURDIR}/version
     39  1.12   simonb 	sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version hp300 ${NEWVERSWHAT}
     40  1.12   simonb 
     41   1.1  thorpej ${PROG}: ${PROGAOUT} ${MKBOOT_PROG}
     42   1.1  thorpej 	${MKBOOT_PROG} ${PROGAOUT} ${PROG}
     43   1.1  thorpej 
     44   1.1  thorpej .include <bsd.prog.mk>
     45   1.1  thorpej 
     46   1.7  thorpej ### find out what to use for libkern
     47   1.7  thorpej KERN_AS=	library
     48   1.7  thorpej .include "${S}/lib/libkern/Makefile.inc"
     49   1.7  thorpej LIBKERN=	${KERNLIB}
     50   1.7  thorpej 
     51   1.2  thorpej ### find out what to use for libz
     52   1.2  thorpej Z_AS=		library
     53   1.2  thorpej .include "${S}/lib/libz/Makefile.inc"
     54   1.2  thorpej LIBZ=		${ZLIB}
     55   1.2  thorpej 
     56   1.1  thorpej ### find out what to use for libsa
     57   1.1  thorpej SA_AS=		library
     58   1.8  thorpej SAMISCMAKEFLAGS+="SA_USE_CREAD=yes"
     59   1.8  thorpej SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
     60   1.1  thorpej .include "${S}/lib/libsa/Makefile.inc"
     61   1.1  thorpej LIBSA=		${SALIB}
     62   1.1  thorpej 
     63   1.7  thorpej ${PROGAOUT}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
     64  1.12   simonb 	${LD} -N -Ttext ${RELOC} -e begin -o ${PROGAOUT} \
     65  1.12   simonb 	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
     66   1.1  thorpej 	@size ${PROGAOUT}
     67   1.1  thorpej 	@echo ${PROGAOUT} total size should not exceed 1044480 bytes
     68