]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/i386/libi386/Makefile
MFV 354917, 354918, 354919
[FreeBSD/FreeBSD.git] / stand / i386 / libi386 / Makefile
1 # $FreeBSD$
2
3 .include <bsd.init.mk>
4
5 LIB=                    i386
6
7 SRCS=   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}
14 SRCS+=  devicename_stubs.c
15 CFLAGS+= -I${ZFSSRC}
16
17 .PATH:  ${SYSDIR}/teken
18 SRCS+=  teken.c
19
20 BOOT_COMCONSOLE_PORT?= 0x3f8
21 CFLAGS+=        -DCOMPORT=${BOOT_COMCONSOLE_PORT}
22
23 BOOT_COMCONSOLE_SPEED?= 9600
24 CFLAGS+=        -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
25
26 .ifdef(BOOT_BIOSDISK_DEBUG)
27 # Make the disk code more talkative
28 CFLAGS+= -DDISK_DEBUG
29 .endif
30
31 .if !defined(BOOT_HIDE_SERIAL_NUMBERS)
32 # Export serial numbers, UUID, and asset tag from loader.
33 CFLAGS+= -DSMBIOS_SERIAL_NUMBERS
34 .if defined(BOOT_LITTLE_ENDIAN_UUID)
35 # Use little-endian UUID format as defined in SMBIOS 2.6.
36 CFLAGS+= -DSMBIOS_LITTLE_ENDIAN_UUID
37 .elif defined(BOOT_NETWORK_ENDIAN_UUID)
38 # Use network-endian UUID format for backward compatibility.
39 CFLAGS+= -DSMBIOS_NETWORK_ENDIAN_UUID
40 .endif
41 .endif
42
43 # terminal emulation
44 CFLAGS.vidconsole.c+= -I${SRCTOP}/sys/teken
45 CFLAGS.teken.c+= -I${SRCTOP}/sys/teken
46
47 # XXX: make alloca() useable
48 CFLAGS+= -Dalloca=__builtin_alloca
49
50 CFLAGS+=        -I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \
51                 -I${LDRSRC} -I${BOOTSRC}/i386/common \
52                 -I${SYSDIR}/contrib/dev/acpica/include
53
54 # Handle FreeBSD specific %b and %D printf format specifiers
55 CFLAGS+= ${FORMAT_EXTENSIONS}
56
57 .include <bsd.lib.mk>