Makefile revision 86130
1# $FreeBSD: head/sys/boot/pc98/libpc98/Makefile 86130 2001-11-06 12:31:05Z nyan $
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+=	-I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
17		-I${.CURDIR}/../../i386/libi386 \
18		-I${.CURDIR}/../../../contrib/dev/acpica \
19		-I${.CURDIR}/../../.. -I.
20CFLAGS+=	-DPC98
21
22BOOT_COMCONSOLE_PORT?= 0x238
23CFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
24
25BOOT_COMCONSOLE_SPEED?= 9600
26CFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
27
28# the location of libstand
29CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
30
31.ifdef(BOOT_BIOSDISK_DEBUG)
32# Make the disk code more talkative
33CFLAGS+= -DDISK_DEBUG
34.endif
35
36# Include simple terminal emulation (cons25-compatible)
37CFLAGS+= -DTERM_EMU
38
39# Make "machine" required for all objects
40# (based on the more complete case in sys/i386/boot/Makefile.inc)
41${SRCS:M*.c:R:S/$/.o/g}: machine
42
43# If it's not there, don't consider it a target
44.if exists(${.CURDIR}/../../../i386/include)
45beforedepend ${OBJS}: machine
46
47machine:
48	ln -sf ${.CURDIR}/../../../i386/include machine
49
50.endif
51
52CLEANFILES+=	machine
53
54.include <bsd.lib.mk>
55