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