unbreak wrong-endianness issue (on non-linux), fix patch and add checks
[openadk.git] / target / tools / squashfs / Makefile
blobcfe4a5339c7a1446a5a31aeecf7b744add0c2171
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(TOPDIR)/rules.mk
6 PKG_NAME:= squashfs
7 PKG_VERSION:= 4.0
8 PKG_RELEASE:= 2
9 PKG_MD5SUM:= a3c23391da4ebab0ac4a75021ddabf96
10 PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=squashfs/}
11 DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz
12 WRKDIST= ${WRKDIR}/$(PKG_NAME)${PKG_VERSION}
14 include ../rules.mk
16 $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
17 ${MAKE} -C ${WRKBUILD}/squashfs-tools CC='${HOSTCC}'
18 touch $@
20 ${STAGING_HOST_DIR}/bin/mksquashfs: $(WRKBUILD)/.compiled
21 $(INSTALL_BIN) $(WRKBUILD)/squashfs-tools/mksquashfs \
22 ${STAGING_HOST_DIR}/bin
24 install: ${STAGING_HOST_DIR}/bin/mksquashfs
26 include $(TOPDIR)/mk/tools.mk