changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / sys/src/cmd/vmx/mkfile

changeset 7178: c15a95dfdc11
parent: 949d2abb157d
child: 5ddd42593f0b
author: cinap_lenrek@felloff.net
date: Wed, 01 May 2019 08:19:29 +0200
permissions: -rw-r--r--
description: vmx: build vmx only for 386 or amd64

vmx uses non portable word unpacking macros, breaking
the build for arm64. vmx only works on a pc anyway.
this forces objtype to 386 on these machines, similar
to what the kernel mkfiles do.
1 objtype=`{~ $objtype (386 amd64) && echo $objtype || echo 386}
2 </$objtype/mkfile
3 
4 BIN=/$objtype/bin
5 TARG=vmx
6 HFILES=dat.h fns.h
7 OFILES=\
8  vmx.$O \
9  ksetup.$O \
10  exith.$O \
11  io.$O \
12  ide.$O \
13  vga.$O \
14  pci.$O \
15  virtio.$O \
16  vesa.$O \
17  9p.$O \
18  x86.$O \
19 
20 </sys/src/cmd/mkone
21 
22 install:V: $BIN/vmxgdb
23 
24 $BIN/vmxgdb: $O.vmxgdb
25  cp $prereq $BIN/vmxgdb
26 
27 $O.vmxgdb: vmxgdb.$O
28  $LD $LDFLAGS -o $target $prereq