Fully synchronize sys/boot from FreeBSD-5.x, but add / to the module path
[dragonfly.git] / sys / boot / ia64 / libski / Makefile
1 # $FreeBSD: src/sys/boot/ia64/libski/Makefile,v 1.10 2003/07/02 11:47:33 ru Exp $
2 # $DragonFly: src/sys/boot/ia64/libski/Makefile,v 1.1 2003/11/10 06:08:37 dillon Exp $
3
4 LIB=            ski
5 INTERNALLIB=    true
6
7 SRCS=   skiconsole.c time.c copy.c devicename.c module.c exit.c
8 SRCS+=  delay.c skifs.c elf_freebsd.c bootinfo.c ssc.c
9 SRCS+=  acpi_stub.c efi_stub.c pal_stub.S sal_stub.c
10
11 CFLAGS+=        -ffreestanding -fpic -g
12 CFLAGS+=        -I${.CURDIR}/../include
13 CFLAGS+=        -I${.CURDIR}/../include/${MACHINE_ARCH}
14 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
15 CFLAGS+=        -I${.CURDIR}/../../efi/include
16 CFLAGS+=        -I${.CURDIR}/../../efi/include/${MACHINE_ARCH}
17
18 # Pick up the bootstrap header for some interface items
19 CFLAGS+=        -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
20
21 .if ${MACHINE_ARCH} == "powerpc"
22 CFLAGS+=        -msoft-float
23 .endif
24
25 .ifdef(BOOT_DISK_DEBUG)
26 # Make the disk code more talkative
27 CFLAGS+= -DDISK_DEBUG
28 .endif
29
30 machine:
31         ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
32
33 CLEANFILES+=    machine
34
35 .include <bsd.lib.mk>
36
37 beforedepend ${OBJS}: machine