1# $FreeBSD$ 2 3.include <bsd.init.mk> 4 5LIB= i386 6 7SRCS= bio.c biosacpi.c biosdisk.c biosmem.c biospnp.c \ 8 biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \ 9 comconsole.c devicename.c elf32_freebsd.c \ 10 elf64_freebsd.c multiboot.c multiboot_tramp.S relocater_tramp.S \ 11 i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.S \ 12 time.c vidconsole.c amd64_tramp.S spinconsole.c 13.PATH: ${ZFSSRC} 14SRCS+= devicename_stubs.c 15CFLAGS+= -I${ZFSSRC} 16 17.PATH: ${SYSDIR}/teken 18SRCS+= teken.c 19 20BOOT_COMCONSOLE_PORT?= 0x3f8 21CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT} 22 23BOOT_COMCONSOLE_SPEED?= 9600 24CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED} 25 26.ifdef(BOOT_BIOSDISK_DEBUG) 27# Make the disk code more talkative 28CFLAGS+= -DDISK_DEBUG 29.endif 30 31# terminal emulation 32CFLAGS.vidconsole.c+= -I${SRCTOP}/sys/teken 33CFLAGS.teken.c+= -I${SRCTOP}/sys/teken 34 35# XXX: make alloca() useable 36CFLAGS+= -Dalloca=__builtin_alloca 37 38CFLAGS+= -I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \ 39 -I${LDRSRC} -I${BOOTSRC}/i386/common \ 40 -I${SYSDIR}/contrib/dev/acpica/include 41 42# Handle FreeBSD specific %b and %D printf format specifiers 43CFLAGS+= ${FORMAT_EXTENSIONS} 44 45.include <bsd.lib.mk> 46