# Top-level Rules
###############################################################################
-objects = $(DL_FILE) \
- lzma457.tar.bz2 \
- sqlzma-$(VER)-1.patch
+objects = $(DL_FILE)
install : $(TARGET)
$(TARGET) :
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
- -mkdir -p $(DIR_APP)/lzma
- cd $(DIR_APP) && tar xfj $(DIR_DL)/lzma457.tar.bz2 -C lzma
- cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/sqlzma-$(VER)-1.patch
-
- cd $(DIR_APP)/lzma* && make Sqlzma=$$(pwd)/../squashfs-tools -C C/Compress/Lzma -f sqlzma.mk
- cd $(DIR_APP)/lzma* && make Sqlzma=$$(pwd)/../squashfs-tools -C CPP/7zip/Compress/LZMA_Alone -f sqlzma.mk
-
- cd $(DIR_APP)/squashfs-tools && make $(PARALLELISMFLAGS) \
- Sqlzma=$$(pwd) \
- LzmaAlone=$$(pwd)/../lzma/CPP/7zip/Compress/LZMA_Alone \
- LzmaC=$$(pwd)/../lzma/C/Compress/Lzma
+ cd $(DIR_APP)/squashfs-tools && make $(PARALLELISMFLAGS)
cd $(DIR_APP)/squashfs-tools && install -m 755 mksquashfs /usr/sbin
cd $(DIR_APP)/squashfs-tools && install -m 755 unsquashfs /usr/sbin
@rm -rf $(DIR_APP)