cd build && $(MAKE) $@ VERBOSE=1
libzzip libzzipmmapped libzzipfseeko libzzipwrap zzipwrap:
cd build && $(MAKE) $@ VERBOSE=1
-zzip unzzip unzzip-mix unzzip-mem unzzip-big zzdir zzcat zzcatsdl zzxorcat zzxordir zzobfuscated:
+zzip unzzip unzzip-mix unzzip-mem unzzip-big zzdir zzcat zzcatsdl zzxorcat zzxordir zzxorcopy zzobfuscated:
cd build && $(MAKE) $@ VERBOSE=1
sfx zzipself zzipsetstub doc htm man htmpages manpages site dbk pdf:
cd build && $(MAKE) $@ VERBOSE=1
tests checks check:
cd build && $(MAKE) $@ VERBOSE=1
+test_%:
+ cd build/test && python ../../test/zziptests.py $@ --topsrcdir=`pwd` -v
builds: config build local
static: conf build local
add_executable(zzdir zzdir.c)
add_executable(zzxorcat zzxorcat.c)
add_executable(zzxordir zzxordir.c)
+add_executable(zzxorcopy zzxorcopy.c)
add_executable(zzobfuscated zzobfuscated.c)
add_executable(zziptest zziptest.c)
add_executable(zzip zzip.c zzipmake-zip.c)
target_link_libraries(zzdir libzzip ZLIB::ZLIB)
target_link_libraries(zzxorcat libzzip ZLIB::ZLIB)
target_link_libraries(zzxordir libzzip ZLIB::ZLIB)
+target_link_libraries(zzxorcopy libzzip ZLIB::ZLIB)
target_link_libraries(zzobfuscated libzzip ZLIB::ZLIB)
target_link_libraries(zziptest libzzip ZLIB::ZLIB)
target_link_libraries(zzip libzzip ZLIB::ZLIB)
target_include_directories(zzdir PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(zzxorcat PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(zzxordir PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
+target_include_directories(zzxorcopy PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(zzobfuscated PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(zzip PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(unzzip PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(unzzip-big PRIVATE "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
# install ########################################################
-install(TARGETS zzcat zzdir zzxorcat zzxordir
+install(TARGETS zzcat zzdir zzxorcat zzxordir zzxorcopy
unzzip unzzip-mix unzzip-mem unzzip-big
DESTINATION "${CMAKE_INSTALL_BINDIR}")
add_custom_target(tests
COMMAND ${PY2} ${srcdir}/zziptests.py --exeext=${EXEEXT} --topsrcdir=${topdir} -v
- DEPENDS ../bins/zzcat ../bins/zzdir ../bins/zziptest ../bins/zzxorcat)
+ DEPENDS ../bins/zzcat ../bins/zzdir ../bins/zziptest ../bins/zzxorcat ../bins/zzxorcopy)
add_custom_command(OUTPUT ../bins/zzcat COMMMAND cd ../bins && $(MAKE) zzcat)
add_custom_command(OUTPUT ../bins/zzdir COMMMAND cd ../bins && $(MAKE) zzdir)
add_custom_command(OUTPUT ../bins/zziptest COMMMAND cd ../bins && $(MAKE) zziptest)
add_custom_command(OUTPUT ../bins/zzxorcat COMMMAND cd ../bins && $(MAKE) zzxorcat)
+add_custom_command(OUTPUT ../bins/zzxorcopy COMMMAND cd ../bins && $(MAKE) zzxorcopy)
add_custom_command(OUTPUT test0.zip
COMMAND ${BASH} -c "test -d tmp || mkdir tmp"