NetBSD/sys/arch/sparc/stand/Makefile

74 lines
1.4 KiB
Makefile
Raw Normal View History

1995-06-27 03:26:57 +04:00
# $NetBSD: Makefile,v 1.6 1995/06/26 23:26:57 pk Exp $
1994-02-26 13:57:09 +03:00
RELOC_SUN4= 240000
RELOC_SUN4C= 340000
RELOC_SUN4M= 440000
RELOC?= ${RELOC_SUN4C}
1994-02-26 13:57:09 +03:00
DEFS= -DSTANDALONE
1994-02-26 13:57:09 +03:00
CFLAGS= -O2 ${INCPATH} ${DEFS}
1994-07-01 14:46:55 +04:00
SRCS= boot.c filesystem.c promdev.c version.c
XXSRCS= bootxx.c promdev.c
1994-02-26 13:57:09 +03:00
S= ${.CURDIR}/../../..
.PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH: ${S}/stand ${S}/lib/libsa
INCPATH=-I${.CURDIR} -I${S}/arch -I${S} -I${S}/lib/libsa
1994-02-26 13:57:09 +03:00
1995-06-27 03:26:57 +04:00
KERNREL=
### find out what to use for libkern and libsa
1994-02-26 13:57:09 +03:00
.include "$S/lib/libkern/Makefile.inc"
LIBKERN= ${KERNLIB}
.include "$S/lib/libsa/Makefile.inc"
LIBSA= ${SA_LIB}
LIBS= ${LIBSA} ${LIBKERN}
BOOTS= boot bootxx
ALL= ${BOOTS} installboot
1994-02-26 13:57:09 +03:00
1994-11-26 02:09:34 +03:00
all: ${ALL}
1994-02-26 13:57:09 +03:00
${BOOTS}: ${LIBS} .NOTMAIN
1994-02-26 13:57:09 +03:00
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
XXOBJS= ${XXSRCS:N*.h:R:S/$/.o/g}
1994-02-26 13:57:09 +03:00
# depend on DEFS
srt0.o: Makefile
1994-02-26 13:57:09 +03:00
# startups
srt0.o: ${.CURDIR}/srt0.S
${CC} ${INCPATH} ${DEFS} -c ${.CURDIR}/srt0.S
# new boot
boot: srt0.o ${OBJS} ${LIBS} fixhdr
${LD} -N -T ${RELOC} -e start srt0.o ${OBJS} ${LIBS} -o $@
${.OBJDIR}/fixhdr $@
@size $@
1994-02-26 13:57:09 +03:00
bootxx: srt0.o ${XXOBJS} ${LIBS} fixhdr
${LD} -N -T ${RELOC} -e start srt0.o ${XXOBJS} ${LIBS} -o $@
${.OBJDIR}/fixhdr $@
@size $@
1994-02-26 13:57:09 +03:00
installboot: ${.CURDIR}/installboot.c
${CC} ${CFLAGS} -o installboot ${.CURDIR}/installboot.c
# utilities
fixhdr: fixhdr.c
${CC} -o fixhdr ${.CURDIR}/fixhdr.c
1995-06-27 03:26:57 +04:00
clean::
1994-02-26 13:57:09 +03:00
rm -f *.o errs make.out
rm -f a.out boot cat ls fixhdr
1994-11-26 02:09:34 +03:00
.include <bsd.prog.mk>