blob: 29479c96489f34b6355b6a6ba36059898b803e38 (
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
38
39
40
41
42
43
44
45
46
47
48
49
|
# $OpenBSD: Makefile,v 1.4 2006/11/12 19:37:01 deraadt Exp $
PROG= boot
SRCS= srt0.S conf.c devs.c getsecs.c scifcons.c delay.c
LDFLAGS=-nostdlib -Ttext 0x8ff00000 -N -x -Bstatic -e start
OBJCOPY?=objcopy
INSTALL_STRIP=
S= ${.CURDIR}/../../../..
CPPFLAGS+=-D_STANDALONE
CPPFLAGS+=-DSH4
CPPFLAGS+=-nostdinc -I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/.. -I${S}
CPPFLAGS+=-DLOADADDRESS=0x8ff00000
CFLAGS+=-m4-nofpu
.PATH: ${S}/stand/boot
SRCS+= boot.c cmd.c vars.c bootarg.c
SAREL=
SA_ZLIB=
USE_LOADFILE=
.PATH: ${S}/lib/libsa
SRCS+= ctime.c strtol.c
.include "${S}/lib/libsa/Makefile.inc"
DPADD+= $(SALIB)
LDADD+= $(SALIB)
KERN_AS?= library
.include "${S}/lib/libkern/Makefile.inc"
DPADD+= $(KERNLIB)
LDADD+= $(KERNLIB)
Z_AS?= library
.include "${S}/lib/libz/Makefile.inc"
DPADD+= $(ZLIB)
LDADD+= $(ZLIB)
LIBGCC!=${CC} -print-libgcc-file-name
LDADD+= $(LIBGCC)
${PROG}: ${OBJS} ${DPADD}
${LD} -o ${PROG}.sym ${LDFLAGS} \
-Map ${PROG}.map -cref ${OBJS} ${LDADD}
${OBJCOPY} -O binary ${PROG}.sym ${PROG}
NOMAN=
.include <bsd.prog.mk>
|