blob: 209edc213d12332e7c2d479af66ef83345e5a071 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# $OpenBSD: Makefile,v 1.3 2013/10/29 22:13:28 miod Exp $
# $NetBSD: Makefile,v 1.9 2013/01/22 15:48:40 tsutsui Exp $
# @(#)Makefile 8.2 (Berkeley) 8/15/93
NOMAN= # defined
S= ${.CURDIR}/../../../..
CPPFLAGS+= -nostdinc -D_STANDALONE
CPPFLAGS+= -I${.CURDIR} -I${.OBJDIR} -I${S} -I${S}/arch
CPPFLAGS+= -DSUPPORT_DISK
CPPFLAGS+= -DSUPPORT_ETHERNET
CPPFLAGS+= -DSUPPORT_BOOTP
#CPPFLAGS+= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG
#CPPFLAGS+= -DRPC_DEBUG -DRARP_DEBUG -DNET_DEBUG -DDEBUG -DPARANOID
OBJCOPY?= objcopy
TEXTADDR= 0x700000 # 7MB
LDSCRIPT= ${.CURDIR}/boot.ldscript
LINKFORMAT= -static -N -Ttext ${TEXTADDR} -T ${LDSCRIPT} \
--warn-common -nopie
SRCS= locore.S
SRCS+= init_main.c
SRCS+= fault.c setjmp.S
SRCS+= bcd.c
SRCS+= devopen.c
SRCS+= conf.c
SRCS+= getline.c parse.c
SRCS+= boot.c
SRCS+= cons.c prf.c awaitkey.c
SRCS+= sio.c
SRCS+= bmc.c bmd.c font.c kbd.c
SRCS+= sc.c sd.c
SRCS+= ufs_disksubr.c
# netboot support
SRCS+= if_le.c lance.c getsecs.c
SRCS+= dev_net.c
PROG= boot
### find out what to use for libkern
.PATH: ${S}/lib/libkern
SRCS+= memcpy.c strlen.c
SRCS+= muldi3.c negdi2.c ashrdi3.c
### find out what to use for libsa
.PATH: ${S}/lib/libsa
SRCS+= strtol.c
SAREL=
SADST= .
USE_LOADFILE= yes
.include "${S}/lib/libsa/Makefile.inc"
LIBS= ${SALIB} ${ZLIB} ${KERNLIB}
${PROG}: ${LDSCRIPT} ${OBJS} ${LIBS}
${LD} ${LINKFORMAT} -x -o ${PROG}.elf ${OBJS} ${LIBS}
${OBJCOPY} -S -O a.out-m88k-openbsd --impure ${PROG}.elf ${PROG}
CLEANFILES+= ${PROG}.elf
.if ${MACHINE} != "luna88k"
.if !make(obj)
.BEGIN:
@([ -h machine ] || ln -s ${.CURDIR}/../../include machine)
@([ -h m88k ] || ln -s ${.CURDIR}/../../../m88k/include m88k)
.endif
.endif
.include <bsd.prog.mk>
|