| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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"
- $(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
|