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