Makefile revision 115944
1# $FreeBSD: head/sys/boot/pc98/libpc98/Makefile 115944 2003-06-07 08:23:42Z nyan $
2#
3LIB=			pc98
4INTERNALLIB=		true
5
6.PATH:	${.CURDIR}/../../i386/libi386
7
8SRCS=	bioscd.c biosdisk.c biosmem.c biospnp.c biospci.c biossmap.c \
9	bootinfo.c bootinfo32.c comconsole.c devicename.c elf32_freebsd.c \
10	gatea20.c i386_copy.c i386_module.c nullconsole.c pxe.c \
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
44CLEANFILES+=	machine
45machine:
46	ln -sf ${.CURDIR}/../../../i386/include machine
47
48.endif
49
50OBJS+=	pxetramp.o
51pxetramp.o: pxetramp.s
52	as -o ${.TARGET} ${.ALLSRC:M*pxetramp*}
53
54.include <bsd.lib.mk>
55