]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/sparc64/loader/Makefile
Older zfs boot blocks don't support symlinks. install the link to
[FreeBSD/FreeBSD.git] / stand / sparc64 / loader / Makefile
1 # $FreeBSD$
2
3 HAVE_ZFS=               ${MK_ZFS}
4
5 LOADER_DISK_SUPPORT?=   yes
6 LOADER_UFS_SUPPORT?=    yes
7 LOADER_CD9660_SUPPORT?= yes
8 LOADER_EXT2FS_SUPPORT?= no
9 LOADER_MSDOS_SUPPORT?=  no
10 LOADER_NET_SUPPORT?=    yes
11 LOADER_NFS_SUPPORT?=    yes
12 LOADER_TFTP_SUPPORT?=   yes
13 LOADER_GZIP_SUPPORT?=   yes
14 LOADER_BZIP2_SUPPORT?=  no
15 LOADER_DEBUG?=          no
16
17 .include <bsd.init.mk>
18
19 PROG?=          loader
20 NEWVERSWHAT?=   "bootstrap loader" sparc64
21 VERSION_FILE=   ${.CURDIR}/../loader/version
22 INSTALLFLAGS=   -b
23
24 .if ${MK_ZFS} != "no"
25 HAVE_ZFS=       yes
26 .endif
27
28 # Architecture-specific loader code
29 .PATH:          ${BOOTSRC}/sparc64/loader
30 SRCS=           locore.S main.c vers.c
31
32 .if ${LOADER_DEBUG} == "yes"
33 CFLAGS+=        -DLOADER_DEBUG
34 .endif
35
36 .if exists(${.CURDIR}/help.sparc64)
37 HELP_FILES=     ${.CURDIR}/help.sparc64
38 .endif
39
40 # Always add MI sources
41 .include        "${BOOTSRC}/loader.mk"
42
43 LDFLAGS+=       -static
44
45 .if ${MK_ZFS} == "yes"
46 LINKS=          ${BINDIR}/loader ${BINDIR}/zfsloader
47 .endif
48
49 # Open Firmware standalone support library
50 LIBOFW=         ${BOOTOBJ}/ofw/libofw/libofw.a
51 CFLAGS+=        -I${BOOTSRC}/ofw/libofw/
52
53 DPADD=          ${LDR_INTERP} ${LIBOFW} ${LIBSA}
54 LDADD=          ${LDR_INTERP} ${LIBOFW} ${LIBSA}
55
56 .include <bsd.prog.mk>