1
2--------------------------------------------------------------------------
3-- Copyright (c) 2007-2012, ETH Zurich.
4-- All rights reserved.
5--
6-- This file is distributed under the terms in the attached LICENSE file.
7-- If you do not find this file, copies can be found by writing to:
8-- ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
9--
10-- Hakefile for lib/virtio
11--
12--------------------------------------------------------------------------
13
14[ build library { target = "virtio",
15                      cFiles = [ "virtqueue.c",
16                      	   "device.c",
17                      	   "vbuffer.c",
18                      	   "backends/virtio_device_mmio.c",
19                      	   "backends/virtio_device_pci.c",
20                      	   "devices/virtio_block.c",
21                      	   "guest.c",
22                      	   "guest/channel_flounder.c",
23                      	   "guest/channel_xeon_phi.c"
24                      	    ],
25
26                      mackerelDevices = [ "virtio/virtio_mmio",
27                                          "virtio/virtio_pci",
28					  "virtio/virtio_blk" ],
29                  flounderBindings = [ "virtio" ],
30                  flounderExtraBindings = [ ("virtio", ["rpcclient"])]
31                },
32  build library { target = "virtio_host",
33                  addCFlags = [ "-D__VIRTIO_HOST__" ],
34                      cFiles = [ "virtqueue_host.c",
35                                 "device.c",
36                                 "vbuffer.c",
37                                 "backends/virtio_device_mmio.c",
38                                 "backends/virtio_device_pci.c",
39                                 "devices/virtio_block.c",
40                                 "host.c",
41                      	   	     "host/channel_flounder.c",
42                      	   		 "host/channel_xeon_phi.c" ],
43                      mackerelDevices = [ "virtio/virtio_mmio",
44                                          "virtio/virtio_pci",
45					  "virtio/virtio_blk" ],
46	             flounderBindings = [ "virtio" ],
47                  flounderExtraBindings = [ ("virtio", ["rpcclient"])]
48                }
49]
50