]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - sys/boot/i386/libi386/Makefile
MFC r235329,235343,235361,235364: zfsboot/zfsloader: support accessing
[FreeBSD/stable/8.git] / sys / boot / i386 / libi386 / Makefile
1 # $FreeBSD$
2 #
3 LIB=                    i386
4 INTERNALLIB=
5
6 SRCS=   biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
7         biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \
8         comconsole.c devicename.c elf32_freebsd.c \
9         elf64_freebsd.c \
10         i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
11         smbios.c time.c vidconsole.c amd64_tramp.S
12 .PATH:  ${.CURDIR}/../../zfs
13 SRCS+=  devicename_stubs.c
14
15 # Enable PXE TFTP or NFS support, not both.
16 .if defined(LOADER_TFTP_SUPPORT)
17 CFLAGS+=        -DLOADER_TFTP_SUPPORT
18 .else
19 CFLAGS+=        -DLOADER_NFS_SUPPORT
20 .endif
21
22 BOOT_COMCONSOLE_PORT?= 0x3f8
23 CFLAGS+=        -DCOMPORT=${BOOT_COMCONSOLE_PORT}
24
25 BOOT_COMCONSOLE_SPEED?= 9600
26 CFLAGS+=        -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
27
28 .ifdef(BOOT_BIOSDISK_DEBUG)
29 # Make the disk code more talkative
30 CFLAGS+= -DDISK_DEBUG
31 .endif
32
33 .if !defined(BOOT_HIDE_SERIAL_NUMBERS)
34 # Export serial numbers, UUID, and asset tag from loader.
35 CFLAGS+= -DSMBIOS_SERIAL_NUMBERS
36 .if defined(BOOT_LITTLE_ENDIAN_UUID)
37 # Use little-endian UUID format as defined in SMBIOS 2.6.
38 CFLAGS+= -DSMBIOS_LITTLE_ENDIAN_UUID
39 .endif
40 .endif
41
42 .if !defined(LOADER_NO_GPT_SUPPORT)
43 CFLAGS+=        -DLOADER_GPT_SUPPORT
44 .endif
45
46 # Include simple terminal emulation (cons25-compatible)
47 CFLAGS+= -DTERM_EMU
48
49 # XXX: make alloca() useable
50 CFLAGS+= -Dalloca=__builtin_alloca
51
52 CFLAGS+=        -I${.CURDIR}/../../common -I${.CURDIR}/../common \
53                 -I${.CURDIR}/../btx/lib \
54                 -I${.CURDIR}/../../../contrib/dev/acpica/include \
55                 -I${.CURDIR}/../../.. -I.
56 # the location of libstand
57 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
58
59 .if ${MACHINE_ARCH} == "amd64"
60 CLEANFILES+=    machine
61 machine:
62         ln -sf ${.CURDIR}/../../../i386/include machine
63 .endif
64
65 .include <bsd.lib.mk>
66
67 .if ${MACHINE_ARCH} == "amd64"
68 beforedepend ${OBJS}: machine
69 .endif