Root/tools/squashfs4/Makefile

1#
2# Copyright (C) 2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=squashfs4
10PKG_VERSION:=4.0
11
12PKG_SOURCE:=squashfs$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=@SF/squashfs
14PKG_MD5SUM:=a3c23391da4ebab0ac4a75021ddabf96
15PKG_CAT:=zcat
16
17HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/squashfs$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/host-build.mk
20
21define Host/Compile
22    $(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
23        USE_LZMA=1 \
24        LZMA_CFLAGS="-I$(STAGING_DIR_HOST)/include -DUSE_LZMA" \
25        LZMA_LIB="$(STAGING_DIR_HOST)/lib/liblzma.a" \
26        mksquashfs unsquashfs
27endef
28
29define Host/Install
30    $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/mksquashfs $(STAGING_DIR_HOST)/bin/mksquashfs4
31    $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/unsquashfs $(STAGING_DIR_HOST)/bin/unsquashfs4
32endef
33
34define Host/Clean
35    rm -f $(STAGING_DIR_HOST)/bin/mksquashfs4
36    rm -f $(STAGING_DIR_HOST)/bin/unsquashfs4
37endef
38
39$(eval $(call HostBuild))
40

Archive Download this file



interactive