loader: Detect SMBIOS and export its information into the environment.
[dragonfly.git] / sys / boot / pc32 / libi386 / Makefile
... / ...
CommitLineData
1# $FreeBSD: src/sys/boot/i386/libi386/Makefile,v 1.32 2003/07/02 12:45:45 ru Exp $
2#
3LIB= i386
4INTERNALLIB= true
5SYSDIR?= ${.CURDIR}/../../..
6.include "${SYSDIR}/conf/acpi.mk"
7
8SRCS= 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
15CFLAGS+= -ffreestanding
16BOOT_COMCONSOLE_PORT?= 0x3f8
17CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
18
19BOOT_COMCONSOLE_SPEED?= 9600
20CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
21
22.ifdef(BOOT_BIOSDISK_DEBUG)
23# Make the disk code more talkative
24CFLAGS+= -DDISK_DEBUG
25.endif
26
27# Include simple terminal emulation (cons25-compatible)
28CFLAGS+= -DTERM_EMU
29
30CFLAGS+= -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
35CFLAGS+= -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
44beforedepend ${OBJS}: machine
45
46CLEANFILES+= machine
47machine:
48 ${LN} -sf ${.CURDIR}/../../../cpu/i386/include machine
49
50.endif
51
52.include <bsd.lib.mk>