Makefile 644 字节
Newer Older
M
Matthew Wilcox 已提交
1

M
Matthew Wilcox 已提交
2
CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE
M
Matthew Wilcox 已提交
3 4 5
LDFLAGS += -lpthread -lurcu
TARGETS = main
OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \
6
	 regression1.o regression2.o regression3.o multiorder.o \
7 8 9 10 11
	 iteration_check.o benchmark.o

ifdef BENCHMARK
	CFLAGS += -DBENCHMARK=1
endif
M
Matthew Wilcox 已提交
12 13 14 15 16 17 18 19 20

targets: $(TARGETS)

main:	$(OFILES)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main

clean:
	$(RM) -f $(TARGETS) *.o radix-tree.c

21
$(OFILES): *.h */*.h ../../../include/linux/radix-tree.h ../../include/linux/*.h
M
Matthew Wilcox 已提交
22 23 24

radix-tree.c: ../../../lib/radix-tree.c
	sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@