Makefile revision 157668
1# $FreeBSD: head/sys/boot/i386/libi386/Makefile 157668 2006-04-11 20:11:30Z jhb $
2#
3LIB=			i386
4INTERNALLIB=
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 \
10	i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
11	smbios.c time.c vidconsole.c amd64_tramp.S
12
13BOOT_COMCONSOLE_PORT?= 0x3f8
14CFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
15
16BOOT_COMCONSOLE_SPEED?= 9600
17CFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
18
19.ifdef(BOOT_BIOSDISK_DEBUG)
20# Make the disk code more talkative
21CFLAGS+= -DDISK_DEBUG
22.endif
23
24.if !defined(BOOT_HIDE_SERIAL_NUMBERS)
25# Export serial numbers, UUID, and asset tag from loader.
26CFLAGS+= -DSMBIOS_SERIAL_NUMBERS
27.endif
28
29# Include simple terminal emulation (cons25-compatible)
30CFLAGS+= -DTERM_EMU
31
32# XXX: make alloca() useable
33CFLAGS+= -Dalloca=__builtin_alloca
34
35CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
36		-I${.CURDIR}/../../../contrib/dev/acpica \
37		-I${.CURDIR}/../../.. -I.
38# the location of libstand
39CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
40
41.if ${MACHINE_ARCH} == "amd64"
42CLEANFILES+=	machine
43machine:
44	ln -sf ${.CURDIR}/../../../i386/include machine
45.endif
46
47.include <bsd.lib.mk>
48
49.if ${MACHINE_ARCH} == "amd64"
50beforedepend ${OBJS}: machine
51.endif
52