Makefile revision 294417
1151497Sru# $FreeBSD: stable/10/sys/boot/i386/libi386/Makefile 294417 2016-01-20 13:23:02Z royger $ 2151497Sru# 3151497SruLIB= i386 4151497SruINTERNALLIB= 5151497Sru 6151497SruSRCS= biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \ 7151497Sru biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \ 8151497Sru comconsole.c devicename.c elf32_freebsd.c \ 9151497Sru elf64_freebsd.c multiboot.c multiboot_tramp.S \ 10151497Sru i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \ 11151497Sru smbios.c time.c vidconsole.c amd64_tramp.S spinconsole.c 12151497Sru.PATH: ${.CURDIR}/../../zfs 13151497SruSRCS+= devicename_stubs.c 14151497Sru 15151497Sru# Enable PXE TFTP or NFS support, not both. 16151497Sru.if defined(LOADER_TFTP_SUPPORT) 17151497SruCFLAGS+= -DLOADER_TFTP_SUPPORT 18151497Sru.else 19151497SruCFLAGS+= -DLOADER_NFS_SUPPORT 20151497Sru.endif 21151497Sru 22151497SruBOOT_COMCONSOLE_PORT?= 0x3f8 23151497SruCFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT} 24151497Sru 25151497SruBOOT_COMCONSOLE_SPEED?= 9600 26151497SruCFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED} 27151497Sru 28151497Sru.ifdef(BOOT_BIOSDISK_DEBUG) 29151497Sru# Make the disk code more talkative 30151497SruCFLAGS+= -DDISK_DEBUG 31151497Sru.endif 32151497Sru 33151497Sru.if !defined(BOOT_HIDE_SERIAL_NUMBERS) 34151497Sru# Export serial numbers, UUID, and asset tag from loader. 35151497SruCFLAGS+= -DSMBIOS_SERIAL_NUMBERS 36151497Sru.if defined(BOOT_LITTLE_ENDIAN_UUID) 37151497Sru# Use little-endian UUID format as defined in SMBIOS 2.6. 38151497SruCFLAGS+= -DSMBIOS_LITTLE_ENDIAN_UUID 39151497Sru.endif 40151497Sru.endif 41151497Sru 42151497Sru# Include simple terminal emulation (cons25-compatible) 43151497SruCFLAGS+= -DTERM_EMU 44151497Sru 45151497Sru# XXX: make alloca() useable 46151497SruCFLAGS+= -Dalloca=__builtin_alloca 47 48CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../common \ 49 -I${.CURDIR}/../btx/lib \ 50 -I${.CURDIR}/../../../contrib/dev/acpica/include \ 51 -I${.CURDIR}/../../.. -I. 52# the location of libstand 53CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ 54 55# Suppress warning from clang for FreeBSD %b and %D formats 56CFLAGS+= -fformat-extensions 57 58.if ${MACHINE_CPUARCH} == "amd64" 59CLEANFILES+= machine 60machine: 61 ln -sf ${.CURDIR}/../../../i386/include machine 62.endif 63 64.include <bsd.lib.mk> 65 66# XXX: clang integrated-as doesn't grok .codeNN directives yet 67CFLAGS.amd64_tramp.S= ${CLANG_NO_IAS} 68CFLAGS.multiboot_tramp.S= ${CLANG_NO_IAS} 69CFLAGS+= ${CFLAGS.${.IMPSRC:T}} 70 71.if ${MACHINE_CPUARCH} == "amd64" 72beforedepend ${OBJS}: machine 73.endif 74