1 # SPDX-License-Identifier: GPL-2.0-only << 2 CFLAGS += -I. -I../../include -g -O2 -Wall -fs 1 CFLAGS += -I. -I../../include -g -O2 -Wall -fsanitize=address 3 LDFLAGS += -fsanitize=address -fsanitize=undef 2 LDFLAGS += -fsanitize=address -fsanitize=undefined 4 TARGETS = main 3 TARGETS = main 5 OFILES = main.o scatterlist.o 4 OFILES = main.o scatterlist.o 6 5 7 ifeq ($(BUILD), 32) 6 ifeq ($(BUILD), 32) 8 CFLAGS += -m32 7 CFLAGS += -m32 9 LDFLAGS += -m32 8 LDFLAGS += -m32 10 endif 9 endif 11 10 12 targets: include $(TARGETS) 11 targets: include $(TARGETS) 13 12 14 main: $(OFILES) 13 main: $(OFILES) 15 14 16 clean: 15 clean: 17 $(RM) $(TARGETS) $(OFILES) scatterlist !! 16 $(RM) $(TARGETS) $(OFILES) scatterlist.c linux/scatterlist.h linux/highmem.h linux/kmemleak.h asm/io.h 18 @rmdir asm 17 @rmdir asm 19 18 20 scatterlist.c: ../../../lib/scatterlist.c 19 scatterlist.c: ../../../lib/scatterlist.c 21 @sed -e 's/^static //' -e 's/__always_ 20 @sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@ 22 21 23 .PHONY: include 22 .PHONY: include 24 23 25 include: ../../../include/linux/scatterlist.h 24 include: ../../../include/linux/scatterlist.h 26 @mkdir -p linux 25 @mkdir -p linux 27 @mkdir -p asm 26 @mkdir -p asm 28 @touch asm/io.h 27 @touch asm/io.h 29 @touch linux/highmem.h 28 @touch linux/highmem.h 30 @touch linux/kmemleak.h 29 @touch linux/kmemleak.h 31 @touch linux/slab.h << 32 @cp $< linux/scatterlist.h 30 @cp $< linux/scatterlist.h
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.