xref: /OK3568_Linux_fs/kernel/tools/io_uring/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun# Makefile for io_uring test tools
3*4882a593SmuzhiyunCFLAGS += -Wall -Wextra -g -D_GNU_SOURCE
4*4882a593SmuzhiyunLDLIBS += -lpthread
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunall: io_uring-cp io_uring-bench
7*4882a593Smuzhiyun%: %.c
8*4882a593Smuzhiyun	$(CC) $(CFLAGS) -o $@ $^
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunio_uring-bench: syscall.o io_uring-bench.o
11*4882a593Smuzhiyun	$(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunio_uring-cp: setup.o syscall.o queue.o
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunclean:
16*4882a593Smuzhiyun	$(RM) io_uring-cp io_uring-bench *.o
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun.PHONY: all clean
19