Jens Axboe | 21b4aa5 | 2019-03-06 09:03:50 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # Makefile for io_uring test tools |
| 3 | CFLAGS += -Wall -Wextra -g -D_GNU_SOURCE |
| 4 | LDLIBS += -lpthread |
| 5 | |
| 6 | all: io_uring-cp io_uring-bench |
| 7 | %: %.c |
| 8 | $(CC) $(CFLAGS) -o $@ $^ |
| 9 | |
| 10 | io_uring-bench: syscall.o io_uring-bench.o |
Jens Axboe | 486f069 | 2019-05-22 08:47:54 -0600 | [diff] [blame] | 11 | $(CC) $(CFLAGS) -o $@ $^ $(LDLIBS) |
Jens Axboe | 21b4aa5 | 2019-03-06 09:03:50 -0700 | [diff] [blame] | 12 | |
| 13 | io_uring-cp: setup.o syscall.o queue.o |
| 14 | |
| 15 | clean: |
| 16 | $(RM) io_uring-cp io_uring-bench *.o |
| 17 | |
| 18 | .PHONY: all clean |