tools: refresh patches for tools
[openwrt/svn-archive/archive.git] / tools / squashfs / patches / 100-lzma.patch
1 --- a/squashfs-tools/Makefile
2 +++ b/squashfs-tools/Makefile
3 @@ -1,4 +1,5 @@
4 INCLUDEDIR = .
5 +#LZMAPATH = ../lzma/SRC/7zip/Compress/LZMA_Lib
6
7 CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2
8
9 @@ -7,6 +8,9 @@ all: mksquashfs unsquashfs
10 mksquashfs: mksquashfs.o read_fs.o sort.o
11 $(CC) mksquashfs.o read_fs.o sort.o -lz -o $@
12
13 +mksquashfs-lzma: mksquashfs.o read_fs.o sort.o
14 + $(CXX) mksquashfs.o read_fs.o sort.o -L$(LZMAPATH) -llzma -o $@
15 +
16 mksquashfs.o: mksquashfs.c squashfs_fs.h mksquashfs.h global.h sort.h
17
18 read_fs.o: read_fs.c squashfs_fs.h read_fs.h global.h
19 @@ -16,4 +20,9 @@ sort.o: sort.c squashfs_fs.h global.h so
20 unsquashfs: unsquashfs.o
21 $(CC) unsquashfs.o -lz -o $@
22
23 +unsquashfs-lzma: unsquashfs.o
24 + $(CXX) unsquashfs.o -L$(LZMAPATH) -llzma -o $@
25 +
26 unsquashfs.o: unsquashfs.c squashfs_fs.h read_fs.h global.h
27 +
28 +clean: