perf tools: Don't clone maps from parent when synthesizing forks
[linux/fpc-iii.git] / tools / testing / scatterlist / Makefile
blob933c3a6e4d77a3a922a66cb8fb365014a2f88b6c
1 CFLAGS += -I. -I../../include -g -O2 -Wall -fsanitize=address
2 LDFLAGS += -fsanitize=address -fsanitize=undefined
3 TARGETS = main
4 OFILES = main.o scatterlist.o
6 ifeq ($(BUILD), 32)
7 CFLAGS += -m32
8 LDFLAGS += -m32
9 endif
11 targets: include $(TARGETS)
13 main: $(OFILES)
15 clean:
16 $(RM) $(TARGETS) $(OFILES) scatterlist.c linux/scatterlist.h linux/highmem.h linux/kmemleak.h asm/io.h
17 @rmdir asm
19 scatterlist.c: ../../../lib/scatterlist.c
20 @sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@
22 .PHONY: include
24 include: ../../../include/linux/scatterlist.h
25 @mkdir -p linux
26 @mkdir -p asm
27 @touch asm/io.h
28 @touch linux/highmem.h
29 @touch linux/kmemleak.h
30 @cp $< linux/scatterlist.h