summaryrefslogtreecommitdiffstats
path: root/stand/pc98/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'stand/pc98/Makefile.inc')
-rw-r--r--stand/pc98/Makefile.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/stand/pc98/Makefile.inc b/stand/pc98/Makefile.inc
new file mode 100644
index 0000000..d766303
--- /dev/null
+++ b/stand/pc98/Makefile.inc
@@ -0,0 +1,29 @@
+# Common defines for all of /stand/pc98/
+#
+# $FreeBSD$
+
+BINDIR?= /boot
+
+LOADER_ADDRESS?=0x200000
+CFLAGS+= -march=i386 -ffreestanding
+CFLAGS.gcc+= -mpreferred-stack-boundary=2
+CFLAGS+= ${CFLAGS_NO_SIMD} -msoft-float
+CFLAGS+= -Os -DPC98
+LDFLAGS+= -nostdlib
+
+# 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
+
+# compact binary with no padding between text, data, bss
+LDSCRIPT= ${SRCTOP}/stand/i386/boot.ldscript
+LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary
+LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections
+
+.include "../Makefile.inc"
OpenPOWER on IntegriCloud