Makefile 568 B

123456789101112131415161718192021
  1. CFLAGS += -I. -g -O2 -Wall -D_LGPL_SOURCE
  2. LDFLAGS += -lpthread -lurcu
  3. TARGETS = main
  4. OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \
  5. regression1.o regression2.o regression3.o multiorder.o \
  6. iteration_check.o
  7. targets: $(TARGETS)
  8. main: $(OFILES)
  9. $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main
  10. clean:
  11. $(RM) -f $(TARGETS) *.o radix-tree.c
  12. $(OFILES): *.h */*.h ../../../include/linux/radix-tree.h ../../include/linux/*.h
  13. radix-tree.c: ../../../lib/radix-tree.c
  14. sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@