Makefile revision 115670
1# $FreeBSD: head/sys/boot/i386/libi386/Makefile 115670 2003-06-02 02:37:27Z obrien $ 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 \ 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 42CLEANFILES+= machine 43machine: 44 ln -sf ${.CURDIR}/../../../i386/include machine 45 46.endif 47 48OBJS+= pxetramp.o 49pxetramp.o: pxetramp.s 50 as -o ${.TARGET} ${.ALLSRC:M*pxetramp*} 51 52.include <bsd.lib.mk> 53