Merge from vendor branch LIBSTDC++:
[dragonfly.git] / sys / boot / i386 / libi386 / Makefile
1 # $FreeBSD: src/sys/boot/i386/libi386/Makefile,v 1.32 2003/07/02 12:45:45 ru Exp $
2 # $DragonFly: src/sys/boot/i386/libi386/Attic/Makefile,v 1.3 2003/11/10 06:08:36 dillon Exp $
3 #
4 LIB=                    i386
5 INTERNALLIB=            true
6
7 SRCS=   biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
8         biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \
9         comconsole.c devicename.c elf32_freebsd.c \
10         elf64_freebsd.c gatea20.c \
11         i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
12         time.c vidconsole.c amd64_tramp.S
13
14 CFLAGS+=        -ffreestanding
15 BOOT_COMCONSOLE_PORT?= 0x3f8
16 CFLAGS+=        -DCOMPORT=${BOOT_COMCONSOLE_PORT}
17
18 BOOT_COMCONSOLE_SPEED?= 9600
19 CFLAGS+=        -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
20
21 .ifdef(BOOT_BIOSDISK_DEBUG)
22 # Make the disk code more talkative
23 CFLAGS+= -DDISK_DEBUG
24 .endif
25
26 # Include simple terminal emulation (cons25-compatible)
27 CFLAGS+= -DTERM_EMU
28
29 CFLAGS+=        -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
30                 -I${.CURDIR}/../../../contrib/dev/acpica \
31                 -I${.CURDIR}/../../.. -I.
32 # the location of libstand
33 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
34
35 # Make "machine" required for all objects
36 # (based on the more complete case in sys/i386/boot/Makefile.inc)
37 ${SRCS:M*.c:R:S/$/.o/g}: machine
38
39 # If it's not there, don't consider it a target
40 .if exists(${.CURDIR}/../../../i386/include)
41 beforedepend ${OBJS}: machine
42
43 CLEANFILES+=    machine
44 machine:
45         ln -sf ${.CURDIR}/../../../i386/include machine
46
47 .endif
48
49 .include <bsd.lib.mk>