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