1
0

Makefile.in 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. $(top_builddir)/lib/libelf/lib/libelf.a: libelf_notice
  32. +@cd libelf/lib && $(MAKE) CFLAGS="-g -O2 -w" libelf.a
  33. libelf: $(LIBELF_BUNDLED)
  34. $(top_builddir)/lib/bdlib/src/libbdlib.a:
  35. +@cd bdlib && $(MAKE) bdlib
  36. bdlib: $(top_builddir)/lib/bdlib/src/libbdlib.a
  37. build: $(top_builddir)/lib/bdlib/src/libbdlib.a $(LIBELF_BUNDLED)
  38. build.debug: $(top_builddir)/lib/bdlib/src/libbdlib.a $(LIBELF_BUNDLED)
  39. buildcheck: build
  40. units:
  41. # +@cd bdlib/tests && $(MAKE) units