Michael S. Tsirkin | 481eaec | 2016-01-21 14:44:10 +0200 | [diff] [blame] | 1 | all: |
| 2 | |
David S. Miller | ee58b57 | 2016-06-30 05:03:36 -0400 | [diff] [blame] | 3 | all: ring virtio_ring_0_9 virtio_ring_poll virtio_ring_inorder ptr_ring noring |
Michael S. Tsirkin | 481eaec | 2016-01-21 14:44:10 +0200 | [diff] [blame] | 4 | |
| 5 | CFLAGS += -Wall |
| 6 | CFLAGS += -pthread -O2 -ggdb |
| 7 | LDFLAGS += -pthread -O2 -ggdb |
| 8 | |
| 9 | main.o: main.c main.h |
| 10 | ring.o: ring.c main.h |
Michael S. Tsirkin | 9fb6bc5 | 2016-06-13 23:54:36 +0300 | [diff] [blame] | 11 | ptr_ring.o: ptr_ring.c main.h ../../../include/linux/ptr_ring.h |
Michael S. Tsirkin | 481eaec | 2016-01-21 14:44:10 +0200 | [diff] [blame] | 12 | virtio_ring_0_9.o: virtio_ring_0_9.c main.h |
| 13 | virtio_ring_poll.o: virtio_ring_poll.c virtio_ring_0_9.c main.h |
Michael S. Tsirkin | ce10c1b | 2016-05-08 18:43:54 +0300 | [diff] [blame] | 14 | virtio_ring_inorder.o: virtio_ring_inorder.c virtio_ring_0_9.c main.h |
Michael S. Tsirkin | 481eaec | 2016-01-21 14:44:10 +0200 | [diff] [blame] | 15 | ring: ring.o main.o |
| 16 | virtio_ring_0_9: virtio_ring_0_9.o main.o |
| 17 | virtio_ring_poll: virtio_ring_poll.o main.o |
Michael S. Tsirkin | ce10c1b | 2016-05-08 18:43:54 +0300 | [diff] [blame] | 18 | virtio_ring_inorder: virtio_ring_inorder.o main.o |
Michael S. Tsirkin | 9fb6bc5 | 2016-06-13 23:54:36 +0300 | [diff] [blame] | 19 | ptr_ring: ptr_ring.o main.o |
Michael S. Tsirkin | 139ab4d | 2016-05-24 15:21:05 +0300 | [diff] [blame] | 20 | noring: noring.o main.o |
Michael S. Tsirkin | 481eaec | 2016-01-21 14:44:10 +0200 | [diff] [blame] | 21 | clean: |
| 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. Tsirkin | ce10c1b | 2016-05-08 18:43:54 +0300 | [diff] [blame] | 26 | -rm virtio_ring_inorder.o virtio_ring_inorder |
Michael S. Tsirkin | 9fb6bc5 | 2016-06-13 23:54:36 +0300 | [diff] [blame] | 27 | -rm ptr_ring.o ptr_ring |
Michael S. Tsirkin | 139ab4d | 2016-05-24 15:21:05 +0300 | [diff] [blame] | 28 | -rm noring.o noring |
Michael S. Tsirkin | 481eaec | 2016-01-21 14:44:10 +0200 | [diff] [blame] | 29 | |
| 30 | .PHONY: all clean |