Makefile revision 114379
1# $FreeBSD: head/sys/boot/i386/libi386/Makefile 114379 2003-05-01 03:56:30Z peter $
2#
3LIB=			i386
4INTERNALLIB=		true
5
6SRCS=	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 gatea20.c \
10	i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
11	time.c vidconsole.c amd64_tramp.S
12
13CFLAGS+=	-ffreestanding
14BOOT_COMCONSOLE_PORT?= 0x3f8
15CFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
16
17BOOT_COMCONSOLE_SPEED?= 9600
18CFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
19
20.ifdef(BOOT_BIOSDISK_DEBUG)
21# Make the disk code more talkative
22CFLAGS+= -DDISK_DEBUG
23.endif
24
25# Include simple terminal emulation (cons25-compatible)
26CFLAGS+= -DTERM_EMU
27
28CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
29		-I${.CURDIR}/../../../contrib/dev/acpica \
30		-I${.CURDIR}/../../.. -I.
31# the location of libstand
32CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
33
34# Make "machine" required for all objects
35# (based on the more complete case in sys/i386/boot/Makefile.inc)
36${SRCS:M*.c:R:S/$/.o/g}: machine
37
38# If it's not there, don't consider it a target
39.if exists(${.CURDIR}/../../../i386/include)
40beforedepend ${OBJS}: machine
41
42machine:
43	ln -sf ${.CURDIR}/../../../i386/include machine
44
45.endif
46
47CLEANFILES+=	machine
48
49.include <bsd.lib.mk>
50