Makefile revision 156712
150477Speter# $FreeBSD: head/sys/boot/i386/libi386/Makefile 156712 2006-03-14 19:02:00Z jkim $
238465Smsmith#
340554SmsmithLIB=			i386
4136910SruINTERNALLIB=
538465Smsmith
6102556SpeterSRCS=	biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
7114379Speter	biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \
8114379Speter	comconsole.c devicename.c elf32_freebsd.c \
9114379Speter	elf64_freebsd.c gatea20.c \
10117160Sru	i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
11148006Sjkim	smbios.c time.c vidconsole.c amd64_tramp.S
1238465Smsmith
1342480SrnordierBOOT_COMCONSOLE_PORT?= 0x3f8
1442480SrnordierCFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
1542480Srnordier
1642480SrnordierBOOT_COMCONSOLE_SPEED?= 9600
1742480SrnordierCFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
1842480Srnordier
1964187Sjhb.ifdef(BOOT_BIOSDISK_DEBUG)
2038465Smsmith# Make the disk code more talkative
2164187SjhbCFLAGS+= -DDISK_DEBUG
2264187Sjhb.endif
2338465Smsmith
24156712Sjkim.if !defined(BOOT_HIDE_SERIAL_NUMBERS)
25156712Sjkim# Export serial numbers, UUID, and asset tag from loader.
26156712SjkimCFLAGS+= -DSMBIOS_SERIAL_NUMBERS
27156519Sjkim.endif
28156519Sjkim
2942002Sabial# Include simple terminal emulation (cons25-compatible)
3042002SabialCFLAGS+= -DTERM_EMU
3142002Sabial
32153535Ssobomax# XXX: make alloca() useable
33153535SsobomaxCFLAGS+= -Dalloca=__builtin_alloca
34153535Ssobomax
3596306SobrienCFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
3696306Sobrien		-I${.CURDIR}/../../../contrib/dev/acpica \
3796306Sobrien		-I${.CURDIR}/../../.. -I.
3896306Sobrien# the location of libstand
3996306SobrienCFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
4096306Sobrien
41125556Sru.if ${MACHINE_ARCH} == "amd64"
42115670SobrienCLEANFILES+=	machine
4340338Spetermachine:
4440338Speter	ln -sf ${.CURDIR}/../../../i386/include machine
4540554Smsmith.endif
46125581Sru
47125581Sru.include <bsd.lib.mk>
48125581Sru
49125581Sru.if ${MACHINE_ARCH} == "amd64"
50125581Srubeforedepend ${OBJS}: machine
51125581Sru.endif
52