Makefile revision 2d4c918a517cc567ca935c352e3993133d39945f
1a8775b3bd473537100867e1d985163c2484e6a1bplougher############################################### 2a8775b3bd473537100867e1d985163c2484e6a1bplougher# Compression build options # 3a8775b3bd473537100867e1d985163c2484e6a1bplougher############################################### 4898b10b3b19504126a4aec1d1a028b1e58109fedplougher# 576b7c832bb72020749efcef5cdc8fefffac87f25plougher# 676b7c832bb72020749efcef5cdc8fefffac87f25plougher############# Building gzip support ########### 776b7c832bb72020749efcef5cdc8fefffac87f25plougher# 876b7c832bb72020749efcef5cdc8fefffac87f25plougher# Gzip support is by default enabled, and the compression type default 976b7c832bb72020749efcef5cdc8fefffac87f25plougher# (COMP_DEFAULT) is gzip. 1076b7c832bb72020749efcef5cdc8fefffac87f25plougher# 1176b7c832bb72020749efcef5cdc8fefffac87f25plougher# If you don't want/need gzip support then comment out the GZIP SUPPORT line 1276b7c832bb72020749efcef5cdc8fefffac87f25plougher# below, and change COMP_DEFAULT to one of the compression types you have 1376b7c832bb72020749efcef5cdc8fefffac87f25plougher# selected. 1476b7c832bb72020749efcef5cdc8fefffac87f25plougher# 1576b7c832bb72020749efcef5cdc8fefffac87f25plougher# Obviously, you must select at least one of the available gzip, lzma, lzo 1676b7c832bb72020749efcef5cdc8fefffac87f25plougher# compression types. 1776b7c832bb72020749efcef5cdc8fefffac87f25plougher# 1876b7c832bb72020749efcef5cdc8fefffac87f25plougherGZIP_SUPPORT = 1 1976b7c832bb72020749efcef5cdc8fefffac87f25plougher 2067dfce9c3751f0580633e8a33cea28bcfbefec04plougher########### Building XZ support ############# 2167dfce9c3751f0580633e8a33cea28bcfbefec04plougher# 2267dfce9c3751f0580633e8a33cea28bcfbefec04plougher# LZMA2 compression. 2367dfce9c3751f0580633e8a33cea28bcfbefec04plougher# 2467dfce9c3751f0580633e8a33cea28bcfbefec04plougher# XZ Utils liblzma (http://tukaani.org/xz/) is supported 2567dfce9c3751f0580633e8a33cea28bcfbefec04plougher# 2667dfce9c3751f0580633e8a33cea28bcfbefec04plougher# To build using XZ Utils liblzma - install the library and uncomment 2767dfce9c3751f0580633e8a33cea28bcfbefec04plougher# the XZ_SUPPORT line below. 2867dfce9c3751f0580633e8a33cea28bcfbefec04plougher# 29a492e35bbfaa155193a952f34a5db62633fe4fddplougher#XZ_SUPPORT = 1 3067dfce9c3751f0580633e8a33cea28bcfbefec04plougher 31c801ba5494e53c5cad6c16241bdad01b3de33717plougher 32c801ba5494e53c5cad6c16241bdad01b3de33717plougher############ Building LZO support ############## 33c801ba5494e53c5cad6c16241bdad01b3de33717plougher# 34c801ba5494e53c5cad6c16241bdad01b3de33717plougher# The LZO library (http://www.oberhumer.com/opensource/lzo/) is supported. 35c801ba5494e53c5cad6c16241bdad01b3de33717plougher# 36c801ba5494e53c5cad6c16241bdad01b3de33717plougher# To build using the LZO library - install the library and uncomment the 37c801ba5494e53c5cad6c16241bdad01b3de33717plougher# LZO_SUPPORT line below. If needed, uncomment and set LZO_DIR to the 38c801ba5494e53c5cad6c16241bdad01b3de33717plougher# installation prefix. 39c801ba5494e53c5cad6c16241bdad01b3de33717plougher# 40a492e35bbfaa155193a952f34a5db62633fe4fddplougher#LZO_SUPPORT = 1 41c801ba5494e53c5cad6c16241bdad01b3de33717plougher#LZO_DIR = /usr/local 42c801ba5494e53c5cad6c16241bdad01b3de33717plougher 432d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher 442d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher########### Building LZ4 support ############# 452d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher# 462d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher# LZ4 (http://xxx/) is supported 472d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher# 482d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher# To build install the library and uncomment 492d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher# the LZ4_SUPPORT line below. 502d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher# 512d4c918a517cc567ca935c352e3993133d39945fPhillip LougherLZ4_SUPPORT = 1 522d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher 532d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher 54ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher########### Building LZMA support ############# 55ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# 56ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# LZMA1 compression. 57ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# 58ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# LZMA1 compression is deprecated, and the newer and better XZ (LZMA2) 59ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# compression should be used in preference. 60ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# 61ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# Both XZ Utils liblzma (http://tukaani.org/xz/) and LZMA SDK 62ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# (http://www.7-zip.org/sdk.html) are supported 63ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# 64ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# To build using XZ Utils liblzma - install the library and uncomment 65ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# the LZMA_XZ_SUPPORT line below. 66ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# 67ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# To build using the LZMA SDK (4.65 used in development, other versions may 68ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# work) - download and unpack it, uncomment and set LZMA_DIR to unpacked source, 69ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# and uncomment the LZMA_SUPPORT line below. 70ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# 71ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#LZMA_XZ_SUPPORT = 1 72ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#LZMA_SUPPORT = 1 73ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#LZMA_DIR = ../../../../LZMA/lzma465 74c801ba5494e53c5cad6c16241bdad01b3de33717plougher 75c801ba5494e53c5cad6c16241bdad01b3de33717plougher######## Specifying default compression ######## 76a8775b3bd473537100867e1d985163c2484e6a1bplougher# 77a8775b3bd473537100867e1d985163c2484e6a1bplougher# The next line specifies which compression algorithm is used by default 78a8775b3bd473537100867e1d985163c2484e6a1bplougher# in Mksquashfs. Obviously the compression algorithm must have been 79a8775b3bd473537100867e1d985163c2484e6a1bplougher# selected to be built 8076b7c832bb72020749efcef5cdc8fefffac87f25plougher# 81a8775b3bd473537100867e1d985163c2484e6a1bplougherCOMP_DEFAULT = gzip 82a8775b3bd473537100867e1d985163c2484e6a1bplougher 83a8775b3bd473537100867e1d985163c2484e6a1bplougher############################################### 84499f17fb81e40778ce611eb493d0ed5a08e99c29plougher# Extended attribute (XATTRs) build options # 85a8775b3bd473537100867e1d985163c2484e6a1bplougher############################################### 869e0e290195380993755420150cb1ddc66e7d3d95plougher# 879e0e290195380993755420150cb1ddc66e7d3d95plougher# Building XATTR support for Mksquashfs and Unsquashfs 889e0e290195380993755420150cb1ddc66e7d3d95plougher# 899e0e290195380993755420150cb1ddc66e7d3d95plougher# If your C library or build/target environment doesn't support XATTRs then 90a8775b3bd473537100867e1d985163c2484e6a1bplougher# comment out the next line to build Mksquashfs and Unsquashfs without XATTR 919e0e290195380993755420150cb1ddc66e7d3d95plougher# support 928d1ffcac367d75b3b83721a1e133c4b79b36026fplougherXATTR_SUPPORT = 1 93860c1f3d8aa4ba40d587382a91821bea03b023c5plougher 94df9d38a515489c2c573754ad81abd230dfd8b1f0plougher# Select whether you wish xattrs to be stored by Mksquashfs and extracted 95df9d38a515489c2c573754ad81abd230dfd8b1f0plougher# by Unsquashfs by default. If selected users can disable xattr support by 96df9d38a515489c2c573754ad81abd230dfd8b1f0plougher# using the -no-xattrs option 97df9d38a515489c2c573754ad81abd230dfd8b1f0plougher# 98a8775b3bd473537100867e1d985163c2484e6a1bplougher# If unselected, Mksquashfs/Unsquashfs won't store and extract xattrs by 99a8775b3bd473537100867e1d985163c2484e6a1bplougher# default. Users can enable xattrs by using the -xattrs option. 100df9d38a515489c2c573754ad81abd230dfd8b1f0plougherXATTR_DEFAULT = 1 101df9d38a515489c2c573754ad81abd230dfd8b1f0plougher 102a8775b3bd473537100867e1d985163c2484e6a1bplougher 103a8775b3bd473537100867e1d985163c2484e6a1bplougher############################################### 104a8775b3bd473537100867e1d985163c2484e6a1bplougher# End of BUILD options section # 105a8775b3bd473537100867e1d985163c2484e6a1bplougher############################################### 106764dab5cd71bda25bc755de08908dbbd58c1a450plougher 107bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherINCLUDEDIR = -I. 108e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougherINSTALL_DIR = /usr/local/bin 109e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher 1104bcb7f87d69edc99adce34232f7cb9dea84ab923Phillip LougherMKSQUASHFS_OBJS = mksquashfs.o read_fs.o sort.o swap.o pseudo.o compressor.o \ 11171f3964ce67bf6c9eb4816872cd5db1d69d8cf28Phillip Lougher action.o progressbar.o read_file.o info.o restore.o \ 11271f3964ce67bf6c9eb4816872cd5db1d69d8cf28Phillip Lougher caches-queues-lists.o 113ee76f483a300f916990895b9630cdb19c6d79020plougher 114ee76f483a300f916990895b9630cdb19c6d79020plougherUNSQUASHFS_OBJS = unsquashfs.o unsquash-1.o unsquash-2.o unsquash-3.o \ 115fec0a36c9b8a2c91c2930ea57b304299490ccedfPhillip Lougher unsquash-4.o swap.o compressor.o unsquashfs_info.o 116ee76f483a300f916990895b9630cdb19c6d79020plougher 11786b95b73413263f345878d5ce8836c38c997e1cfWolfram SangCFLAGS ?= -O2 11886b95b73413263f345878d5ce8836c38c997e1cfWolfram SangCFLAGS += $(EXTRA_CFLAGS) $(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 \ 119d9f6e877c2e4a46076265c579b33bc1d8e6f116aPhillip Lougher -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"$(COMP_DEFAULT)\" \ 12086b95b73413263f345878d5ce8836c38c997e1cfWolfram Sang -Wall 1211f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher 122f2ede5d734b13b69361a02ead8de1e1bfd7891d7plougherLIBS = -lpthread -lm 1239b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(GZIP_SUPPORT),1) 12476b7c832bb72020749efcef5cdc8fefffac87f25plougherCFLAGS += -DGZIP_SUPPORT 12576b7c832bb72020749efcef5cdc8fefffac87f25plougherMKSQUASHFS_OBJS += gzip_wrapper.o 12676b7c832bb72020749efcef5cdc8fefffac87f25plougherUNSQUASHFS_OBJS += gzip_wrapper.o 12776b7c832bb72020749efcef5cdc8fefffac87f25plougherLIBS += -lz 1280ceb24fc944027a424347c8e880c9784852f75fdplougherCOMPRESSORS += gzip 12976b7c832bb72020749efcef5cdc8fefffac87f25plougherendif 13076b7c832bb72020749efcef5cdc8fefffac87f25plougher 1319b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_SUPPORT),1) 132ee76f483a300f916990895b9630cdb19c6d79020plougherLZMA_OBJS = $(LZMA_DIR)/C/Alloc.o $(LZMA_DIR)/C/LzFind.o \ 133ee76f483a300f916990895b9630cdb19c6d79020plougher $(LZMA_DIR)/C/LzmaDec.o $(LZMA_DIR)/C/LzmaEnc.o $(LZMA_DIR)/C/LzmaLib.o 134bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherINCLUDEDIR += -I$(LZMA_DIR)/C 135bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherCFLAGS += -DLZMA_SUPPORT 136bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherMKSQUASHFS_OBJS += lzma_wrapper.o $(LZMA_OBJS) 137bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherUNSQUASHFS_OBJS += lzma_wrapper.o $(LZMA_OBJS) 1380ceb24fc944027a424347c8e880c9784852f75fdplougherCOMPRESSORS += lzma 139bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherendif 1401f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher 1419b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_XZ_SUPPORT),1) 1426b2fbe3a0dc489a167919ff518b8fc20b63e3c6fplougherCFLAGS += -DLZMA_SUPPORT 143ebdcf0ab9d3d9c6f646ceab7e10eeb096ee73983plougherMKSQUASHFS_OBJS += lzma_xz_wrapper.o 144ebdcf0ab9d3d9c6f646ceab7e10eeb096ee73983plougherUNSQUASHFS_OBJS += lzma_xz_wrapper.o 1456b2fbe3a0dc489a167919ff518b8fc20b63e3c6fplougherLIBS += -llzma 1460ceb24fc944027a424347c8e880c9784852f75fdplougherCOMPRESSORS += lzma 1476b2fbe3a0dc489a167919ff518b8fc20b63e3c6fplougherendif 1486b2fbe3a0dc489a167919ff518b8fc20b63e3c6fplougher 149d9f6e877c2e4a46076265c579b33bc1d8e6f116aPhillip Lougherifeq ($(XZ_SUPPORT),1) 15067dfce9c3751f0580633e8a33cea28bcfbefec04plougherCFLAGS += -DXZ_SUPPORT 15167dfce9c3751f0580633e8a33cea28bcfbefec04plougherMKSQUASHFS_OBJS += xz_wrapper.o 15267dfce9c3751f0580633e8a33cea28bcfbefec04plougherUNSQUASHFS_OBJS += xz_wrapper.o 15367dfce9c3751f0580633e8a33cea28bcfbefec04plougherLIBS += -llzma 15467dfce9c3751f0580633e8a33cea28bcfbefec04plougherCOMPRESSORS += xz 15567dfce9c3751f0580633e8a33cea28bcfbefec04plougherendif 15667dfce9c3751f0580633e8a33cea28bcfbefec04plougher 1579b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZO_SUPPORT),1) 158c801ba5494e53c5cad6c16241bdad01b3de33717plougherCFLAGS += -DLZO_SUPPORT 159c801ba5494e53c5cad6c16241bdad01b3de33717plougherifdef LZO_DIR 160c801ba5494e53c5cad6c16241bdad01b3de33717plougherINCLUDEDIR += -I$(LZO_DIR)/include 161c801ba5494e53c5cad6c16241bdad01b3de33717plougherLZO_LIBDIR = -L$(LZO_DIR)/lib 162c801ba5494e53c5cad6c16241bdad01b3de33717plougherendif 163c801ba5494e53c5cad6c16241bdad01b3de33717plougherMKSQUASHFS_OBJS += lzo_wrapper.o 164c801ba5494e53c5cad6c16241bdad01b3de33717plougherUNSQUASHFS_OBJS += lzo_wrapper.o 165c801ba5494e53c5cad6c16241bdad01b3de33717plougherLIBS += $(LZO_LIBDIR) -llzo2 1660ceb24fc944027a424347c8e880c9784852f75fdplougherCOMPRESSORS += lzo 167c801ba5494e53c5cad6c16241bdad01b3de33717plougherendif 168c801ba5494e53c5cad6c16241bdad01b3de33717plougher 1692d4c918a517cc567ca935c352e3993133d39945fPhillip Lougherifeq ($(LZ4_SUPPORT),1) 1702d4c918a517cc567ca935c352e3993133d39945fPhillip LougherCFLAGS += -DLZ4_SUPPORT 1712d4c918a517cc567ca935c352e3993133d39945fPhillip LougherMKSQUASHFS_OBJS += lz4_wrapper.o 1722d4c918a517cc567ca935c352e3993133d39945fPhillip LougherUNSQUASHFS_OBJS += lz4_wrapper.o 1732d4c918a517cc567ca935c352e3993133d39945fPhillip LougherLIBS += -llz4 1742d4c918a517cc567ca935c352e3993133d39945fPhillip LougherCOMPRESSORS += lz4 1752d4c918a517cc567ca935c352e3993133d39945fPhillip Lougherendif 1762d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher 1779b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(XATTR_SUPPORT),1) 1789b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(XATTR_DEFAULT),1) 179df9d38a515489c2c573754ad81abd230dfd8b1f0plougherCFLAGS += -DXATTR_SUPPORT -DXATTR_DEFAULT 180df9d38a515489c2c573754ad81abd230dfd8b1f0plougherelse 181860c1f3d8aa4ba40d587382a91821bea03b023c5plougherCFLAGS += -DXATTR_SUPPORT 182df9d38a515489c2c573754ad81abd230dfd8b1f0plougherendif 183860c1f3d8aa4ba40d587382a91821bea03b023c5plougherMKSQUASHFS_OBJS += xattr.o read_xattrs.o 184860c1f3d8aa4ba40d587382a91821bea03b023c5plougherUNSQUASHFS_OBJS += read_xattrs.o unsquashfs_xattr.o 185860c1f3d8aa4ba40d587382a91821bea03b023c5plougherendif 186860c1f3d8aa4ba40d587382a91821bea03b023c5plougher 1878109045af395896c4391fb833c1cd55eeea594cdplougher# 188445b9123906a5184e5821a84b0da385e3b4964adplougher# If LZMA_SUPPORT is specified then LZMA_DIR must be specified too 1898109045af395896c4391fb833c1cd55eeea594cdplougher# 1909b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_SUPPORT),1) 191d3d6b4adc0a53e8a8eb5df7567f334d798d73faeplougherifndef LZMA_DIR 1923bd9fd61336bdfe63c44debe2bd003c49cda42c4plougher$(error "LZMA_SUPPORT requires LZMA_DIR to be also defined") 1938109045af395896c4391fb833c1cd55eeea594cdplougherendif 1948109045af395896c4391fb833c1cd55eeea594cdplougherendif 1958109045af395896c4391fb833c1cd55eeea594cdplougher 1969d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougher# 197ebdcf0ab9d3d9c6f646ceab7e10eeb096ee73983plougher# Both LZMA_XZ_SUPPORT and LZMA_SUPPORT cannot be specified 1989d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougher# 1999b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_XZ_SUPPORT),1) 2009b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_SUPPORT),1) 201f4c143a860084e402b0a3b139bcd5520a2129fc4plougher$(error "Both LZMA_XZ_SUPPORT and LZMA_SUPPORT cannot be specified") 2029d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougherendif 2039d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougherendif 2049d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougher 20527e877e01958826a5885e67bbd04aaaccb8db0a8plougher# 20627e877e01958826a5885e67bbd04aaaccb8db0a8plougher# At least one compressor must have been selected 20727e877e01958826a5885e67bbd04aaaccb8db0a8plougher# 208399d079528b83123344f3cf92975dcc2b62a3d27plougherifndef COMPRESSORS 20967dfce9c3751f0580633e8a33cea28bcfbefec04plougher$(error "No compressor selected! Select one or more of GZIP, LZMA, XZ or LZO!") 21027e877e01958826a5885e67bbd04aaaccb8db0a8plougherendif 21127e877e01958826a5885e67bbd04aaaccb8db0a8plougher 2120ceb24fc944027a424347c8e880c9784852f75fdplougher# 2130ceb24fc944027a424347c8e880c9784852f75fdplougher# COMP_DEFAULT must be a selected compressor 2140ceb24fc944027a424347c8e880c9784852f75fdplougher# 2150ceb24fc944027a424347c8e880c9784852f75fdplougherifeq (, $(findstring $(COMP_DEFAULT), $(COMPRESSORS))) 2160ceb24fc944027a424347c8e880c9784852f75fdplougher$(error "COMP_DEFAULT isn't selected to be built!") 2170ceb24fc944027a424347c8e880c9784852f75fdplougherendif 2180ceb24fc944027a424347c8e880c9784852f75fdplougher 2190268d5103f86a4262d79e442dd9d0e52deeb5b9bplougher.PHONY: all 220af6551e23a2b235612c4dce7467a2ab24d9cd199plougherall: mksquashfs unsquashfs 221443c15812032991c98b33b5424b17bcd55fe3575plougher 222bd533806b7eafbc4ceb0edc9e04360ca8df505b9ploughermksquashfs: $(MKSQUASHFS_OBJS) 22386b95b73413263f345878d5ce8836c38c997e1cfWolfram Sang $(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) $(MKSQUASHFS_OBJS) $(LIBS) -o $@ 2241f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher 225ed76c8571b641f23f9cc2df1a978f185caea8b8cploughermksquashfs.o: mksquashfs.c squashfs_fs.h mksquashfs.h sort.h squashfs_swap.h \ 2263b89ee8f79141ded7929145981c26362eeef2a26Phillip Lougher xattr.h pseudo.h compressor.h action.h progressbar.h 2271f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher 228ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherread_fs.o: read_fs.c squashfs_fs.h read_fs.h squashfs_swap.h compressor.h \ 229ed76c8571b641f23f9cc2df1a978f185caea8b8cplougher xattr.h 2301f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher 231ed76c8571b641f23f9cc2df1a978f185caea8b8cploughersort.o: sort.c squashfs_fs.h sort.h mksquashfs.h 232443c15812032991c98b33b5424b17bcd55fe3575plougher 233ee76f483a300f916990895b9630cdb19c6d79020plougherswap.o: swap.c 234db4621c2bc9b0fbcb9f99a0254b70d0b8c3df07cplougher 235ee76f483a300f916990895b9630cdb19c6d79020plougherpseudo.o: pseudo.c pseudo.h 236fd958432d2d06075b04940befb54bc4334c8a0abplougher 237e9d9beebfe205e98c700344f17914ef77b9fa253ploughercompressor.o: compressor.c compressor.h squashfs_fs.h 2383386d995d320ecb92ed5825f1fe5f177cd26e89fplougher 239ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherxattr.o: xattr.c xattr.h squashfs_fs.h squashfs_swap.h mksquashfs.h 240e6e0e1bdf98ad6faa63527e5bbdd3bd5e7e97a9eplougher 241ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherread_xattrs.o: read_xattrs.c xattr.h squashfs_fs.h squashfs_swap.h read_fs.h 2421b129839fa96a755f011fcaf1d06adc7cd6c28d2plougher 243494479fd097eaab956dda035c45efadc151cadc0Phillip Lougheraction.o: action.h squashfs_fs.h mksquashfs.h 2444bcb7f87d69edc99adce34232f7cb9dea84ab923Phillip Lougher 2453b89ee8f79141ded7929145981c26362eeef2a26Phillip Lougherprogressbar.o: progressbar.c 2463b89ee8f79141ded7929145981c26362eeef2a26Phillip Lougher 247c4b044f565ba7882e73acf6132b9d4be59690910Phillip Lougherread_file.o: read_file.c 248c4b044f565ba7882e73acf6132b9d4be59690910Phillip Lougher 24924551a8a473d7edb1835eb0f7dcf6e07e3a9d2e1Phillip Lougherinfo.o: info.c 25024551a8a473d7edb1835eb0f7dcf6e07e3a9d2e1Phillip Lougher 251a709bffbaba7f61e78a3c8294405c5d5540c7e0bPhillip Lougherrestore.o: restore.c 252a709bffbaba7f61e78a3c8294405c5d5540c7e0bPhillip Lougher 25371f3964ce67bf6c9eb4816872cd5db1d69d8cf28Phillip Loughercaches-queues-lists.o: caches-queues-lists.c 25471f3964ce67bf6c9eb4816872cd5db1d69d8cf28Phillip Lougher 25521cc2fdbd1070ebba742cc703d850ec02b51eb72ploughergzip_wrapper.o: gzip_wrapper.c compressor.h squashfs_fs.h 25621cc2fdbd1070ebba742cc703d850ec02b51eb72plougher 257b2270a636d1f91828944d37a82f9405bfb254268plougherlzma_wrapper.o: lzma_wrapper.c compressor.h squashfs_fs.h 258b2270a636d1f91828944d37a82f9405bfb254268plougher 25912e7325626eeb5d02c7298d0c638b1d06230f7f8plougherlzma_xz_wrapper.o: lzma_xz_wrapper.c compressor.h squashfs_fs.h 26012e7325626eeb5d02c7298d0c638b1d06230f7f8plougher 2616c0017874d2b7c5da2747d6cdacc3e8d33a2fd72plougherlzo_wrapper.o: lzo_wrapper.c compressor.h squashfs_fs.h 2626c0017874d2b7c5da2747d6cdacc3e8d33a2fd72plougher 2632d4c918a517cc567ca935c352e3993133d39945fPhillip Lougherlz4_wrapper.o: lz4_wrapper.c compressor.h squashfs_fs.h 2642d4c918a517cc567ca935c352e3993133d39945fPhillip Lougher 265bb0b576ef3371964ea794236c2053e488f0514c6plougherxz_wrapper.o: xz_wrapper.c compressor.h squashfs_fs.h 266bb0b576ef3371964ea794236c2053e488f0514c6plougher 267bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherunsquashfs: $(UNSQUASHFS_OBJS) 26886b95b73413263f345878d5ce8836c38c997e1cfWolfram Sang $(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) $(UNSQUASHFS_OBJS) $(LIBS) -o $@ 269443c15812032991c98b33b5424b17bcd55fe3575plougher 270ee76f483a300f916990895b9630cdb19c6d79020plougherunsquashfs.o: unsquashfs.h unsquashfs.c squashfs_fs.h squashfs_swap.h \ 271ed76c8571b641f23f9cc2df1a978f185caea8b8cplougher squashfs_compat.h xattr.h read_fs.h compressor.h 272e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher 273ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherunsquash-1.o: unsquashfs.h unsquash-1.c squashfs_fs.h squashfs_compat.h 274eb32ff41ec7a370002a1ec5ebb48debdc7a18499plougher 275ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherunsquash-2.o: unsquashfs.h unsquash-2.c squashfs_fs.h squashfs_compat.h 276eb32ff41ec7a370002a1ec5ebb48debdc7a18499plougher 277ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherunsquash-3.o: unsquashfs.h unsquash-3.c squashfs_fs.h squashfs_compat.h 278eb32ff41ec7a370002a1ec5ebb48debdc7a18499plougher 279ee76f483a300f916990895b9630cdb19c6d79020plougherunsquash-4.o: unsquashfs.h unsquash-4.c squashfs_fs.h squashfs_swap.h \ 280ed76c8571b641f23f9cc2df1a978f185caea8b8cplougher read_fs.h 281ed76c8571b641f23f9cc2df1a978f185caea8b8cplougher 282ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherunsquashfs_xattr.o: unsquashfs_xattr.c unsquashfs.h squashfs_fs.h xattr.h 283f81c7dc64b0d0321629805e1752ce0a755c685a7plougher 284fec0a36c9b8a2c91c2930ea57b304299490ccedfPhillip Lougherunsquashfs_info.o: unsquashfs.h squashfs_fs.h 285860c1f3d8aa4ba40d587382a91821bea03b023c5plougher 2860268d5103f86a4262d79e442dd9d0e52deeb5b9bplougher.PHONY: clean 287e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougherclean: 288e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher -rm -f *.o mksquashfs unsquashfs 289e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher 2900268d5103f86a4262d79e442dd9d0e52deeb5b9bplougher.PHONY: install 291f709418a42fb016e284d43611febe4e582d8d528plougherinstall: mksquashfs unsquashfs 292e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher mkdir -p $(INSTALL_DIR) 293e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher cp mksquashfs $(INSTALL_DIR) 294f709418a42fb016e284d43611febe4e582d8d528plougher cp unsquashfs $(INSTALL_DIR) 295