xref: /netbsd-src/sys/arch/hp300/stand/Makefile.buildboot (revision 4d7e773266e3c3f48566c86c0ad52d51c6454fd1)
1#	$NetBSD: Makefile.buildboot,v 1.4 1997/05/09 07:50:30 mycroft Exp $
2
3S=		${.CURDIR}/../../../..
4
5.PATH: ${.CURDIR}/../common
6
7PROG=		${PROGAOUT}.lif
8
9SRCS=		${COMMONSOURCE} ${DRIVERSOURCE} ${PROGSOURCE}
10NOMAN=
11STRIPFLAG=
12BINMODE=	444
13
14CLEANFILES+=	${PROGAOUT} vers.c vers.o
15
16CPPFLAGS+=	-I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
17CFLAGS=		-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 libkern
25KERN_AS=	library
26.include "${S}/lib/libkern/Makefile.inc"
27LIBKERN=	${KERNLIB}
28
29### find out what to use for libz
30Z_AS=		library
31.include "${S}/lib/libz/Makefile.inc"
32LIBZ=		${ZLIB}
33
34### find out what to use for libsa
35SA_AS=		library
36SAMISCMAKEFLAGS= SA_USE_CREAD=yes
37.include "${S}/lib/libsa/Makefile.inc"
38LIBSA=		${SALIB}
39
40${PROGAOUT}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
41	sh ${.CURDIR}/../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
42	${COMPILE.c} vers.c
43	${LD} -N -T ${RELOC} -e begin -o ${PROGAOUT} \
44	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
45	@size ${PROGAOUT}
46	@echo ${PROGAOUT} total size should not exceed 1044480 bytes
47