2016-01-21 20:44:10 +08:00
|
|
|
all:
|
|
|
|
|
2016-06-30 17:03:36 +08:00
|
|
|
all: ring virtio_ring_0_9 virtio_ring_poll virtio_ring_inorder ptr_ring noring
|
2016-01-21 20:44:10 +08:00
|
|
|
|
|
|
|
CFLAGS += -Wall
|
2016-10-06 17:39:10 +08:00
|
|
|
CFLAGS += -pthread -O2 -ggdb -flto -fwhole-program
|
|
|
|
LDFLAGS += -pthread -O2 -ggdb -flto -fwhole-program
|
2016-01-21 20:44:10 +08:00
|
|
|
|
|
|
|
main.o: main.c main.h
|
|
|
|
ring.o: ring.c main.h
|
2016-06-14 04:54:36 +08:00
|
|
|
ptr_ring.o: ptr_ring.c main.h ../../../include/linux/ptr_ring.h
|
2016-01-21 20:44:10 +08: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 23:43:54 +08:00
|
|
|
virtio_ring_inorder.o: virtio_ring_inorder.c virtio_ring_0_9.c main.h
|
2016-01-21 20:44:10 +08: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 23:43:54 +08:00
|
|
|
virtio_ring_inorder: virtio_ring_inorder.o main.o
|
2016-06-14 04:54:36 +08:00
|
|
|
ptr_ring: ptr_ring.o main.o
|
2016-05-24 20:21:05 +08:00
|
|
|
noring: noring.o main.o
|
2016-01-21 20:44:10 +08: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 23:43:54 +08:00
|
|
|
-rm virtio_ring_inorder.o virtio_ring_inorder
|
2016-06-14 04:54:36 +08:00
|
|
|
-rm ptr_ring.o ptr_ring
|
2016-05-24 20:21:05 +08:00
|
|
|
-rm noring.o noring
|
2016-01-21 20:44:10 +08:00
|
|
|
|
|
|
|
.PHONY: all clean
|