xref: /freebsd/stand/i386/libi386/Makefile (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
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
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
32.if ${BOOT_FRAMEBUFFER_MODE:Uno} == "yes"
33CFLAGS.vidconsole.c+= -DFRAMEBUFFER_MODE
34.endif
35CFLAGS.vidconsole.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite
36CFLAGS.teken.c+= -I${SRCTOP}/sys/teken
37CFLAGS.bootinfo.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite
38CFLAGS.vbe.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite
39
40# XXX: make alloca() useable
41CFLAGS+= -Dalloca=__builtin_alloca
42
43CFLAGS+=	-I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \
44		-I${LDRSRC} -I${BOOTSRC}/i386/common \
45		-I${SYSDIR}/cddl/boot/zfs \
46		-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
47		-I${SYSDIR}/contrib/dev/acpica/include
48
49# Handle FreeBSD specific %b and %D printf format specifiers
50CFLAGS+= ${FORMAT_EXTENSIONS}
51
52.include <bsd.lib.mk>
53