loader: Detect SMBIOS and export its information into the environment.
[dragonfly.git] / sys / boot / pc32 / libi386 / Makefile
CommitLineData
5ee58eed 1# $FreeBSD: src/sys/boot/i386/libi386/Makefile,v 1.32 2003/07/02 12:45:45 ru Exp $
984263bc
MD
2#
3LIB= i386
4INTERNALLIB= true
c86cd76a
YT
5SYSDIR?= ${.CURDIR}/../../..
6.include "${SYSDIR}/conf/acpi.mk"
984263bc 7
5ee58eed
MD
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 \
984263bc 12 i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
b95eca12 13 smbios.c time.c vidconsole.c x86_64_tramp.S
984263bc 14
5ee58eed 15CFLAGS+= -ffreestanding
984263bc
MD
16BOOT_COMCONSOLE_PORT?= 0x3f8
17CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
18
19BOOT_COMCONSOLE_SPEED?= 9600
20CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
21
984263bc
MD
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
5ee58eed 30CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
c86cd76a
YT
31 -I"${SYSDIR}/${ACPICA_DIR}/include" \
32 -I"${SYSDIR}/${OSACPI_MI_DIR}" \
5ee58eed
MD
33 -I${.CURDIR}/../../.. -I.
34# the location of libstand
35CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
36
65f5a4df
MD
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
984263bc 51
984263bc 52.include <bsd.lib.mk>