2016-01-21 19:44:10 +07:00
|
|
|
all:
|
|
|
|
|
2016-06-30 16:03:36 +07:00
|
|
|
all: ring virtio_ring_0_9 virtio_ring_poll virtio_ring_inorder ptr_ring noring
|
2016-01-21 19:44:10 +07:00
|
|
|
|
|
|
|
CFLAGS += -Wall
|
2016-10-06 16:39:10 +07:00
|
|
|
CFLAGS += -pthread -O2 -ggdb -flto -fwhole-program
|
|
|
|
LDFLAGS += -pthread -O2 -ggdb -flto -fwhole-program
|
2016-01-21 19:44:10 +07:00
|
|
|
|
|
|
|
main.o: main.c main.h
|
|
|
|
ring.o: ring.c main.h
|
2016-06-14 03:54:36 +07:00
|
|
|
ptr_ring.o: ptr_ring.c main.h ../../../include/linux/ptr_ring.h
|
2016-01-21 19:44:10 +07:00
|
|
|
virtio_ring_0_9.o: virtio_ring_0_9.c main.h
|
|
|
|
virtio_ring_poll.o: virtio_ring_poll.c virtio_ring_0_9.c main.h
|
2016-05-08 22:43:54 +07:00
|
|
|
virtio_ring_inorder.o: virtio_ring_inorder.c virtio_ring_0_9.c main.h
|
2016-01-21 19:44:10 +07:00
|
|
|
ring: ring.o main.o
|
|
|
|
virtio_ring_0_9: virtio_ring_0_9.o main.o
|
|
|
|
virtio_ring_poll: virtio_ring_poll.o main.o
|
2016-05-08 22:43:54 +07:00
|
|
|
virtio_ring_inorder: virtio_ring_inorder.o main.o
|
2016-06-14 03:54:36 +07:00
|
|
|
ptr_ring: ptr_ring.o main.o
|
2016-05-24 19:21:05 +07:00
|
|
|
noring: noring.o main.o
|
2016-01-21 19:44:10 +07:00
|
|
|
clean:
|
|
|
|
-rm main.o
|
|
|
|
-rm ring.o ring
|
|
|
|
-rm virtio_ring_0_9.o virtio_ring_0_9
|
|
|
|
-rm virtio_ring_poll.o virtio_ring_poll
|
2016-05-08 22:43:54 +07:00
|
|
|
-rm virtio_ring_inorder.o virtio_ring_inorder
|
2016-06-14 03:54:36 +07:00
|
|
|
-rm ptr_ring.o ptr_ring
|
2016-05-24 19:21:05 +07:00
|
|
|
-rm noring.o noring
|
2016-01-21 19:44:10 +07:00
|
|
|
|
|
|
|
.PHONY: all clean
|