Makefile revision 97060
1# $FreeBSD: head/sys/boot/pc98/libpc98/Makefile 97060 2002-05-21 09:44:52Z nyan $
2#
3LIB=			pc98
4INTERNALLIB=		true
5
6.PATH:	${.CURDIR}/../../i386/libi386
7
8SRCS=	aout_freebsd.c biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
9	biospci.c bootinfo.c comconsole.c devicename.c elf_freebsd.c gatea20.c \
10	i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
11	time.c vidconsole.c
12
13CFLAGS+=	-ffreestanding
14BOOT_COMCONSOLE_PORT?= 0x238
15CFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
16
17BOOT_COMCONSOLE_SPEED?= 9600
18CFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
19
20.ifdef(BOOT_BIOSDISK_DEBUG)
21# Make the disk code more talkative
22CFLAGS+= -DDISK_DEBUG
23.endif
24
25# Include simple terminal emulation (cons25-compatible)
26CFLAGS+= -DTERM_EMU
27
28CFLAGS+=	-DPC98
29CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
30		-I${.CURDIR}/../../i386/libi386 \
31		-I${.CURDIR}/../../../contrib/dev/acpica \
32		-I${.CURDIR}/../../.. -I.
33# the location of libstand
34CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
35
36# Make "machine" required for all objects
37# (based on the more complete case in sys/i386/boot/Makefile.inc)
38${SRCS:M*.c:R:S/$/.o/g}: machine
39
40# If it's not there, don't consider it a target
41.if exists(${.CURDIR}/../../../i386/include)
42beforedepend ${OBJS}: machine
43
44machine:
45	ln -sf ${.CURDIR}/../../../i386/include machine
46
47.endif
48
49CLEANFILES+=	machine
50
51.include <bsd.lib.mk>
52