]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/i386/libi386/Makefile
add -n option to suppress clearing the build tree and add -DNO_CLEAN
[FreeBSD/FreeBSD.git] / sys / boot / i386 / libi386 / Makefile
1 # $FreeBSD$
2 #
3 LIB=                    i386
4 INTERNALLIB=
5
6 SRCS=   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
12
13 # Enable PXE TFTP or NFS support, not both.
14 .if defined(LOADER_TFTP_SUPPORT)
15 CFLAGS+=        -DLOADER_TFTP_SUPPORT
16 .else
17 CFLAGS+=        -DLOADER_NFS_SUPPORT
18 .endif
19
20 BOOT_COMCONSOLE_PORT?= 0x3f8
21 CFLAGS+=        -DCOMPORT=${BOOT_COMCONSOLE_PORT}
22
23 BOOT_COMCONSOLE_SPEED?= 9600
24 CFLAGS+=        -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
25
26 .ifdef(BOOT_BIOSDISK_DEBUG)
27 # Make the disk code more talkative
28 CFLAGS+= -DDISK_DEBUG
29 .endif
30
31 .if !defined(BOOT_HIDE_SERIAL_NUMBERS)
32 # Export serial numbers, UUID, and asset tag from loader.
33 CFLAGS+= -DSMBIOS_SERIAL_NUMBERS
34 .endif
35
36 # Include simple terminal emulation (cons25-compatible)
37 CFLAGS+= -DTERM_EMU
38
39 # XXX: make alloca() useable
40 CFLAGS+= -Dalloca=__builtin_alloca
41
42 CFLAGS+=        -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
43                 -I${.CURDIR}/../../../contrib/dev/acpica \
44                 -I${.CURDIR}/../../.. -I.
45 # the location of libstand
46 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
47
48 .if ${MACHINE_ARCH} == "amd64"
49 CLEANFILES+=    machine
50 machine:
51         ln -sf ${.CURDIR}/../../../i386/include machine
52 .endif
53
54 .include <bsd.lib.mk>
55
56 .if ${MACHINE_ARCH} == "amd64"
57 beforedepend ${OBJS}: machine
58 .endif