xref: /freebsd/stand/i386/libi386/Makefile (revision b9f654b163bce26de79705e77b872427c9f2afa1)
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	smbios.c time.c vidconsole.c amd64_tramp.S spinconsole.c
13.PATH:	${ZFSSRC}
14SRCS+=  devicename_stubs.c
15CFLAGS+= -I${ZFSSRC}
16
17BOOT_COMCONSOLE_PORT?= 0x3f8
18CFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
19
20BOOT_COMCONSOLE_SPEED?= 9600
21CFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
22
23.ifdef(BOOT_BIOSDISK_DEBUG)
24# Make the disk code more talkative
25CFLAGS+= -DDISK_DEBUG
26.endif
27
28.if !defined(BOOT_HIDE_SERIAL_NUMBERS)
29# Export serial numbers, UUID, and asset tag from loader.
30CFLAGS+= -DSMBIOS_SERIAL_NUMBERS
31.if defined(BOOT_LITTLE_ENDIAN_UUID)
32# Use little-endian UUID format as defined in SMBIOS 2.6.
33CFLAGS+= -DSMBIOS_LITTLE_ENDIAN_UUID
34.elif defined(BOOT_NETWORK_ENDIAN_UUID)
35# Use network-endian UUID format for backward compatibility.
36CFLAGS+= -DSMBIOS_NETWORK_ENDIAN_UUID
37.endif
38.endif
39
40# Include simple terminal emulation (cons25-compatible)
41CFLAGS+= -DTERM_EMU
42
43# XXX: make alloca() useable
44CFLAGS+= -Dalloca=__builtin_alloca
45
46CFLAGS+=	-I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \
47		-I${LDRSRC} -I${BOOTSRC}/i386/common \
48		-I${SYSDIR}/contrib/dev/acpica/include
49
50# Handle FreeBSD specific %b and %D printf format specifiers
51CFLAGS+= ${FORMAT_EXTENSIONS}
52
53.include <bsd.lib.mk>
54