blob: 069526e3e7d89eeed1d39ac60bbf2548f30f6a76 (
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
|
# $OpenBSD: Makefile,v 1.7 2013/01/17 12:25:11 jsing Exp $
MAN= biosboot.8
.if ${MACHINE} == "amd64"
S= ${.CURDIR}/../../../..
SADIR= ${.CURDIR}/..
PROG= biosboot
SRCS= biosboot.S
LD=ld
LDFLAGS=-nostdlib -Ttext 0 -N -x -Bstatic -nopie
LDFLAGS+=-melf_i386 -L/usr/libdata
INSTALL_STRIP=
${PROG}: $(OBJS)
@rm -f $(PROG)
$(LD) $(LDFLAGS) -o $(PROG) $(OBJS)
@size $(PROG)
CPPFLAGS+=-DLOADADDR=$(LOADADDR) -DLINKADDR=$(LINKADDR) -DBOOTMAGIC=$(BOOTMAGIC)
CPPFLAGS+=${DEBUGFLAGS}
CFLAGS+=-fno-pie
AFLAGS+=-m32 # -Wa,-a
AFLAGS+=-fno-pie
.else
NOPROG=
.endif
.include <bsd.prog.mk>
|