update for new boot stuff
This commit is contained in:
parent
82b759ad27
commit
36079d8909
|
@ -1,5 +1,6 @@
|
||||||
# $NetBSD: Makefile,v 1.1.1.1 1995/07/25 23:12:20 chuck Exp $
|
# $NetBSD: Makefile,v 1.2 1996/05/17 20:45:48 chuck Exp $
|
||||||
|
|
||||||
SUBDIR= libsa netboot
|
SUBDIR= bugcrt libbug libsa sboot netboot bootxx bootsd bootst \
|
||||||
|
installboot prtvid wrtvid
|
||||||
|
|
||||||
.include <bsd.subdir.mk>
|
.include <bsd.subdir.mk>
|
||||||
|
|
|
@ -1,50 +1,3 @@
|
||||||
# $NetBSD: Makefile.inc,v 1.2 1996/04/12 18:35:40 chuck Exp $
|
# $NetBSD: Makefile.inc,v 1.3 1996/05/17 20:45:56 chuck Exp $
|
||||||
|
|
||||||
.if defined(SA_PROG)
|
|
||||||
|
|
||||||
# Must have S=/usr/src/sys (or equivalent)
|
|
||||||
# But note: this is w.r.t. a subdirectory
|
|
||||||
S= ${.CURDIR}/../../../..
|
|
||||||
|
|
||||||
RELOC?= 240000
|
|
||||||
DEFS?= -DSTANDALONE
|
|
||||||
INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
|
|
||||||
COPTS?= -msoft-float ${DEFS} ${DBG} ${INCL}
|
|
||||||
|
|
||||||
LIBSA?= ../libsa
|
|
||||||
SRTOBJ?= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
|
|
||||||
SRTLIB?= ${LIBSA}/libsa.a
|
|
||||||
|
|
||||||
MDEC_DIR?=/usr/mdec
|
MDEC_DIR?=/usr/mdec
|
||||||
|
|
||||||
SRCS?= ${SA_PROG}.c
|
|
||||||
OBJS?= ${SRCS:S/.c/.o/g}
|
|
||||||
|
|
||||||
CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin
|
|
||||||
|
|
||||||
# Make a copy of the executable with its exec header removed,
|
|
||||||
# and with its length padded to a multiple of 1k bytes.
|
|
||||||
# (The padding is for convenience when making tapes.)
|
|
||||||
${SA_PROG}.bin : ${SA_PROG}
|
|
||||||
cp ${SA_PROG} a.out ; strip a.out
|
|
||||||
dd if=a.out ibs=32 skip=1 of=$@ obs=1k conv=osync
|
|
||||||
-rm -f a.out
|
|
||||||
|
|
||||||
${SA_PROG} : ${OBJS} ${DPADD}
|
|
||||||
${LD} -N -T ${RELOC} -e start -o $@ \
|
|
||||||
${SRTOBJ} ${OBJS} ${LDADD} ${SRTLIB}
|
|
||||||
@size $@
|
|
||||||
|
|
||||||
.if !target(clean)
|
|
||||||
clean:
|
|
||||||
-rm -f a.out [Ee]rrs mklog core *.core
|
|
||||||
-rm -f ${CLEANFILES} *.o
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if !target(install)
|
|
||||||
install: ${SA_PROG}.bin
|
|
||||||
install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
||||||
${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.endif
|
|
||||||
|
|
Loading…
Reference in New Issue