blob: a149ffe4fd7c7f863f23dbc7f2a93cfc27949004 (
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
|
# $OpenBSD: Makefile,v 1.13 2012/09/01 15:10:06 pascal Exp $
# $NetBSD: Makefile,v 1.12 1997/04/17 07:27:49 thorpej Exp $
S= ${.CURDIR}/../../../..
.PATH: ${.CURDIR}/..
PROG = bootxx
SRCS = start.S bootxx.c prom.c prom_disp.S puts.c
NOMAN=
INSTALL_STRIP=
BINMODE= 444
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
CLEANFILES+= ${PROG}.sym ${PROG}.nosym ${PROG}.trunc
.PATH: ${S}/lib/libkern/arch/alpha ${S}/lib/libkern
SRCS+= bzero.c memcpy.c
DEFNS= -DPRIMARY_BOOTBLOCK
AFLAGS += -DASSEMBLER ${DEFNS} -fno-pie
CPPFLAGS += -I${.CURDIR}/../.. -I${S} ${DEFNS}
CFLAGS = -Werror -mno-fp-regs -fno-pie
${PROG}.nosym: ${PROG}.sym
cp ${PROG}.sym ${PROG}.nosym
strip ${PROG}.nosym
${PROG}: ${PROG}.nosym
objcopy --output-target=binary ${PROG}.nosym ${PROG}.trunc
dd if=${PROG}.trunc of=${PROG} obs=`expr 15 \* 512` conv=osync
# no lint here (yet?)
lint:
.include <bsd.prog.mk>
${PROG}.sym: ${OBJS}
${LD} -nopie -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS}
size ${PROG}.sym
|