summaryrefslogtreecommitdiff
path: root/target/tools/squashfs/Makefile
blob: bcc966274117f3b4d1b857a335ad1d4c6702f8ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		squashfs
PKG_VERSION:=		4.0
PKG_RELEASE:=		2
PKG_MD5SUM:=		a3c23391da4ebab0ac4a75021ddabf96
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=squashfs/}

DISTFILES:=		${PKG_NAME}${PKG_VERSION}.tar.gz
WRKDIST=		${WRKDIR}/$(PKG_NAME)${PKG_VERSION}

include ../rules.mk

all: ${STAGING_HOST_DIR}/bin/mksquashfs

$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
	${MAKE} -C ${WRKBUILD}/squashfs-tools CC='${CC_FOR_BUILD}'
	touch $@

${STAGING_HOST_DIR}/bin/mksquashfs: $(WRKBUILD)/.compiled
	$(INSTALL_BIN) $(WRKBUILD)/squashfs-tools/mksquashfs \
		${STAGING_HOST_DIR}/bin

include $(TOPDIR)/mk/tools.mk