Makefile.buildboot revision 1.6       1 #	$NetBSD: Makefile.buildboot,v 1.6 1999/11/11 20:27:42 thorpej Exp $
      2 
      3 S=		${.CURDIR}/../../../..
      4 
      5 .PATH: ${.CURDIR}/../common
      6 
      7 PROG=		${PROGAOUT}.lif
      8 
      9 SRCS=		${COMMONSOURCE} ${DRIVERSOURCE} ${PROGSOURCE}
     10 MKMAN=		no
     11 STRIPFLAG=
     12 BINMODE=	444
     13 
     14 CLEANFILES+=	${PROGAOUT} vers.c vers.o
     15 
     16 CPPFLAGS+=	-I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
     17 CFLAGS=		-O3 -msoft-float
     18 
     19 ${PROG}: ${PROGAOUT} ${MKBOOT_PROG}
     20 	${MKBOOT_PROG} ${PROGAOUT} ${PROG}
     21 
     22 .include <bsd.prog.mk>
     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
     32 .include "${S}/lib/libsa/Makefile.inc"
     33 LIBSA=		${SALIB}
     34 
     35 ${PROGAOUT}: ${OBJS} ${LIBSA} ${LIBZ}
     36 	sh ${.CURDIR}/../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
     37 	${COMPILE.c} vers.c
     38 	${LD} -N -T ${RELOC} -e begin -o ${PROGAOUT} \
     39 	    ${OBJS} vers.o ${LIBSA} ${LIBZ}
     40 	@size ${PROGAOUT}
     41 	@echo ${PROGAOUT} total size should not exceed 1044480 bytes
     42