blob: 176e32f7aa68f896f355578a04d3d2a21ec2cb43 (
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
|
# $OpenBSD: Makefile,v 1.15 2016/07/30 03:25:49 guenther Exp $
# $NetBSD: Makefile,v 1.2 1997/04/17 07:46:24 thorpej Exp $
S= ${.CURDIR}/../../../..
R=../
PROG= ofwboot
CFLAGS+= -D_STANDALONE
SRCS= Locore.c main.c ofdev.c net.c netif_of.c netudp.c
SRCS+= alloc.c cache.c hfs.c
SRCS+= boot.c conf.c cmd.c vars.c ctime.c strtol.c
.PATH: ${S}/arch/macppc/stand
SRCS+= ofwmagic.S
#CFLAGS+= -DDEBUG -DNETIF_DEBUG
CFLAGS+= -fno-pie
NOMAN=
STRIPFLAG=
BINMODE= 444
OBJCOPY?= objcopy
SAREL=
BINDIR= /usr/mdec
.PATH: ${S}/stand/boot
.PATH: ${S}/lib/libsa
.PATH: ${S}/lib/libkern/arch/powerpc ${S}/lib/libkern
SRCS+= getchar.c strlcpy.c memcpy.c strlen.c strrchr.c \
strlcat.c ashrdi3.c
SRCS+= moddi3.c
NEWVERSWHAT= "OpenFirmware Boot"
# For now...
RELOC= 20000
ENTRY= _start
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
CPPFLAGS+= -DRELOC=0x${RELOC} -DCONSPEED=57600
LIBS!= cd $(.CURDIR)/$(R); $(MAKE) libdep
${PROG}: ${OBJS} ${LIBSA} ${LIBZ}
${LD} -nopie -znorelro -N -X -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
${OBJS} ${LIBS}
.include <bsd.prog.mk>
|