]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/pc98/libpc98/Makefile
Re-sync loader.mk and ficl.mk to where they should be
[FreeBSD/FreeBSD.git] / sys / boot / pc98 / libpc98 / Makefile
1 # $FreeBSD$
2 #
3 LIB=                    pc98
4 INTERNALLIB=
5
6 .PATH:  ${.CURDIR}/../../i386/libi386
7
8 SRCS=   bioscd.c biosdisk.c biosmem.c biospnp.c \
9         biospci.c biossmap.c bootinfo.c bootinfo32.c \
10         comconsole.c devicename.c elf32_freebsd.c \
11         i386_copy.c i386_module.c nullconsole.c pc98_sys.c pxe.c pxetramp.s \
12         time.c vidconsole.c
13 .PATH:  ${.CURDIR}/../../zfs
14 SRCS+=  devicename_stubs.c
15
16 # Enable PXE TFTP or NFS support, not both.
17 .if defined(LOADER_TFTP_SUPPORT)
18 CFLAGS+=        -DLOADER_TFTP_SUPPORT
19 .else
20 CFLAGS+=        -DLOADER_NFS_SUPPORT
21 .endif
22
23 BOOT_COMCONSOLE_PORT?= 0x238
24 CFLAGS+=        -DCOMPORT=${BOOT_COMCONSOLE_PORT}
25
26 BOOT_COMCONSOLE_SPEED?= 9600
27 CFLAGS+=        -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
28
29 .ifdef(BOOT_BIOSDISK_DEBUG)
30 # Make the disk code more talkative
31 CFLAGS+= -DDISK_DEBUG
32 .endif
33
34 # Include simple terminal emulation (cons25-compatible)
35 CFLAGS+= -DTERM_EMU
36
37 # XXX: make alloca() useable
38 CFLAGS+= -Dalloca=__builtin_alloca
39
40 CFLAGS+=        -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/i386 \
41                 -I${.CURDIR}/../../common \
42                 -I${.CURDIR}/../btx/lib \
43                 -I${.CURDIR}/../../i386/libi386 \
44                 -I${.CURDIR}/../../.. -I.
45 # the location of libstand
46 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
47
48 # Handle FreeBSD specific %b and %D printf format specifiers
49 CFLAGS+= ${FORMAT_EXTENSIONS}
50
51 .include <bsd.lib.mk>