diff options
author | krw <krw@openbsd.org> | 2016-07-20 19:56:24 +0000 |
---|---|---|
committer | krw <krw@openbsd.org> | 2016-07-20 19:56:24 +0000 |
commit | a91b0a8b58c0e48786770fe0e3851b726e04f518 (patch) | |
tree | cdfb1a2fa3c9c90dc1641c891742630d26ad4aaa /usr.sbin/installboot | |
parent | Shrink priv_write_file() API so that it does less, and the callers ask (diff) | |
download | wireguard-openbsd-a91b0a8b58c0e48786770fe0e3851b726e04f518.tar.xz wireguard-openbsd-a91b0a8b58c0e48786770fe0e3851b726e04f518.zip |
Use more compact idiom to select architecture dependent files to compile. No
intentional functional change.
Diff from Miod.
ok millert@ deraadt@
Diffstat (limited to 'usr.sbin/installboot')
-rw-r--r-- | usr.sbin/installboot/Makefile | 62 |
1 files changed, 7 insertions, 55 deletions
diff --git a/usr.sbin/installboot/Makefile b/usr.sbin/installboot/Makefile index 0e8962eb2b9..f699cc5133a 100644 --- a/usr.sbin/installboot/Makefile +++ b/usr.sbin/installboot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.17 2016/05/31 18:35:58 kettenis Exp $ +# $OpenBSD: Makefile,v 1.18 2016/07/20 19:56:24 krw Exp $ PROG= installboot SRCS= installboot.c util.c @@ -10,77 +10,29 @@ DPADD= ${LIBUTIL} LDSTATIC= ${STATIC} -.if ${MACHINE} == "alpha" -SRCS += stubs.c -.endif - .if ${MACHINE} == "amd64" CFLAGS += -DSOFTRAID SRCS += i386_installboot.c SRCS += i386_nlist.c SRCS += i386_softraid.c -.endif - -.if ${MACHINE} == "armish" -SRCS += stubs.c -.endif - -.if ${MACHINE} == "armv7" +.elif ${MACHINE} == "armv7" SRCS += armv7_installboot.c -.endif - -.if ${MACHINE} == "hppa" +.elif ${MACHINE} == "hppa" CFLAGS += -DBOOTSTRAP SRCS += hppa_installboot.c -.endif - -.if ${MACHINE} == "i386" +.elif ${MACHINE} == "i386" CFLAGS += -DSOFTRAID SRCS += i386_installboot.c SRCS += i386_nlist.c SRCS += i386_softraid.c -.endif - -.if ${MACHINE} == "landisk" +.elif ${MACHINE} == "landisk" CFLAGS += -DBOOTSTRAP SRCS += landisk_installboot.c -.endif - -.if ${MACHINE} == "loongson" -SRCS += stubs.c -.endif - -.if ${MACHINE} == "luna88k" -SRCS += stubs.c -.endif - -.if ${MACHINE} == "macppc" -SRCS += stubs.c -.endif - -.if ${MACHINE} == "octeon" -SRCS += stubs.c -.endif - -.if ${MACHINE} == "sgi" -SRCS += stubs.c -.endif - -.if ${MACHINE} == "socppc" -SRCS += stubs.c -.endif - -.if ${MACHINE} == "sparc" -SRCS += stubs.c -.endif - -.if ${MACHINE} == "sparc64" +.elif ${MACHINE} == "sparc64" CFLAGS += -DSOFTRAID SRCS += sparc64_installboot.c SRCS += sparc64_softraid.c -.endif - -.if ${MACHINE} == "zaurus" +.else SRCS += stubs.c .endif |