blob: 877a8a4721b679ea41c36464bc3bddcec44b9d53 [file] [log] [blame]
Michael S. Tsirkin481eaec2016-01-21 14:44:10 +02001all:
2
David S. Milleree58b572016-06-30 05:03:36 -04003all: ring virtio_ring_0_9 virtio_ring_poll virtio_ring_inorder ptr_ring noring
Michael S. Tsirkin481eaec2016-01-21 14:44:10 +02004
5CFLAGS += -Wall
6CFLAGS += -pthread -O2 -ggdb
7LDFLAGS += -pthread -O2 -ggdb
8
9main.o: main.c main.h
10ring.o: ring.c main.h
Michael S. Tsirkin9fb6bc52016-06-13 23:54:36 +030011ptr_ring.o: ptr_ring.c main.h ../../../include/linux/ptr_ring.h
Michael S. Tsirkin481eaec2016-01-21 14:44:10 +020012virtio_ring_0_9.o: virtio_ring_0_9.c main.h
13virtio_ring_poll.o: virtio_ring_poll.c virtio_ring_0_9.c main.h
Michael S. Tsirkince10c1b2016-05-08 18:43:54 +030014virtio_ring_inorder.o: virtio_ring_inorder.c virtio_ring_0_9.c main.h
Michael S. Tsirkin481eaec2016-01-21 14:44:10 +020015ring: ring.o main.o
16virtio_ring_0_9: virtio_ring_0_9.o main.o
17virtio_ring_poll: virtio_ring_poll.o main.o
Michael S. Tsirkince10c1b2016-05-08 18:43:54 +030018virtio_ring_inorder: virtio_ring_inorder.o main.o
Michael S. Tsirkin9fb6bc52016-06-13 23:54:36 +030019ptr_ring: ptr_ring.o main.o
Michael S. Tsirkin139ab4d2016-05-24 15:21:05 +030020noring: noring.o main.o
Michael S. Tsirkin481eaec2016-01-21 14:44:10 +020021clean:
22 -rm main.o
23 -rm ring.o ring
24 -rm virtio_ring_0_9.o virtio_ring_0_9
25 -rm virtio_ring_poll.o virtio_ring_poll
Michael S. Tsirkince10c1b2016-05-08 18:43:54 +030026 -rm virtio_ring_inorder.o virtio_ring_inorder
Michael S. Tsirkin9fb6bc52016-06-13 23:54:36 +030027 -rm ptr_ring.o ptr_ring
Michael S. Tsirkin139ab4d2016-05-24 15:21:05 +030028 -rm noring.o noring
Michael S. Tsirkin481eaec2016-01-21 14:44:10 +020029
30.PHONY: all clean