rdsquashfs_SOURCES = unpack/rdsquashfs.c unpack/tree_node_from_inode.c
rdsquashfs_SOURCES += unpack/rdsquashfs.h unpack/read_fstree.c
rdsquashfs_SOURCES += unpack/list_files.c unpack/extract_file.c
rdsquashfs_SOURCES += unpack/restore_fstree.c unpack/describe.c
rdsquashfs_LDADD = libsquashfs.a libfstree.a libcompress.a libutil.a

if WITH_XZ
rdsquashfs_LDADD += $(XZ_LIBS)
endif

if WITH_GZIP
rdsquashfs_LDADD += $(ZLIB_LIBS)
endif

if WITH_LZO
rdsquashfs_LDADD += $(LZO_LIBS)
endif

if WITH_LZ4
rdsquashfs_LDADD += $(LZ4_LIBS)
endif

if WITH_LZ4
rdsquashfs_LDADD += $(ZSTD_LIBS)
endif

bin_PROGRAMS += rdsquashfs