1 # $FreeBSD: src/sys/boot/pc98/libpc98/Makefile,v 1.18 2003/07/02 12:45:45 ru Exp $
2 # $DragonFly: src/sys/boot/pc98/libpc98/Attic/Makefile,v 1.3 2003/11/10 06:08:39 dillon Exp $
7 .PATH: ${.CURDIR}/../../i386/libi386
9 SRCS= bioscd.c biosdisk.c biosmem.c biospnp.c biospci.c biossmap.c \
10 bootinfo.c bootinfo32.c comconsole.c devicename.c elf32_freebsd.c \
11 gatea20.c i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
14 CFLAGS+= -ffreestanding
15 BOOT_COMCONSOLE_PORT?= 0x238
16 CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
18 BOOT_COMCONSOLE_SPEED?= 9600
19 CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
21 .ifdef(BOOT_BIOSDISK_DEBUG)
22 # Make the disk code more talkative
26 # Include simple terminal emulation (cons25-compatible)
30 CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
31 -I${.CURDIR}/../../i386/libi386 \
32 -I${.CURDIR}/../../.. -I.
33 # the location of libstand
34 CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
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
40 # If it's not there, don't consider it a target
41 .if exists(${.CURDIR}/../../../i386/include)
42 beforedepend ${OBJS}: machine
46 ln -sf ${.CURDIR}/../../../i386/include machine