NetBSD/sys/arch/hp300/stand/Makefile.buildboot

51 lines
1.2 KiB
Makefile
Raw Normal View History

1999-12-15 00:38:31 +03:00
# $NetBSD: Makefile.buildboot,v 1.9 1999/12/14 21:38:31 thorpej Exp $
S= ${.CURDIR}/../../../..
.PATH: ${.CURDIR}/../common
PROG= ${PROGAOUT}.lif
SRCS= ${COMMONSOURCE} ${DRIVERSOURCE} ${PROGSOURCE}
MKMAN= no
1997-04-17 11:27:46 +04:00
STRIPFLAG=
BINMODE= 444
CLEANFILES+= ${PROGAOUT} vers.c vers.o
CPPFLAGS+= -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
1999-12-15 00:38:31 +03:00
CFLAGS= -Os -msoft-float
CPPFLAGS+= -DBOOT_AOUT
#CPPFLAGS+= -DBOOT_ELF
${PROG}: ${PROGAOUT} ${MKBOOT_PROG}
${MKBOOT_PROG} ${PROGAOUT} ${PROG}
.include <bsd.prog.mk>
1999-11-14 00:17:56 +03:00
### find out what to use for libkern
KERN_AS= library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN= ${KERNLIB}
### find out what to use for libz
Z_AS= library
.include "${S}/lib/libz/Makefile.inc"
LIBZ= ${ZLIB}
### find out what to use for libsa
SA_AS= library
SAMISCMAKEFLAGS+="SA_USE_CREAD=yes"
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
.include "${S}/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}
1999-11-14 00:17:56 +03:00
${PROGAOUT}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
sh ${.CURDIR}/../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
${COMPILE.c} vers.c
${LD} -N -T ${RELOC} -e begin -o ${PROGAOUT} \
1999-11-14 00:17:56 +03:00
${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
@size ${PROGAOUT}
@echo ${PROGAOUT} total size should not exceed 1044480 bytes