]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/pc98/Makefile.inc
Re-sync loader.mk and ficl.mk to where they should be
[FreeBSD/FreeBSD.git] / stand / pc98 / Makefile.inc
1 # Common defines for all of /stand/pc98/
2 #
3 # $FreeBSD$
4
5 BINDIR?=        /boot
6
7 LOADER_ADDRESS?=0x200000
8 CFLAGS+=        -march=i386 -ffreestanding
9 CFLAGS.gcc+=    -mpreferred-stack-boundary=2
10 CFLAGS+=        ${CFLAGS_NO_SIMD} -msoft-float
11 CFLAGS+=        -Os -DPC98
12 LDFLAGS+=       -nostdlib
13
14 # BTX components
15 .if exists(${.OBJDIR}/../btx)
16 BTXDIR=         ${.OBJDIR}/../btx
17 .else
18 BTXDIR=         ${.CURDIR}/../btx
19 .endif
20 BTXLDR=         ${BTXDIR}/btxldr/btxldr
21 BTXKERN=        ${BTXDIR}/btx/btx
22 BTXCRT=         ${BTXDIR}/lib/crt0.o
23
24 # compact binary with no padding between text, data, bss
25 LDSCRIPT=       ${SRCTOP}/stand/i386/boot.ldscript
26 LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary
27 LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections
28
29 .include "../Makefile.inc"