Makefile revision 4bcb7f87d69edc99adce34232f7cb9dea84ab923
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
43ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher########### Building LZMA support #############
44ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#
45ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# LZMA1 compression.
46ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#
47ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# LZMA1 compression is deprecated, and the newer and better XZ (LZMA2)
48ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# compression should be used in preference.
49ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#
50ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# Both XZ Utils liblzma (http://tukaani.org/xz/) and LZMA SDK
51ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# (http://www.7-zip.org/sdk.html) are supported
52ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#
53ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# To build using XZ Utils liblzma - install the library and uncomment
54ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# the LZMA_XZ_SUPPORT line below.
55ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#
56ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# To build using the LZMA SDK (4.65 used in development, other versions may
57ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# work) - download and unpack it, uncomment and set LZMA_DIR to unpacked source,
58ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher# and uncomment the LZMA_SUPPORT line below.
59ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#
60ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#LZMA_XZ_SUPPORT = 1
61ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#LZMA_SUPPORT = 1
62ea1a0906f98002a69af691fdd2456b89874bd047Phillip Lougher#LZMA_DIR = ../../../../LZMA/lzma465
63c801ba5494e53c5cad6c16241bdad01b3de33717plougher
64c801ba5494e53c5cad6c16241bdad01b3de33717plougher######## Specifying default compression ########
65a8775b3bd473537100867e1d985163c2484e6a1bplougher#
66a8775b3bd473537100867e1d985163c2484e6a1bplougher# The next line specifies which compression algorithm is used by default
67a8775b3bd473537100867e1d985163c2484e6a1bplougher# in Mksquashfs.  Obviously the compression algorithm must have been
68a8775b3bd473537100867e1d985163c2484e6a1bplougher# selected to be built
6976b7c832bb72020749efcef5cdc8fefffac87f25plougher#
70a8775b3bd473537100867e1d985163c2484e6a1bplougherCOMP_DEFAULT = gzip
71a8775b3bd473537100867e1d985163c2484e6a1bplougher
72a8775b3bd473537100867e1d985163c2484e6a1bplougher###############################################
73499f17fb81e40778ce611eb493d0ed5a08e99c29plougher#  Extended attribute (XATTRs) build options  #
74a8775b3bd473537100867e1d985163c2484e6a1bplougher###############################################
759e0e290195380993755420150cb1ddc66e7d3d95plougher#
769e0e290195380993755420150cb1ddc66e7d3d95plougher# Building XATTR support for Mksquashfs and Unsquashfs
779e0e290195380993755420150cb1ddc66e7d3d95plougher#
789e0e290195380993755420150cb1ddc66e7d3d95plougher# If your C library or build/target environment doesn't support XATTRs then
79a8775b3bd473537100867e1d985163c2484e6a1bplougher# comment out the next line to build Mksquashfs and Unsquashfs without XATTR
809e0e290195380993755420150cb1ddc66e7d3d95plougher# support
818d1ffcac367d75b3b83721a1e133c4b79b36026fplougherXATTR_SUPPORT = 1
82860c1f3d8aa4ba40d587382a91821bea03b023c5plougher
83df9d38a515489c2c573754ad81abd230dfd8b1f0plougher# Select whether you wish xattrs to be stored by Mksquashfs and extracted
84df9d38a515489c2c573754ad81abd230dfd8b1f0plougher# by Unsquashfs by default.  If selected users can disable xattr support by
85df9d38a515489c2c573754ad81abd230dfd8b1f0plougher# using the -no-xattrs option
86df9d38a515489c2c573754ad81abd230dfd8b1f0plougher#
87a8775b3bd473537100867e1d985163c2484e6a1bplougher# If unselected, Mksquashfs/Unsquashfs won't store and extract xattrs by
88a8775b3bd473537100867e1d985163c2484e6a1bplougher# default.  Users can enable xattrs by using the -xattrs option.
89df9d38a515489c2c573754ad81abd230dfd8b1f0plougherXATTR_DEFAULT = 1
90df9d38a515489c2c573754ad81abd230dfd8b1f0plougher
91a8775b3bd473537100867e1d985163c2484e6a1bplougher
92a8775b3bd473537100867e1d985163c2484e6a1bplougher###############################################
93a8775b3bd473537100867e1d985163c2484e6a1bplougher#        End of BUILD options section         #
94a8775b3bd473537100867e1d985163c2484e6a1bplougher###############################################
95764dab5cd71bda25bc755de08908dbbd58c1a450plougher
96bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherINCLUDEDIR = -I.
97e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougherINSTALL_DIR = /usr/local/bin
98e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher
994bcb7f87d69edc99adce34232f7cb9dea84ab923Phillip LougherMKSQUASHFS_OBJS = mksquashfs.o read_fs.o sort.o swap.o pseudo.o compressor.o \
1004bcb7f87d69edc99adce34232f7cb9dea84ab923Phillip Lougher	action.o
101ee76f483a300f916990895b9630cdb19c6d79020plougher
102ee76f483a300f916990895b9630cdb19c6d79020plougherUNSQUASHFS_OBJS = unsquashfs.o unsquash-1.o unsquash-2.o unsquash-3.o \
10376b7c832bb72020749efcef5cdc8fefffac87f25plougher	unsquash-4.o swap.o compressor.o
104ee76f483a300f916990895b9630cdb19c6d79020plougher
10586b95b73413263f345878d5ce8836c38c997e1cfWolfram SangCFLAGS ?= -O2
10686b95b73413263f345878d5ce8836c38c997e1cfWolfram SangCFLAGS += $(EXTRA_CFLAGS) $(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 \
107d9f6e877c2e4a46076265c579b33bc1d8e6f116aPhillip Lougher	-D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"$(COMP_DEFAULT)\" \
10886b95b73413263f345878d5ce8836c38c997e1cfWolfram Sang	-Wall
1091f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher
110f2ede5d734b13b69361a02ead8de1e1bfd7891d7plougherLIBS = -lpthread -lm
1119b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(GZIP_SUPPORT),1)
11276b7c832bb72020749efcef5cdc8fefffac87f25plougherCFLAGS += -DGZIP_SUPPORT
11376b7c832bb72020749efcef5cdc8fefffac87f25plougherMKSQUASHFS_OBJS += gzip_wrapper.o
11476b7c832bb72020749efcef5cdc8fefffac87f25plougherUNSQUASHFS_OBJS += gzip_wrapper.o
11576b7c832bb72020749efcef5cdc8fefffac87f25plougherLIBS += -lz
1160ceb24fc944027a424347c8e880c9784852f75fdplougherCOMPRESSORS += gzip
11776b7c832bb72020749efcef5cdc8fefffac87f25plougherendif
11876b7c832bb72020749efcef5cdc8fefffac87f25plougher
1199b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_SUPPORT),1)
120ee76f483a300f916990895b9630cdb19c6d79020plougherLZMA_OBJS = $(LZMA_DIR)/C/Alloc.o $(LZMA_DIR)/C/LzFind.o \
121ee76f483a300f916990895b9630cdb19c6d79020plougher	$(LZMA_DIR)/C/LzmaDec.o $(LZMA_DIR)/C/LzmaEnc.o $(LZMA_DIR)/C/LzmaLib.o
122bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherINCLUDEDIR += -I$(LZMA_DIR)/C
123bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherCFLAGS += -DLZMA_SUPPORT
124bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherMKSQUASHFS_OBJS += lzma_wrapper.o $(LZMA_OBJS)
125bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherUNSQUASHFS_OBJS += lzma_wrapper.o $(LZMA_OBJS)
1260ceb24fc944027a424347c8e880c9784852f75fdplougherCOMPRESSORS += lzma
127bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherendif
1281f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher
1299b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_XZ_SUPPORT),1)
1306b2fbe3a0dc489a167919ff518b8fc20b63e3c6fplougherCFLAGS += -DLZMA_SUPPORT
131ebdcf0ab9d3d9c6f646ceab7e10eeb096ee73983plougherMKSQUASHFS_OBJS += lzma_xz_wrapper.o
132ebdcf0ab9d3d9c6f646ceab7e10eeb096ee73983plougherUNSQUASHFS_OBJS += lzma_xz_wrapper.o
1336b2fbe3a0dc489a167919ff518b8fc20b63e3c6fplougherLIBS += -llzma
1340ceb24fc944027a424347c8e880c9784852f75fdplougherCOMPRESSORS += lzma
1356b2fbe3a0dc489a167919ff518b8fc20b63e3c6fplougherendif
1366b2fbe3a0dc489a167919ff518b8fc20b63e3c6fplougher
137d9f6e877c2e4a46076265c579b33bc1d8e6f116aPhillip Lougherifeq ($(XZ_SUPPORT),1)
13867dfce9c3751f0580633e8a33cea28bcfbefec04plougherCFLAGS += -DXZ_SUPPORT
13967dfce9c3751f0580633e8a33cea28bcfbefec04plougherMKSQUASHFS_OBJS += xz_wrapper.o
14067dfce9c3751f0580633e8a33cea28bcfbefec04plougherUNSQUASHFS_OBJS += xz_wrapper.o
14167dfce9c3751f0580633e8a33cea28bcfbefec04plougherLIBS += -llzma
14267dfce9c3751f0580633e8a33cea28bcfbefec04plougherCOMPRESSORS += xz
14367dfce9c3751f0580633e8a33cea28bcfbefec04plougherendif
14467dfce9c3751f0580633e8a33cea28bcfbefec04plougher
1459b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZO_SUPPORT),1)
146c801ba5494e53c5cad6c16241bdad01b3de33717plougherCFLAGS += -DLZO_SUPPORT
147c801ba5494e53c5cad6c16241bdad01b3de33717plougherifdef LZO_DIR
148c801ba5494e53c5cad6c16241bdad01b3de33717plougherINCLUDEDIR += -I$(LZO_DIR)/include
149c801ba5494e53c5cad6c16241bdad01b3de33717plougherLZO_LIBDIR = -L$(LZO_DIR)/lib
150c801ba5494e53c5cad6c16241bdad01b3de33717plougherendif
151c801ba5494e53c5cad6c16241bdad01b3de33717plougherMKSQUASHFS_OBJS += lzo_wrapper.o
152c801ba5494e53c5cad6c16241bdad01b3de33717plougherUNSQUASHFS_OBJS += lzo_wrapper.o
153c801ba5494e53c5cad6c16241bdad01b3de33717plougherLIBS += $(LZO_LIBDIR) -llzo2
1540ceb24fc944027a424347c8e880c9784852f75fdplougherCOMPRESSORS += lzo
155c801ba5494e53c5cad6c16241bdad01b3de33717plougherendif
156c801ba5494e53c5cad6c16241bdad01b3de33717plougher
1579b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(XATTR_SUPPORT),1)
1589b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(XATTR_DEFAULT),1)
159df9d38a515489c2c573754ad81abd230dfd8b1f0plougherCFLAGS += -DXATTR_SUPPORT -DXATTR_DEFAULT
160df9d38a515489c2c573754ad81abd230dfd8b1f0plougherelse
161860c1f3d8aa4ba40d587382a91821bea03b023c5plougherCFLAGS += -DXATTR_SUPPORT
162df9d38a515489c2c573754ad81abd230dfd8b1f0plougherendif
163860c1f3d8aa4ba40d587382a91821bea03b023c5plougherMKSQUASHFS_OBJS += xattr.o read_xattrs.o
164860c1f3d8aa4ba40d587382a91821bea03b023c5plougherUNSQUASHFS_OBJS += read_xattrs.o unsquashfs_xattr.o
165860c1f3d8aa4ba40d587382a91821bea03b023c5plougherendif
166860c1f3d8aa4ba40d587382a91821bea03b023c5plougher
1678109045af395896c4391fb833c1cd55eeea594cdplougher#
168445b9123906a5184e5821a84b0da385e3b4964adplougher# If LZMA_SUPPORT is specified then LZMA_DIR must be specified too
1698109045af395896c4391fb833c1cd55eeea594cdplougher#
1709b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_SUPPORT),1)
171d3d6b4adc0a53e8a8eb5df7567f334d798d73faeplougherifndef LZMA_DIR
1723bd9fd61336bdfe63c44debe2bd003c49cda42c4plougher$(error "LZMA_SUPPORT requires LZMA_DIR to be also defined")
1738109045af395896c4391fb833c1cd55eeea594cdplougherendif
1748109045af395896c4391fb833c1cd55eeea594cdplougherendif
1758109045af395896c4391fb833c1cd55eeea594cdplougher
1769d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougher#
177ebdcf0ab9d3d9c6f646ceab7e10eeb096ee73983plougher# Both LZMA_XZ_SUPPORT and LZMA_SUPPORT cannot be specified
1789d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougher#
1799b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_XZ_SUPPORT),1)
1809b984c7568d4f7e749b168edc389bb99c21c7e58Peter Korsgaardifeq ($(LZMA_SUPPORT),1)
181f4c143a860084e402b0a3b139bcd5520a2129fc4plougher$(error "Both LZMA_XZ_SUPPORT and LZMA_SUPPORT cannot be specified")
1829d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougherendif
1839d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougherendif
1849d1f891165be9f7e6b76c4ee694bb4bb50a6b6c4plougher
18527e877e01958826a5885e67bbd04aaaccb8db0a8plougher#
18627e877e01958826a5885e67bbd04aaaccb8db0a8plougher# At least one compressor must have been selected
18727e877e01958826a5885e67bbd04aaaccb8db0a8plougher#
188399d079528b83123344f3cf92975dcc2b62a3d27plougherifndef COMPRESSORS
18967dfce9c3751f0580633e8a33cea28bcfbefec04plougher$(error "No compressor selected! Select one or more of GZIP, LZMA, XZ or LZO!")
19027e877e01958826a5885e67bbd04aaaccb8db0a8plougherendif
19127e877e01958826a5885e67bbd04aaaccb8db0a8plougher
1920ceb24fc944027a424347c8e880c9784852f75fdplougher#
1930ceb24fc944027a424347c8e880c9784852f75fdplougher# COMP_DEFAULT must be a selected compressor
1940ceb24fc944027a424347c8e880c9784852f75fdplougher#
1950ceb24fc944027a424347c8e880c9784852f75fdplougherifeq (, $(findstring $(COMP_DEFAULT), $(COMPRESSORS)))
1960ceb24fc944027a424347c8e880c9784852f75fdplougher$(error "COMP_DEFAULT isn't selected to be built!")
1970ceb24fc944027a424347c8e880c9784852f75fdplougherendif
1980ceb24fc944027a424347c8e880c9784852f75fdplougher
1990268d5103f86a4262d79e442dd9d0e52deeb5b9bplougher.PHONY: all
200af6551e23a2b235612c4dce7467a2ab24d9cd199plougherall: mksquashfs unsquashfs
201443c15812032991c98b33b5424b17bcd55fe3575plougher
202bd533806b7eafbc4ceb0edc9e04360ca8df505b9ploughermksquashfs: $(MKSQUASHFS_OBJS)
20386b95b73413263f345878d5ce8836c38c997e1cfWolfram Sang	$(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) $(MKSQUASHFS_OBJS) $(LIBS) -o $@
2041f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher
205ed76c8571b641f23f9cc2df1a978f185caea8b8cploughermksquashfs.o: mksquashfs.c squashfs_fs.h mksquashfs.h sort.h squashfs_swap.h \
2064bcb7f87d69edc99adce34232f7cb9dea84ab923Phillip Lougher	xattr.h pseudo.h compressor.h action.h
2071f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher
208ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherread_fs.o: read_fs.c squashfs_fs.h read_fs.h squashfs_swap.h compressor.h \
209ed76c8571b641f23f9cc2df1a978f185caea8b8cplougher	xattr.h
2101f413c84d736495fd61ff05ebe52c3a01a4d95c2plougher
211ed76c8571b641f23f9cc2df1a978f185caea8b8cploughersort.o: sort.c squashfs_fs.h sort.h mksquashfs.h
212443c15812032991c98b33b5424b17bcd55fe3575plougher
213ee76f483a300f916990895b9630cdb19c6d79020plougherswap.o: swap.c
214db4621c2bc9b0fbcb9f99a0254b70d0b8c3df07cplougher
215ee76f483a300f916990895b9630cdb19c6d79020plougherpseudo.o: pseudo.c pseudo.h
216fd958432d2d06075b04940befb54bc4334c8a0abplougher
217e9d9beebfe205e98c700344f17914ef77b9fa253ploughercompressor.o: compressor.c compressor.h squashfs_fs.h
2183386d995d320ecb92ed5825f1fe5f177cd26e89fplougher
219ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherxattr.o: xattr.c xattr.h squashfs_fs.h squashfs_swap.h mksquashfs.h
220e6e0e1bdf98ad6faa63527e5bbdd3bd5e7e97a9eplougher
221ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherread_xattrs.o: read_xattrs.c xattr.h squashfs_fs.h squashfs_swap.h read_fs.h
2221b129839fa96a755f011fcaf1d06adc7cd6c28d2plougher
2234bcb7f87d69edc99adce34232f7cb9dea84ab923Phillip Lougheraction.o: action.h
2244bcb7f87d69edc99adce34232f7cb9dea84ab923Phillip Lougher
22521cc2fdbd1070ebba742cc703d850ec02b51eb72ploughergzip_wrapper.o: gzip_wrapper.c compressor.h squashfs_fs.h
22621cc2fdbd1070ebba742cc703d850ec02b51eb72plougher
227b2270a636d1f91828944d37a82f9405bfb254268plougherlzma_wrapper.o: lzma_wrapper.c compressor.h squashfs_fs.h
228b2270a636d1f91828944d37a82f9405bfb254268plougher
22912e7325626eeb5d02c7298d0c638b1d06230f7f8plougherlzma_xz_wrapper.o: lzma_xz_wrapper.c compressor.h squashfs_fs.h
23012e7325626eeb5d02c7298d0c638b1d06230f7f8plougher
2316c0017874d2b7c5da2747d6cdacc3e8d33a2fd72plougherlzo_wrapper.o: lzo_wrapper.c compressor.h squashfs_fs.h
2326c0017874d2b7c5da2747d6cdacc3e8d33a2fd72plougher
233bb0b576ef3371964ea794236c2053e488f0514c6plougherxz_wrapper.o: xz_wrapper.c compressor.h squashfs_fs.h
234bb0b576ef3371964ea794236c2053e488f0514c6plougher
235bd533806b7eafbc4ceb0edc9e04360ca8df505b9plougherunsquashfs: $(UNSQUASHFS_OBJS)
23686b95b73413263f345878d5ce8836c38c997e1cfWolfram Sang	$(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) $(UNSQUASHFS_OBJS) $(LIBS) -o $@
237443c15812032991c98b33b5424b17bcd55fe3575plougher
238ee76f483a300f916990895b9630cdb19c6d79020plougherunsquashfs.o: unsquashfs.h unsquashfs.c squashfs_fs.h squashfs_swap.h \
239ed76c8571b641f23f9cc2df1a978f185caea8b8cplougher	squashfs_compat.h xattr.h read_fs.h compressor.h
240e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher
241ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherunsquash-1.o: unsquashfs.h unsquash-1.c squashfs_fs.h squashfs_compat.h
242eb32ff41ec7a370002a1ec5ebb48debdc7a18499plougher
243ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherunsquash-2.o: unsquashfs.h unsquash-2.c squashfs_fs.h squashfs_compat.h
244eb32ff41ec7a370002a1ec5ebb48debdc7a18499plougher
245ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherunsquash-3.o: unsquashfs.h unsquash-3.c squashfs_fs.h squashfs_compat.h
246eb32ff41ec7a370002a1ec5ebb48debdc7a18499plougher
247ee76f483a300f916990895b9630cdb19c6d79020plougherunsquash-4.o: unsquashfs.h unsquash-4.c squashfs_fs.h squashfs_swap.h \
248ed76c8571b641f23f9cc2df1a978f185caea8b8cplougher	read_fs.h
249ed76c8571b641f23f9cc2df1a978f185caea8b8cplougher
250ed76c8571b641f23f9cc2df1a978f185caea8b8cplougherunsquashfs_xattr.o: unsquashfs_xattr.c unsquashfs.h squashfs_fs.h xattr.h
251f81c7dc64b0d0321629805e1752ce0a755c685a7plougher
252860c1f3d8aa4ba40d587382a91821bea03b023c5plougher
2530268d5103f86a4262d79e442dd9d0e52deeb5b9bplougher.PHONY: clean
254e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougherclean:
255e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher	-rm -f *.o mksquashfs unsquashfs
256e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher
2570268d5103f86a4262d79e442dd9d0e52deeb5b9bplougher.PHONY: install
258f709418a42fb016e284d43611febe4e582d8d528plougherinstall: mksquashfs unsquashfs
259e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher	mkdir -p $(INSTALL_DIR)
260e18aa642d82bfbaaf4ed9fe82768b618538dd78eplougher	cp mksquashfs $(INSTALL_DIR)
261f709418a42fb016e284d43611febe4e582d8d528plougher	cp unsquashfs $(INSTALL_DIR)
262