Makefile revision 125556
150477Speter# $FreeBSD: head/sys/boot/i386/libi386/Makefile 125556 2004-02-07 08:10:07Z ru $
238465Smsmith#
340554SmsmithLIB=			i386
440554SmsmithINTERNALLIB=		true
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 \
11114379Speter	time.c vidconsole.c amd64_tramp.S
1238465Smsmith
1396306SobrienCFLAGS+=	-ffreestanding
1442480SrnordierBOOT_COMCONSOLE_PORT?= 0x3f8
1542480SrnordierCFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
1642480Srnordier
1742480SrnordierBOOT_COMCONSOLE_SPEED?= 9600
1842480SrnordierCFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
1942480Srnordier
2064187Sjhb.ifdef(BOOT_BIOSDISK_DEBUG)
2138465Smsmith# Make the disk code more talkative
2264187SjhbCFLAGS+= -DDISK_DEBUG
2364187Sjhb.endif
2438465Smsmith
2542002Sabial# Include simple terminal emulation (cons25-compatible)
2642002SabialCFLAGS+= -DTERM_EMU
2742002Sabial
2896306SobrienCFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
2996306Sobrien		-I${.CURDIR}/../../../contrib/dev/acpica \
3096306Sobrien		-I${.CURDIR}/../../.. -I.
3196306Sobrien# the location of libstand
3296306SobrienCFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
3396306Sobrien
34125537Sru.include <bsd.lib.mk>
3552395Sdcs
36125556Sru.if ${MACHINE_ARCH} == "amd64"
37125537Sru${OBJS}: machine
38115670SobrienCLEANFILES+=	machine
3940338Spetermachine:
4040338Speter	ln -sf ${.CURDIR}/../../../i386/include machine
4140554Smsmith.endif
42