Makefile revision 232263
1# $FreeBSD: head/sys/boot/i386/libi386/Makefile 232263 2012-02-28 18:30:18Z dim $ 2# 3LIB= i386 4INTERNALLIB= 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 \ 10 i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \ 11 smbios.c time.c vidconsole.c amd64_tramp.S spinconsole.c 12 13# Enable PXE TFTP or NFS support, not both. 14.if defined(LOADER_TFTP_SUPPORT) 15CFLAGS+= -DLOADER_TFTP_SUPPORT 16.else 17CFLAGS+= -DLOADER_NFS_SUPPORT 18.endif 19 20BOOT_COMCONSOLE_PORT?= 0x3f8 21CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT} 22 23BOOT_COMCONSOLE_SPEED?= 9600 24CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED} 25 26.ifdef(BOOT_BIOSDISK_DEBUG) 27# Make the disk code more talkative 28CFLAGS+= -DDISK_DEBUG 29.endif 30 31.if !defined(BOOT_HIDE_SERIAL_NUMBERS) 32# Export serial numbers, UUID, and asset tag from loader. 33CFLAGS+= -DSMBIOS_SERIAL_NUMBERS 34.if defined(BOOT_LITTLE_ENDIAN_UUID) 35# Use little-endian UUID format as defined in SMBIOS 2.6. 36CFLAGS+= -DSMBIOS_LITTLE_ENDIAN_UUID 37.endif 38.endif 39 40.if !defined(LOADER_NO_GPT_SUPPORT) 41CFLAGS+= -DLOADER_GPT_SUPPORT 42.endif 43 44# Include simple terminal emulation (cons25-compatible) 45CFLAGS+= -DTERM_EMU 46 47# XXX: make alloca() useable 48CFLAGS+= -Dalloca=__builtin_alloca 49 50CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../common \ 51 -I${.CURDIR}/../btx/lib \ 52 -I${.CURDIR}/../../../contrib/dev/acpica/include \ 53 -I${.CURDIR}/../../.. -I. 54# the location of libstand 55CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ 56 57.if ${MACHINE_CPUARCH} == "amd64" 58CLEANFILES+= machine 59machine: 60 ln -sf ${.CURDIR}/../../../i386/include machine 61.endif 62 63.include <bsd.lib.mk> 64 65# XXX: clang integrated-as doesn't grok .codeNN directives yet 66CFLAGS.amd64_tramp.S= ${CLANG_NO_IAS} 67CFLAGS+= ${CFLAGS.${.IMPSRC:T}} 68 69.if ${MACHINE_CPUARCH} == "amd64" 70beforedepend ${OBJS}: machine 71.endif 72