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