]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/boot/i386/libi386/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.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
13 BOOT_COMCONSOLE_PORT?= 0x3f8
14 CFLAGS+=        -DCOMPORT=${BOOT_COMCONSOLE_PORT}
15
16 BOOT_COMCONSOLE_SPEED?= 9600
17 CFLAGS+=        -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
18
19 .ifdef(BOOT_BIOSDISK_DEBUG)
20 # Make the disk code more talkative
21 CFLAGS+= -DDISK_DEBUG
22 .endif
23
24 .if !defined(BOOT_HIDE_SERIAL_NUMBERS)
25 # Export serial numbers, UUID, and asset tag from loader.
26 CFLAGS+= -DSMBIOS_SERIAL_NUMBERS
27 .endif
28
29 .if !defined(LOADER_NO_GPT_SUPPORT)
30 CFLAGS+=        -DLOADER_GPT_SUPPORT
31 .endif
32
33 # Include simple terminal emulation (cons25-compatible)
34 CFLAGS+= -DTERM_EMU
35
36 # XXX: make alloca() useable
37 CFLAGS+= -Dalloca=__builtin_alloca
38
39 CFLAGS+=        -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
40                 -I${.CURDIR}/../../../contrib/dev/acpica \
41                 -I${.CURDIR}/../../.. -I.
42 # the location of libstand
43 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
44
45 .if ${MACHINE_ARCH} == "amd64"
46 CLEANFILES+=    machine
47 machine:
48         ln -sf ${.CURDIR}/../../../i386/include machine
49 .endif
50
51 .include <bsd.lib.mk>
52
53 .if ${MACHINE_ARCH} == "amd64"
54 beforedepend ${OBJS}: machine
55 .endif