a4a62f5d1f
- do not use PROG for what's not a real C program, - use sys.mk transformation rules where possible, - only create the "machine" symlink on AMD64, - removed MAINTAINER lines in individual makefiles, - added the LIBSTAND defitinion to <bsd.libnames.mk>, - somewhat better contents in .depend files. Tested on: i386, amd64 Prodded by: bde
29 lines
548 B
Makefile
29 lines
548 B
Makefile
# Common defines for all of /sys/boot/i386/
|
|
#
|
|
# $FreeBSD$
|
|
|
|
BINDIR?= /boot
|
|
|
|
LOADER_ADDRESS?=0x200000
|
|
CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2
|
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
.MAKEFLAGS: MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true
|
|
.endif
|
|
|
|
.if defined(REALLY_AMD64)
|
|
CFLAGS+= -m32
|
|
LDFLAGS+= -m elf_i386_fbsd
|
|
AFLAGS+= --32
|
|
.endif
|
|
|
|
# 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
|