]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/testing/radix-tree/Makefile
Merge branch 'akpm-current/current'
[karo-tx-linux.git] / tools / testing / radix-tree / Makefile
diff --git a/tools/testing/radix-tree/Makefile b/tools/testing/radix-tree/Makefile
new file mode 100644 (file)
index 0000000..3698a1a
--- /dev/null
@@ -0,0 +1,20 @@
+
+CFLAGS += -I. -g -Wall -D_LGPL_SOURCE
+LDFLAGS += -lpthread -lurcu
+TARGETS = main
+OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \
+        regression1.o regression2.o regression3.o
+
+targets: $(TARGETS)
+
+main:  $(OFILES)
+       $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main
+
+clean:
+       $(RM) -f $(TARGETS) *.o radix-tree.c
+
+$(OFILES): *.h */*.h
+
+radix-tree.c: ../../../lib/radix-tree.c
+       sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@
+