]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/i386/Makefile.inc
Merge compiler-rt trunk r321414 to contrib/compiler-rt.
[FreeBSD/FreeBSD.git] / stand / i386 / Makefile.inc
1 # Common defines for all of stand/i386/
2 #
3 # $FreeBSD$
4
5 LOADER_ADDRESS?=0x200000
6 LDFLAGS+=       -nostdlib
7
8 # BTX components
9 BTXDIR=         ${BOOTOBJ}/i386/btx
10 BTXLDR=         ${BTXDIR}/btxldr/btxldr
11 BTXKERN=        ${BTXDIR}/btx/btx
12 BTXCRT=         ${BTXDIR}/lib/crt0.o
13
14 BTXSRC=         ${BOOTSRC}/i386/btx
15 BTXLIB=         ${BTXSRC}/lib
16
17 # compact binary with no padding between text, data, bss
18 LDSCRIPT=       ${BOOTSRC}/i386/boot.ldscript
19 # LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary
20 # LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections
21 LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary
22 LD_FLAGS_BIN=-static -N --gc-sections
23
24 .if ${MACHINE_CPUARCH} == "amd64"
25 DO32=1
26 .endif
27
28 .if defined(LOADER_FIREWIRE_SUPPORT)
29 MK_LOADER_FIREWIRE=yes
30 .warning "LOADER_FIREWIRE_SUPPORT deprecated, please move to WITH_LOADER_FIREWIRE"
31 .endif
32
33 .include "../Makefile.inc"