Makefile.in 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. -+@[ -n "${LIBELF_BUNDLED}" ] && [ -f libelf/Makefile && \
  14. cd libelf && $(MAKE) clean
  15. @rm -f *.a
  16. distclean: clean
  17. -+@cd bdlib && $(MAKE) distclean
  18. -+@[ -n "${LIBELF_BUNDLED}" ] && [ -f libelf/Makefile ] && \
  19. cd libelf && $(MAKE) distclean
  20. notice:
  21. @echo "[*] Making libraries"
  22. notice_debug:
  23. @echo "[*] Making libraries (debug)"
  24. normal: general notice build
  25. debug: general notice_debug build.debug
  26. general:
  27. libelf_notice:
  28. @echo "[*] Building libelf"
  29. $(top_builddir)/lib/libelf/lib/libelf.a: libelf_notice
  30. +@cd libelf/lib && $(MAKE) CFLAGS="-g -O2 -w" libelf.a
  31. libelf: $(LIBELF_BUNDLED)
  32. $(top_builddir)/lib/bdlib/src/libbdlib.a:
  33. +@cd bdlib && $(MAKE) bdlib
  34. bdlib: $(top_builddir)/lib/bdlib/src/libbdlib.a
  35. build: $(top_builddir)/lib/bdlib/src/libbdlib.a $(LIBELF_BUNDLED)
  36. build.debug: $(top_builddir)/lib/bdlib/src/libbdlib.a $(LIBELF_BUNDLED)
  37. buildcheck: build
  38. units:
  39. # +@cd bdlib/tests && $(MAKE) units