loader: Detect SMBIOS and export its information into the environment.
[dragonfly.git] / sys / boot / pc32 / libi386 / Makefile
1 # $FreeBSD: src/sys/boot/i386/libi386/Makefile,v 1.32 2003/07/02 12:45:45 ru Exp $
2 #
3 LIB=                    i386
4 INTERNALLIB=            true
5 SYSDIR?=                ${.CURDIR}/../../..
6 .include "${SYSDIR}/conf/acpi.mk"
7
8 SRCS=   biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
9         biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \
10         comconsole.c devicename.c elf32_freebsd.c \
11         elf64_freebsd.c gatea20.c \
12         i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
13         smbios.c time.c vidconsole.c x86_64_tramp.S
14
15 CFLAGS+=        -ffreestanding
16 BOOT_COMCONSOLE_PORT?= 0x3f8
17 CFLAGS+=        -DCOMPORT=${BOOT_COMCONSOLE_PORT}
18
19 BOOT_COMCONSOLE_SPEED?= 9600
20 CFLAGS+=        -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
21
22 .ifdef(BOOT_BIOSDISK_DEBUG)
23 # Make the disk code more talkative
24 CFLAGS+= -DDISK_DEBUG
25 .endif
26
27 # Include simple terminal emulation (cons25-compatible)
28 CFLAGS+= -DTERM_EMU
29
30 CFLAGS+=        -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
31                 -I"${SYSDIR}/${ACPICA_DIR}/include" \
32                 -I"${SYSDIR}/${OSACPI_MI_DIR}" \
33                 -I${.CURDIR}/../../.. -I.
34 # the location of libstand
35 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
36
37 # If it's not there, don't consider it a target
38 .if exists(${.CURDIR}/../../../cpu/i386/include)
39
40 # Make "machine" required for all objects
41 # (based on the more complete case in sys/arch/i386/boot/Makefile.inc)
42 ${SRCS:M*.c:R:S/$/.o/g}: machine
43
44 beforedepend ${OBJS}: machine
45
46 CLEANFILES+=    machine
47 machine:
48         ${LN} -sf ${.CURDIR}/../../../cpu/i386/include machine
49
50 .endif
51
52 .include <bsd.lib.mk>