Makefile 382 B

123456789101112131415161718
  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. all: io_uring-cp io_uring-bench
  6. %: %.c
  7. $(CC) $(CFLAGS) -o $@ $^
  8. io_uring-bench: syscall.o io_uring-bench.o
  9. $(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)
  10. io_uring-cp: setup.o syscall.o queue.o
  11. clean:
  12. $(RM) io_uring-cp io_uring-bench *.o
  13. .PHONY: all clean