xref: /freebsd/stand/i386/libi386/Makefile (revision 3f0efe05432b1633991114ca4ca330102a561959)
1.include <bsd.init.mk>
2
3LIB=	i386
4
5SRCS+=	amd64_tramp.S
6SRCS+=	bio.c
7SRCS+=	biosacpi.c
8SRCS+=	biosdisk.c
9SRCS+=	biosmem.c
10SRCS+=	biospci.c
11SRCS+=	biospnp.c
12SRCS+=	biossmap.c
13SRCS+=	bootinfo.c
14SRCS+=	bootinfo32.c
15SRCS+=	bootinfo64.c
16SRCS+=	comconsole.c
17SRCS+=	devicename.c
18SRCS+=	elf32_freebsd.c
19SRCS+=	elf64_freebsd.c
20SRCS+=	i386_copy.c
21SRCS+=	i386_module.c
22SRCS+=	multiboot.c
23SRCS+=	multiboot_tramp.S
24SRCS+=	nullconsole.c
25SRCS+=	pxe.c
26SRCS+=	pxetramp.S
27SRCS+=	relocater_tramp.S
28SRCS+=	spinconsole.c
29SRCS+=	time.c
30SRCS+=	textvidc.c
31SRCS+=	vbe.c
32SRCS+=	vidconsole.c
33
34.PATH:	${SYSDIR}/teken
35SRCS+=	teken.c
36
37.include "${BOOTSRC}/veriexec.mk"
38
39BOOT_COMCONSOLE_PORT?= 0x3f8
40CFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
41
42BOOT_COMCONSOLE_SPEED?= 115200
43CFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
44
45.ifdef(BOOT_BIOSDISK_DEBUG)
46# Make the disk code more talkative
47CFLAGS.biosdisk.c+= -DDISK_DEBUG
48.endif
49
50# terminal emulation
51.if ${BOOT_FRAMEBUFFER_MODE:Uno} == "yes"
52CFLAGS.vidconsole.c+= -DFRAMEBUFFER_MODE
53.endif
54CFLAGS.vidconsole.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite
55CFLAGS.teken.c+= -I${SRCTOP}/sys/teken
56CFLAGS.bootinfo.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite
57CFLAGS.vbe.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite
58
59CFLAGS.textvidc.c+= -DTERM_EMU
60
61CFLAGS+=	-I${LDRSRC} -I${BOOTSRC}/i386/common \
62		-I${SYSDIR}/contrib/dev/acpica/include
63
64# Handle FreeBSD specific %b and %D printf format specifiers
65CFLAGS+= ${FORMAT_EXTENSIONS}
66
67.include <bsd.lib.mk>
68