8 NEWVERSWHAT= "bootstrap loader" sparc64
11 # Architecture-specific loader code
12 SRCS= locore.S main.c metadata.c vers.c
14 LOADER_DISK_SUPPORT?= yes
15 LOADER_UFS_SUPPORT?= yes
16 LOADER_CD9660_SUPPORT?= yes
17 LOADER_NET_SUPPORT?= yes
18 LOADER_NFS_SUPPORT?= yes
19 LOADER_TFTP_SUPPORT?= yes
20 LOADER_GZIP_SUPPORT?= yes
21 LOADER_BZIP2_SUPPORT?= no
23 .if ${LOADER_DISK_SUPPORT} == "yes"
24 CFLAGS+= -DLOADER_DISK_SUPPORT
26 .if ${LOADER_UFS_SUPPORT} == "yes"
27 CFLAGS+= -DLOADER_UFS_SUPPORT
29 .if ${LOADER_CD9660_SUPPORT} == "yes"
30 CFLAGS+= -DLOADER_CD9660_SUPPORT
32 .if ${LOADER_GZIP_SUPPORT} == "yes"
33 CFLAGS+= -DLOADER_GZIP_SUPPORT
35 .if ${LOADER_BZIP2_SUPPORT} == "yes"
36 CFLAGS+= -DLOADER_BZIP2_SUPPORT
38 .if ${LOADER_NET_SUPPORT} == "yes"
39 CFLAGS+= -DLOADER_NET_SUPPORT
41 .if ${LOADER_NFS_SUPPORT} == "yes"
42 CFLAGS+= -DLOADER_NFS_SUPPORT
44 .if ${LOADER_TFTP_SUPPORT} == "yes"
45 CFLAGS+= -DLOADER_TFTP_SUPPORT
48 .if ${MK_FORTH} != "no"
51 CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/sparc64
52 LIBFICL= ${.OBJDIR}/../../ficl/libficl.a
55 # Always add MI sources
56 .PATH: ${.CURDIR}/../../common
57 .include "${.CURDIR}/../../common/Makefile.inc"
58 CFLAGS+= -I${.CURDIR}/../../common
61 CLEANFILES+= vers.c loader.help
65 # Open Firmware standalone support library
66 LIBOFW= ${.OBJDIR}/../../ofw/libofw/libofw.a
67 CFLAGS+= -I${.CURDIR}/../../ofw/libofw/
69 # where to get libstand from
70 CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
72 DPADD= ${LIBFICL} ${LIBOFW} ${LIBSTAND}
73 LDADD= ${LIBFICL} ${LIBOFW} -lstand
75 vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
76 sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
78 loader.help: help.common help.sparc64
80 awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
82 .PATH: ${.CURDIR}/../../forth
83 FILES= loader.help loader.4th support.4th loader.conf
84 FILESDIR_loader.conf= /boot/defaults
86 .if !exists(${DESTDIR}/boot/loader.rc)
90 .include <bsd.prog.mk>