1 # SPDX-License-Identifier: GPL-2.0-only
2 CFLAGS += -I. -I../../include -g -O2 -Wall -fsanitize=address
3 LDFLAGS += -fsanitize=address -fsanitize=undefined
5 OFILES = main.o scatterlist.o
12 targets: include $(TARGETS)
17 $(RM) $(TARGETS) $(OFILES) scatterlist.c linux/scatterlist.h linux/highmem.h linux/kmemleak.h asm/io.h
20 scatterlist.c: ../../../lib/scatterlist.c
21 @sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@
25 include: ../../../include/linux/scatterlist.h
29 @touch linux/highmem.h
30 @touch linux/kmemleak.h
31 @cp $< linux/scatterlist.h