- Add support for attaching alternative DLTs to an interface.
[dragonfly.git] / sys / boot / pc98 / libpc98 / Makefile
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 $
3 #
4 LIB=                    pc98
5 INTERNALLIB=            true
6
7 .PATH:  ${.CURDIR}/../../i386/libi386
8
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 \
12         time.c vidconsole.c
13
14 CFLAGS+=        -ffreestanding
15 BOOT_COMCONSOLE_PORT?= 0x238
16 CFLAGS+=        -DCOMPORT=${BOOT_COMCONSOLE_PORT}
17
18 BOOT_COMCONSOLE_SPEED?= 9600
19 CFLAGS+=        -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
20
21 .ifdef(BOOT_BIOSDISK_DEBUG)
22 # Make the disk code more talkative
23 CFLAGS+= -DDISK_DEBUG
24 .endif
25
26 # Include simple terminal emulation (cons25-compatible)
27 CFLAGS+= -DTERM_EMU
28
29 CFLAGS+=        -DPC98
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/
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)
42 beforedepend ${OBJS}: machine
43
44 CLEANFILES+=    machine
45 machine:
46         ln -sf ${.CURDIR}/../../../i386/include machine
47
48 .endif
49
50 .include <bsd.lib.mk>