1 # $FreeBSD: src/sys/boot/i386/libi386/Makefile,v 1.32 2003/07/02 12:45:45 ru Exp $
2 # $DragonFly: src/sys/boot/i386/libi386/Attic/Makefile,v 1.3 2003/11/10 06:08:36 dillon Exp $
7 SRCS= biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
8 biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \
9 comconsole.c devicename.c elf32_freebsd.c \
10 elf64_freebsd.c gatea20.c \
11 i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
12 time.c vidconsole.c amd64_tramp.S
14 CFLAGS+= -ffreestanding
15 BOOT_COMCONSOLE_PORT?= 0x3f8
16 CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
18 BOOT_COMCONSOLE_SPEED?= 9600
19 CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
21 .ifdef(BOOT_BIOSDISK_DEBUG)
22 # Make the disk code more talkative
26 # Include simple terminal emulation (cons25-compatible)
29 CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
30 -I${.CURDIR}/../../../contrib/dev/acpica \
31 -I${.CURDIR}/../../.. -I.
32 # the location of libstand
33 CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
35 # Make "machine" required for all objects
36 # (based on the more complete case in sys/i386/boot/Makefile.inc)
37 ${SRCS:M*.c:R:S/$/.o/g}: machine
39 # If it's not there, don't consider it a target
40 .if exists(${.CURDIR}/../../../i386/include)
41 beforedepend ${OBJS}: machine
45 ln -sf ${.CURDIR}/../../../i386/include machine