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