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