diff options
Diffstat (limited to 'sys/arch/sparc/stand/boot')
-rw-r--r-- | sys/arch/sparc/stand/boot/Makefile.compressed | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sys/arch/sparc/stand/boot/Makefile.compressed b/sys/arch/sparc/stand/boot/Makefile.compressed new file mode 100644 index 00000000000..cfbb4b9eba1 --- /dev/null +++ b/sys/arch/sparc/stand/boot/Makefile.compressed @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.2 1995/09/30 21:43:38 pk Exp $ + +S= ${.CURDIR}/../../../.. +R= .. +.PATH: ${.CURDIR}/${R} +PROG= boot +SRCS= srt0.S boot.c promdev.c dvma.c bootnet.c netif_sun.c conf.c version.c +INSTALL_STRIP= +NOMAN= 1 +BINDIR= /usr/mdec + +# include "library" defines and make rules +KERN_AS= library +KERNDST= ${.CURDIR}/${__objdir} +.include "${S}/lib/libkern/Makefile.inc" +LIBKERN= ${KERNLIB} + +Z_AS= library +ZDST= ${.CURDIR}/${__objdir} +.include "${S}/lib/libz/Makefile.inc" +LIBZ= ${ZLIB} + +SA_AS= library +SADST= ${.CURDIR}/${__objdir} +SAREL= +SA_ZLIB= yes +.include "${S}/lib/libsa/Makefile.inc" +LIBSA= ${SALIB} + +LIBS= ${LIBSA} ${LIBKERN} ${LIBZ} + +# ${PROG} overloads the normal rule in bsd.prog.mk + +${PROG}: ${OBJS} ${LIBS} + ${LD} -N -T ${RELOC} -e start ${OBJS} \ + -nostdlib -L ${.CURDIR}/${__objdir} -lsa -lkern -lz + # convert to Sun magic + @size a.out + (echo -n 01 | tr 01 '\01\03'; tail +3c a.out) > ${.TARGET} + @rm a.out + +.include <bsd.prog.mk> |