1
0

Makefile 875 B

1234567891011121314151617181920212223242526272829
  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. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= squashfs
  5. PKG_VERSION:= 4.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1b7a781fb4cf8938842279bd3e8ee852
  8. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=squashfs/}
  9. DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz
  10. WRKDIST= ${WRKDIR}/$(PKG_NAME)${PKG_VERSION}
  11. include ../rules.mk
  12. install: ${STAGING_HOST_DIR}/usr/bin/mksquashfs
  13. $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
  14. ${MAKE} -C ${WRKBUILD}/squashfs-tools CC='${CC_FOR_BUILD}' \
  15. XZ_SUPPORT=1 CPPFLAGS_FOR_BUILD=$(CPPFLAGS_FOR_BUILD) \
  16. EXTRA_LDFLAGS=$(LDFLAGS_FOR_BUILD)
  17. @touch $@
  18. ${STAGING_HOST_DIR}/usr/bin/mksquashfs: $(WRKBUILD)/.compiled
  19. $(INSTALL_BIN) $(WRKBUILD)/squashfs-tools/mksquashfs \
  20. ${STAGING_HOST_DIR}/usr/bin
  21. include $(TOPDIR)/mk/tools.mk