5 .PATH: ${.CURDIR}/../../common
11 SRCS= crc32.c console.c copy.c devicename.c elf_freebsd.c glue.c
12 SRCS+= module.c net.c reboot.c time.c
14 CFLAGS+= -ffreestanding -msoft-float
16 CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
18 .if !defined(LOADER_NO_DISK_SUPPORT)
20 CFLAGS+= -DLOADER_DISK_SUPPORT
24 LOADER_FDT_SUPPORT= yes
26 LOADER_FDT_SUPPORT= no
29 .if ${LOADER_FDT_SUPPORT} == "yes"
30 CFLAGS+= -DLOADER_FDT_SUPPORT -I${.CURDIR}/../../fdt
33 # Pick up FDT includes
34 CFLAGS+= -I${.CURDIR}/../../../../sys/contrib/libfdt/
36 # Pick up the bootstrap header for some interface items
37 CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
39 .ifdef(BOOT_DISK_DEBUG)
40 # Make the disk code more talkative
45 ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine
49 .include <bsd.stand.mk>
52 beforedepend ${OBJS}: machine