blob: 75c87e7a86c9b58454b330a4daf4791eeea552f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $OpenBSD: Makefile,v 1.2 2000/10/04 04:54:38 bjc Exp $
# $NetBSD: Makefile,v 1.2 1999/10/23 14:40:39 ragge Exp $
S=${.CURDIR}/../../../../
PROG= xxboot
LINKS= ${BINDIR}/xxboot ${BINDIR}/raboot
LINKS+= ${BINDIR}/xxboot ${BINDIR}/rdboot
LINKS+= ${BINDIR}/xxboot ${BINDIR}/sdboot
LINKS+= ${BINDIR}/xxboot ${BINDIR}/hpboot
SRCS= start.s bootxx.c romread.s urem.s udiv.s str.s
STRIPFLAG=
CPPFLAGS+=-D_STANDALONE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS \
-DLIBSA_NO_TWIDDLE -DLIBSA_SINGLE_DEVICE=rom \
-DLIBSA_SINGLE_FILESYSTEM=ufs
BINDIR= /usr/mdec
NOMAN= 1
SAREL=
SA_AS= library
.include "${S}/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}
${PROG}: ${OBJS} ${LIBSA}
ld -N -Ttext 100000 -o a.out ${OBJS} ${LIBSA}
strip a.out
size a.out
dd if=a.out of=${PROG} bs=32 skip=1
# rm -f a.out
clean::
rm -f a.out [Ee]rrs mklog core *.core ${PROG} ${OBJS} ${LOBJS} \
${CLEANFILES}
.include <bsd.prog.mk>
|