| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- SHELL = @SHELL@
- top_srcdir = @top_srcdir@
- top_builddir = @top_builddir@
- srcdir = @srcdir@
- VPATH = @srcdir@
- LIBELF_BUNDLED = @LIBELF_BUNDLED@
- @SET_MAKE@
- #include $(top_srcdir)/build/build.mk
- .PHONY: default clean distclean normal debug general buildcheck notice notice_debug build units libelf libelf_notice bdlib
- default: normal
- clean:
- -+@cd bdlib && $(MAKE) clean
- -+@if [ -n "${LIBELF_BUNDLED}" ] && [ -f libelf/Makefile ]; then \
- cd libelf && $(MAKE) clean; \
- fi
- @rm -f *.a
- distclean: clean
- -+@cd bdlib && $(MAKE) distclean
- -+@if [ -n "${LIBELF_BUNDLED}" ] && [ -f libelf/Makefile ]; then \
- cd libelf && $(MAKE) distclean; \
- fi
- notice:
- @echo "[*] Making libraries"
- notice_debug:
- @echo "[*] Making libraries (debug)"
- normal: general notice build
- debug: general notice_debug build.debug
- general:
- libelf_notice:
- @echo "[*] Building libelf"
- .PHONY: $(top_builddir)/lib/libelf/lib/libelf.a
- $(top_builddir)/lib/libelf/lib/libelf.a: libelf_notice
- +@cd libelf/lib && $(MAKE) CFLAGS="-g -O2 -w" libelf.a
- libelf: $(LIBELF_BUNDLED)
- .PHONY: $(top_builddir)/lib/bdlib/libbdlib.a
- $(top_builddir)/lib/bdlib/libbdlib.a:
- +@cd bdlib && $(MAKE)
- bdlib: $(top_builddir)/lib/bdlib/libbdlib.a
- build: $(top_builddir)/lib/bdlib/libbdlib.a $(LIBELF_BUNDLED)
- build.debug: $(top_builddir)/lib/bdlib/libbdlib.a $(LIBELF_BUNDLED)
- buildcheck: build
- units:
- # +@cd bdlib/tests && $(MAKE) units
|