Edit

IABSD.fr/src/usr.sbin/installboot/Makefile

Branch :

  • Show log

    Commit

  • Author : visa
    Date : 2022-02-03 10:21:13
    Hash : db32265b
    Message : Rename armv7_installboot.c to efi_installboot.c. The code is common to EFI platforms, not specific to armv7. Suggested by kettenis@

  • usr.sbin/installboot/Makefile
  • #	$OpenBSD: Makefile,v 1.24 2022/02/03 10:21:13 visa Exp $
    
    PROG=		installboot
    SRCS=		installboot.c util.c
    MAN=		installboot.8
    
    CPPFLAGS=	-I${.CURDIR}
    LDADD=		-lutil
    DPADD=		${LIBUTIL}
    
    LDSTATIC=	${STATIC}
    
    .if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
    CFLAGS += -DSOFTRAID
    SRCS += i386_installboot.c
    SRCS += i386_nlist.c
    SRCS += i386_softraid.c
    .elif ${MACHINE} == "armv7" || ${MACHINE} == "arm64" || ${MACHINE} == "riscv64"
    SRCS += efi_installboot.c
    .elif ${MACHINE} == "hppa"
    CFLAGS += -DBOOTSTRAP
    SRCS += hppa_installboot.c
    .elif ${MACHINE} == "landisk"
    CFLAGS += -DBOOTSTRAP
    SRCS += landisk_installboot.c
    .elif ${MACHINE} == "loongson"
    SRCS += loongson_installboot.c
    .elif ${MACHINE} == "macppc"
    SRCS += macppc_installboot.c
    .elif ${MACHINE} == "powerpc64"
    SRCS += powerpc64_installboot.c
    .elif ${MACHINE} == "octeon"
    SRCS += octeon_installboot.c
    .elif ${MACHINE} == "sparc64"
    CFLAGS += -DSOFTRAID
    SRCS += sparc64_installboot.c
    SRCS += sparc64_softraid.c
    .else
    SRCS += stubs.c
    .endif
    
    .if !empty(CFLAGS:M-DBOOTSTRAP)
    SRCS += bootstrap.c
    .endif
    
    .if !empty(CFLAGS:M-DSOFTRAID)
    SRCS += softraid.c
    .endif
    
    .include <bsd.prog.mk>