2000-03-31 16:03:02 +00:00
|
|
|
# Common defines for all of /sys/boot/pc98/
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-02-07 12:19:44 +00:00
|
|
|
BINDIR?= /boot
|
|
|
|
|
2009-09-13 11:20:17 +00:00
|
|
|
LOADER_ADDRESS?=0x200000
|
2013-12-26 11:32:39 +00:00
|
|
|
CFLAGS+= -march=i386 -ffreestanding
|
|
|
|
CFLAGS.gcc+= -mpreferred-stack-boundary=2
|
2015-08-27 23:46:42 +00:00
|
|
|
CFLAGS+= ${CFLAGS_NO_SIMD} -msoft-float
|
2012-11-10 12:42:28 +00:00
|
|
|
CFLAGS+= -Os -DPC98
|
2004-02-09 16:01:45 +00:00
|
|
|
LDFLAGS+= -nostdlib
|
2004-02-07 12:19:44 +00:00
|
|
|
|
|
|
|
# BTX components
|
|
|
|
.if exists(${.OBJDIR}/../btx)
|
|
|
|
BTXDIR= ${.OBJDIR}/../btx
|
|
|
|
.else
|
|
|
|
BTXDIR= ${.CURDIR}/../btx
|
|
|
|
.endif
|
|
|
|
BTXLDR= ${BTXDIR}/btxldr/btxldr
|
|
|
|
BTXKERN= ${BTXDIR}/btx/btx
|
|
|
|
BTXCRT= ${BTXDIR}/lib/crt0.o
|
2008-06-25 21:33:28 +00:00
|
|
|
|
2016-09-03 15:26:28 +00:00
|
|
|
# compact binary with no padding between text, data, bss
|
|
|
|
LDSCRIPT= ${SRCTOP}/sys/boot/i386/boot.ldscript
|
|
|
|
LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary
|
|
|
|
LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections
|
|
|
|
|
2008-06-25 21:33:28 +00:00
|
|
|
.include "../Makefile.inc"
|