Makefile.in 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. SHELL = @SHELL@
  2. top_srcdir = @top_srcdir@
  3. top_builddir = @top_builddir@
  4. srcdir = @srcdir@
  5. VPATH = @srcdir@
  6. LIBELF_BUNDLED = @LIBELF_BUNDLED@
  7. @SET_MAKE@
  8. #include $(top_srcdir)/build/build.mk
  9. .PHONY: default clean distclean normal debug general buildcheck notice notice_debug build units libelf libelf_notice bdlib
  10. default: normal
  11. clean:
  12. -+@cd bdlib && $(MAKE) clean
  13. -+@if [ -n "${LIBELF_BUNDLED}" ] && [ -f libelf/Makefile ]; then \
  14. cd libelf && $(MAKE) clean; \
  15. fi
  16. @rm -f *.a
  17. distclean: clean
  18. -+@cd bdlib && $(MAKE) distclean
  19. -+@if [ -n "${LIBELF_BUNDLED}" ] && [ -f libelf/Makefile ]; then \
  20. cd libelf && $(MAKE) distclean; \
  21. fi
  22. notice:
  23. @echo "[*] Making libraries"
  24. notice_debug:
  25. @echo "[*] Making libraries (debug)"
  26. normal: general notice build
  27. debug: general notice_debug build.debug
  28. general:
  29. libelf_notice:
  30. @echo "[*] Building libelf"
  31. .PHONY: $(top_builddir)/lib/libelf/lib/libelf.a
  32. $(top_builddir)/lib/libelf/lib/libelf.a: libelf_notice
  33. +@cd libelf/lib && $(MAKE) CFLAGS="-g -O2 -w" libelf.a
  34. libelf: $(LIBELF_BUNDLED)
  35. .PHONY: $(top_builddir)/lib/bdlib/libbdlib.a
  36. $(top_builddir)/lib/bdlib/libbdlib.a:
  37. +@cd bdlib && $(MAKE)
  38. bdlib: $(top_builddir)/lib/bdlib/libbdlib.a
  39. build: $(top_builddir)/lib/bdlib/libbdlib.a $(LIBELF_BUNDLED)
  40. build.debug: $(top_builddir)/lib/bdlib/libbdlib.a $(LIBELF_BUNDLED)
  41. buildcheck: build
  42. units:
  43. # +@cd bdlib/tests && $(MAKE) units