Makefile revision 125556
1# $FreeBSD: head/sys/boot/i386/libi386/Makefile 125556 2004-02-07 08:10:07Z ru $ 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.include <bsd.lib.mk> 35 36.if ${MACHINE_ARCH} == "amd64" 37${OBJS}: machine 38CLEANFILES+= machine 39machine: 40 ln -sf ${.CURDIR}/../../../i386/include machine 41.endif 42