host-bottom.mk 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. host-extract: ${_HOST_PATCH_COOKIE}
  4. host-configure:
  5. ${_HOST_CONFIGURE_COOKIE}: ${_HOST_PATCH_COOKIE}
  6. #@sed -e '/^#/d' ${REORDER_DEPENDENCIES} | \
  7. #tsort | while read f; do \
  8. # cd ${WRKSRC}; \
  9. # case $$f in \
  10. # /*) \
  11. # find . -name "$${f#/}" -print | while read i; do \
  12. # touch "$$i"; \
  13. # done;; \
  14. # *) \
  15. # if test -e "$$f" ; then \
  16. # touch "$$f"; \
  17. # fi;; \
  18. # esac; \
  19. #done
  20. @mkdir -p ${WRKBUILD}
  21. @$(CMD_TRACE) "configuring... "
  22. @cd ${WRKBUILD}; \
  23. for i in $$(find . -name config.sub);do \
  24. if [ -f $$i ]; then \
  25. ${CP} $$i $$i.bak; \
  26. ${CP} ${SCRIPT_DIR}/config.sub $$i; \
  27. fi; \
  28. done; \
  29. for i in $$(find . -name config.guess);do \
  30. if [ -f $$i ]; then \
  31. ${CP} $$i $$i.bak; \
  32. ${CP} ${SCRIPT_DIR}/config.guess $$i; \
  33. fi; \
  34. done;
  35. cd ${WRKBUILD}; rm -f config.{cache,status}; \
  36. env ${HOST_CONFIGURE_ENV} \
  37. ${BASH} ${WRKSRC}/${CONFIGURE_PROG} \
  38. --program-prefix= \
  39. --program-suffix= \
  40. --prefix=/usr \
  41. --bindir=/usr/bin \
  42. --datadir=/usr/share \
  43. --mandir=/usr/share/man \
  44. --libexecdir=/usr/libexec \
  45. --localstatedir=/var \
  46. --sysconfdir=/etc \
  47. --disable-dependency-tracking \
  48. --disable-libtool-lock \
  49. --disable-nls \
  50. ${HOST_CONFIGURE_ARGS} $(MAKE_TRACE)
  51. touch $@
  52. host-build:
  53. ${_HOST_BUILD_COOKIE}: ${_HOST_CONFIGURE_COOKIE}
  54. @$(CMD_TRACE) "compiling... "
  55. cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  56. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE)
  57. touch $@
  58. hpkg-install: ${ALL_HOSTINST}
  59. host-install:
  60. ${_HOST_FAKE_COOKIE}: ${_HOST_BUILD_COOKIE}
  61. cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  62. DESTDIR='${HOST_WRKINST}' ${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
  63. env ${HOST_MAKE_ENV} ${MAKE} hpkg-install $(MAKE_TRACE)
  64. rm -rf ${WRKBUILD} ${WRKDIST} ${WRKSRC}
  65. exec ${MAKE} host-extract $(MAKE_TRACE)
  66. touch $@
  67. ${_HOST_COOKIE}:
  68. exec ${MAKE} hostpackage
  69. hostpackage: ${ALL_HOSTDIRS}
  70. touch ${_HOST_COOKIE}