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 vbe.c amd64_tramp.S spinconsole.c 13 14.PATH: ${SYSDIR}/teken 15SRCS+= teken.c 16 17.include "${BOOTSRC}/veriexec.mk" 18 19BOOT_COMCONSOLE_PORT?= 0x3f8 20CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT} 21 22BOOT_COMCONSOLE_SPEED?= 9600 23CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED} 24 25.ifdef(BOOT_BIOSDISK_DEBUG) 26# Make the disk code more talkative 27CFLAGS+= -DDISK_DEBUG 28.endif 29 30# terminal emulation 31.if ${BOOT_FRAMEBUFFER_MODE:Uno} == "yes" 32CFLAGS.vidconsole.c+= -DFRAMEBUFFER_MODE 33.endif 34CFLAGS.vidconsole.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite 35CFLAGS.teken.c+= -I${SRCTOP}/sys/teken 36CFLAGS.bootinfo.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite 37CFLAGS.vbe.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite 38 39# XXX: make alloca() useable 40CFLAGS+= -Dalloca=__builtin_alloca 41 42CFLAGS+= -I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \ 43 -I${LDRSRC} -I${BOOTSRC}/i386/common \ 44 -I${SYSDIR}/contrib/dev/acpica/include 45 46# Handle FreeBSD specific %b and %D printf format specifiers 47CFLAGS+= ${FORMAT_EXTENSIONS} 48 49.include <bsd.lib.mk> 50