1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
2017-10-30 23:14:37 +00:00
|
|
|
|
|
|
|
.include <bsd.init.mk>
|
2017-10-16 03:59:52 +00:00
|
|
|
|
1998-10-21 20:07:57 +00:00
|
|
|
LIB= i386
|
1998-08-21 03:17:42 +00:00
|
|
|
|
2018-12-30 09:35:47 +00:00
|
|
|
SRCS= bio.c biosacpi.c biosdisk.c biosmem.c biospnp.c \
|
2003-05-01 03:56:30 +00:00
|
|
|
biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \
|
|
|
|
comconsole.c devicename.c elf32_freebsd.c \
|
2017-06-16 20:08:44 +00:00
|
|
|
elf64_freebsd.c multiboot.c multiboot_tramp.S relocater_tramp.S \
|
2018-11-26 19:29:18 +00:00
|
|
|
i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.S \
|
2020-12-21 05:31:16 +00:00
|
|
|
time.c vidconsole.c vbe.c amd64_tramp.S spinconsole.c
|
1998-08-21 03:17:42 +00:00
|
|
|
|
2019-09-05 22:15:50 +00:00
|
|
|
.PATH: ${SYSDIR}/teken
|
|
|
|
SRCS+= teken.c
|
|
|
|
|
2021-04-30 17:53:45 +00:00
|
|
|
.include "${BOOTSRC}/veriexec.mk"
|
|
|
|
|
1999-01-10 14:48:05 +00:00
|
|
|
BOOT_COMCONSOLE_PORT?= 0x3f8
|
|
|
|
CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
|
|
|
|
|
|
|
|
BOOT_COMCONSOLE_SPEED?= 9600
|
|
|
|
CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
|
|
|
|
|
2000-08-03 09:14:02 +00:00
|
|
|
.ifdef(BOOT_BIOSDISK_DEBUG)
|
1998-08-21 03:17:42 +00:00
|
|
|
# Make the disk code more talkative
|
2000-08-03 09:14:02 +00:00
|
|
|
CFLAGS+= -DDISK_DEBUG
|
|
|
|
.endif
|
1998-08-21 03:17:42 +00:00
|
|
|
|
2019-09-05 22:15:50 +00:00
|
|
|
# terminal emulation
|
2020-12-21 05:31:16 +00:00
|
|
|
.if ${BOOT_FRAMEBUFFER_MODE:Uno} == "yes"
|
|
|
|
CFLAGS.vidconsole.c+= -DFRAMEBUFFER_MODE
|
|
|
|
.endif
|
|
|
|
CFLAGS.vidconsole.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite
|
2019-09-05 22:15:50 +00:00
|
|
|
CFLAGS.teken.c+= -I${SRCTOP}/sys/teken
|
2020-12-21 05:31:16 +00:00
|
|
|
CFLAGS.bootinfo.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite
|
|
|
|
CFLAGS.vbe.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite
|
1998-12-22 11:51:25 +00:00
|
|
|
|
2005-12-19 09:00:11 +00:00
|
|
|
# XXX: make alloca() useable
|
|
|
|
CFLAGS+= -Dalloca=__builtin_alloca
|
|
|
|
|
2017-10-30 23:14:37 +00:00
|
|
|
CFLAGS+= -I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \
|
|
|
|
-I${LDRSRC} -I${BOOTSRC}/i386/common \
|
2017-11-10 23:54:58 +00:00
|
|
|
-I${SYSDIR}/contrib/dev/acpica/include
|
2002-05-10 00:53:45 +00:00
|
|
|
|
2015-01-28 18:36:33 +00:00
|
|
|
# Handle FreeBSD specific %b and %D printf format specifiers
|
|
|
|
CFLAGS+= ${FORMAT_EXTENSIONS}
|
2014-07-22 04:37:47 +00:00
|
|
|
|
2004-02-07 23:30:45 +00:00
|
|
|
.include <bsd.lib.mk>
|