| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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
- -+@[ -n "${LIBELF_BUNDLED}" ] && [ -f libelf/Makefile && \
- cd libelf && $(MAKE) clean
- @rm -f *.a
- distclean: clean
- -+@cd bdlib && $(MAKE) distclean
- -+@[ -n "${LIBELF_BUNDLED}" ] && [ -f libelf/Makefile ] && \
- cd libelf && $(MAKE) distclean
- 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"
- $(top_builddir)/lib/libelf/lib/libelf.a: libelf_notice
- +@cd libelf/lib && $(MAKE) CFLAGS="-g -O2 -w" libelf.a
- libelf: $(LIBELF_BUNDLED)
- $(top_builddir)/lib/bdlib/src/libbdlib.a:
- +@cd bdlib && $(MAKE) bdlib
- bdlib: $(top_builddir)/lib/bdlib/src/libbdlib.a
- build: $(top_builddir)/lib/bdlib/src/libbdlib.a $(LIBELF_BUNDLED)
- build.debug: $(top_builddir)/lib/bdlib/src/libbdlib.a $(LIBELF_BUNDLED)
- buildcheck: build
- units:
- # +@cd bdlib/tests && $(MAKE) units
|