1CPPFLAGS ?= 2override CPPFLAGS += -D_GNU_SOURCE -I../src/include/ 3CFLAGS ?= -g -O2 4XCFLAGS = 5override CFLAGS += -Wall -L../src/ 6 7include ../Makefile.quiet 8 9ifneq ($(MAKECMDGOALS),clean) 10include ../config-host.mak 11endif 12 13all_targets += io_uring-test io_uring-cp link-cp 14 15ifdef CONFIG_HAVE_UCONTEXT 16all_targets += ucontext-cp 17endif 18 19all: $(all_targets) 20 21test_srcs := io_uring-test.c io_uring-cp.c link-cp.c 22 23test_objs := $(patsubst %.c,%.ol,$(test_srcs)) 24 25%: %.c 26 $(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -luring $(XCFLAGS) 27 28clean: 29 @rm -f $(all_targets) $(test_objs) 30