Makefile.inc revision 329145
1# Common defines for all of /stand/pc98/ 2# 3# $FreeBSD: stable/11/stand/pc98/Makefile.inc 329145 2018-02-12 01:08:44Z kevans $ 4 5BINDIR?= /boot 6 7LOADER_ADDRESS?=0x200000 8CFLAGS+= -march=i386 -ffreestanding 9CFLAGS.gcc+= -mpreferred-stack-boundary=2 10CFLAGS+= ${CFLAGS_NO_SIMD} -msoft-float 11CFLAGS+= -Os -DPC98 12LDFLAGS+= -nostdlib 13 14# BTX components 15.if exists(${.OBJDIR}/../btx) 16BTXDIR= ${.OBJDIR}/../btx 17.else 18BTXDIR= ${.CURDIR}/../btx 19.endif 20BTXLDR= ${BTXDIR}/btxldr/btxldr 21BTXKERN= ${BTXDIR}/btx/btx 22BTXCRT= ${BTXDIR}/lib/crt0.o 23 24# compact binary with no padding between text, data, bss 25LDSCRIPT= ${SRCTOP}/stand/i386/boot.ldscript 26LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary 27LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections 28 29.include "../Makefile.inc" 30