diff options
Diffstat (limited to 'usr.sbin/vmd/Makefile')
-rw-r--r-- | usr.sbin/vmd/Makefile | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/usr.sbin/vmd/Makefile b/usr.sbin/vmd/Makefile index 3fbb9d086b1..22c1e887823 100644 --- a/usr.sbin/vmd/Makefile +++ b/usr.sbin/vmd/Makefile @@ -1,13 +1,20 @@ -# $OpenBSD: Makefile,v 1.29 2023/04/27 22:47:27 dv Exp $ +# $OpenBSD: Makefile,v 1.30 2024/07/10 09:27:33 dv Exp $ -.if ${MACHINE} == "amd64" +.if ${MACHINE} == "amd64" || ${MACHINE} == "arm64" PROG= vmd -SRCS= vmd.c control.c log.c priv.c proc.c config.c vmm.c -SRCS+= vm.c loadfile_elf.c pci.c virtio.c i8259.c mc146818.c -SRCS+= ns8250.c i8253.c dhcp.c packet.c mmio.c -SRCS+= parse.y atomicio.c vioscsi.c vioraw.c vioqcow2.c fw_cfg.c -SRCS+= vm_agentx.c vioblk.c vionet.c +SRCS= vmd.c control.c log.c priv.c proc.c config.c vmm.c vm.c +SRCS+= pci.c virtio.c dhcp.c packet.c parse.y atomicio.c +SRCS+= vioscsi.c vioraw.c vioqcow2.c vm_agentx.c vioblk.c +SRCS+= vionet.c + +.if ${MACHINE} == "amd64" +SRCS+= i8253.c i8259.c fw_cfg.c loadfile_elf.c mc146818.c ns8250.c +SRCS+= x86_vm.c x86_mmio.c +.endif # amd64 +.if ${MACHINE} == "arm64" +SRCS+= arm64_vm.c +.endif # arm64 CFLAGS+= -Wall -I${.CURDIR} CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes @@ -24,7 +31,7 @@ YFLAGS= NOPROG= yes -.endif +.endif # amd64 or arm64 MAN= vmd.8 vm.conf.5 |