Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/pc98/Makefile.inc
# Common defines for all of /sys/boot/pc98/ | # Common defines for all of /sys/boot/pc98/ | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
BINDIR?= /boot | BINDIR?= /boot | ||||
LOADER_ADDRESS?=0x200000 | LOADER_ADDRESS?=0x200000 | ||||
CFLAGS+= -march=i386 -ffreestanding | CFLAGS+= -march=i386 -ffreestanding | ||||
CFLAGS.gcc+= -mpreferred-stack-boundary=2 | CFLAGS.gcc+= -mpreferred-stack-boundary=2 | ||||
CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float | CFLAGS+= ${CFLAGS_NO_SIMD} -msoft-float | ||||
CFLAGS+= -Os -DPC98 | CFLAGS+= -Os -DPC98 | ||||
LDFLAGS+= -nostdlib | LDFLAGS+= -nostdlib | ||||
# BTX components | # BTX components | ||||
.if exists(${.OBJDIR}/../btx) | .if exists(${.OBJDIR}/../btx) | ||||
BTXDIR= ${.OBJDIR}/../btx | BTXDIR= ${.OBJDIR}/../btx | ||||
.else | .else | ||||
BTXDIR= ${.CURDIR}/../btx | BTXDIR= ${.CURDIR}/../btx | ||||
.endif | .endif | ||||
BTXLDR= ${BTXDIR}/btxldr/btxldr | BTXLDR= ${BTXDIR}/btxldr/btxldr | ||||
BTXKERN= ${BTXDIR}/btx/btx | BTXKERN= ${BTXDIR}/btx/btx | ||||
BTXCRT= ${BTXDIR}/lib/crt0.o | BTXCRT= ${BTXDIR}/lib/crt0.o | ||||
.include "../Makefile.inc" | .include "../Makefile.inc" |