Makefile.in 1.2 KB

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