Makefile revision 344377
1# $FreeBSD: stable/11/stand/pc98/libpc98/Makefile 344377 2019-02-20 19:13:09Z kevans $
2#
3
4.include <bsd.init.mk>
5
6LIB=			pc98
7
8.PATH:	${BOOTSRC}/i386/libi386
9
10SRCS=	bioscd.c biosdisk.c biosmem.c biospnp.c \
11	biospci.c biossmap.c bootinfo.c bootinfo32.c \
12	comconsole.c devicename.c elf32_freebsd.c \
13	i386_copy.c i386_module.c nullconsole.c pc98_sys.c pxe.c pxetramp.s \
14	time.c vidconsole.c
15.PATH:	${ZFSSRC}
16SRCS+=	devicename_stubs.c
17CFLAGS+= -I${ZFSSRC}
18
19BOOT_COMCONSOLE_PORT?= 0x238
20CFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
21
22BOOT_COMCONSOLE_SPEED?= 9600
23CFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
24
25.ifdef(BOOT_BIOSDISK_DEBUG)
26# Make the disk code more talkative
27CFLAGS+= -DDISK_DEBUG
28.endif
29
30# Include simple terminal emulation (cons25-compatible)
31CFLAGS+= -DTERM_EMU
32
33# XXX: make alloca() useable
34CFLAGS+= -Dalloca=__builtin_alloca
35
36CFLAGS+=	-I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \
37		-I${LDRSRC} -I${BOOTSRC}/common \
38		-I${BOOTSRC}/pc98/btx/lib \
39		-I${BOOTSRC}/i386/libi386 \
40		-I${SYSDIR}
41
42# Handle FreeBSD specific %b and %D printf format specifiers
43CFLAGS+= ${FORMAT_EXTENSIONS}
44
45.include <bsd.lib.mk>
46