diff --git a/programs/Makefile b/programs/Makefile index abad6da6b..1a85f185e 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -43,9 +43,7 @@ else ALIGN_LOOP = endif -CPPFLAGS+= -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(ZSTDDIR)/compress \ - -I$(ZSTDDIR)/dictBuilder \ - -DXXH_NAMESPACE=ZSTD_ +CPPFLAGS+= -DXXH_NAMESPACE=ZSTD_ ifeq ($(OS),Windows_NT) # MinGW assumed CPPFLAGS += -D__USE_MINGW_ANSI_STDIO # compatibility with %zu formatting endif @@ -72,7 +70,6 @@ ifneq ($(ZSTD_LEGACY_SUPPORT), 0) ifeq ($(shell test $(ZSTD_LEGACY_SUPPORT) -lt 8; echo $$?), 0) ZSTDLEGACY_FILES += $(shell ls $(ZSTDDIR)/legacy/*.c | $(GREP) 'v0[$(ZSTD_LEGACY_SUPPORT)-7]') endif - CPPFLAGS += -I$(ZSTDDIR)/legacy else endif diff --git a/programs/benchzstd.c b/programs/benchzstd.c index 80e98050c..77056203d 100644 --- a/programs/benchzstd.c +++ b/programs/benchzstd.c @@ -30,13 +30,13 @@ #include "timefn.h" /* UTIL_time_t */ #include "benchfn.h" -#include "mem.h" +#include "../lib/common/mem.h" #define ZSTD_STATIC_LINKING_ONLY -#include "zstd.h" +#include "../lib/zstd.h" #include "datagen.h" /* RDG_genBuffer */ -#include "xxhash.h" +#include "../lib/common/xxhash.h" #include "benchzstd.h" -#include "zstd_errors.h" +#include "../lib/common/zstd_errors.h" /* ************************************* diff --git a/programs/benchzstd.h b/programs/benchzstd.h index 99fae56a0..8c55b3c4f 100644 --- a/programs/benchzstd.h +++ b/programs/benchzstd.h @@ -24,7 +24,7 @@ extern "C" { /* === Dependencies === */ #include /* size_t */ #define ZSTD_STATIC_LINKING_ONLY /* ZSTD_compressionParameters */ -#include "zstd.h" /* ZSTD_compressionParameters */ +#include "../lib/zstd.h" /* ZSTD_compressionParameters */ /* === Constants === */ diff --git a/programs/datagen.c b/programs/datagen.c index 7cf83bdaa..4353b7ff9 100644 --- a/programs/datagen.c +++ b/programs/datagen.c @@ -18,7 +18,7 @@ #include /* malloc, free */ #include /* FILE, fwrite, fprintf */ #include /* memcpy */ -#include "mem.h" /* U32 */ +#include "../lib/common/mem.h" /* U32 */ /*-************************************ diff --git a/programs/dibio.c b/programs/dibio.c index 2b322b639..463095a8e 100644 --- a/programs/dibio.c +++ b/programs/dibio.c @@ -30,8 +30,8 @@ #include #include "timefn.h" /* UTIL_time_t, UTIL_clockSpanMicro, UTIL_getTime */ -#include "mem.h" /* read */ -#include "error_private.h" +#include "../lib/common/mem.h" /* read */ +#include "../lib/common/error_private.h" #include "dibio.h" diff --git a/programs/dibio.h b/programs/dibio.h index 436bddbb5..682723d6a 100644 --- a/programs/dibio.h +++ b/programs/dibio.h @@ -19,7 +19,7 @@ * Dependencies ***************************************/ #define ZDICT_STATIC_LINKING_ONLY -#include "zdict.h" /* ZDICT_params_t */ +#include "../lib/dictBuilder/zdict.h" /* ZDICT_params_t */ /*-************************************* diff --git a/programs/fileio.c b/programs/fileio.c index 802e6fb61..d72879d64 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -39,13 +39,13 @@ # include #endif -#include "mem.h" /* U32, U64 */ +#include "../lib/common/mem.h" /* U32, U64 */ #include "fileio.h" #define ZSTD_STATIC_LINKING_ONLY /* ZSTD_magicNumber, ZSTD_frameHeaderSize_max */ -#include "zstd.h" -#include "zstd_errors.h" /* ZSTD_error_frameParameter_windowTooLarge */ -#include "zstd_compress_internal.h" +#include "../lib/zstd.h" +#include "../lib/common/zstd_errors.h" /* ZSTD_error_frameParameter_windowTooLarge */ +#include "../lib/compress/zstd_compress_internal.h" #if defined(ZSTD_GZCOMPRESS) || defined(ZSTD_GZDECOMPRESS) # include diff --git a/programs/fileio.h b/programs/fileio.h index 565cbae11..2fbf01f82 100644 --- a/programs/fileio.h +++ b/programs/fileio.h @@ -13,7 +13,7 @@ #define FILEIO_H_23981798732 #define ZSTD_STATIC_LINKING_ONLY /* ZSTD_compressionParameters */ -#include "zstd.h" /* ZSTD_* */ +#include "../lib/zstd.h" /* ZSTD_* */ #if defined (__cplusplus) extern "C" { diff --git a/programs/util.h b/programs/util.h index 40200729a..8e187e4f2 100644 --- a/programs/util.h +++ b/programs/util.h @@ -23,7 +23,7 @@ extern "C" { #include /* size_t, ptrdiff_t */ #include /* stat, utime */ #include /* stat, chmod */ -#include "mem.h" /* U64 */ +#include "../lib/common/mem.h" /* U64 */ /*-************************************************************ diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 3e293c57b..81f1910c2 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -40,7 +40,7 @@ #ifndef ZSTD_NODICT # include "dibio.h" /* ZDICT_cover_params_t, DiB_trainFromFiles() */ #endif -#include "zstd.h" /* ZSTD_VERSION_STRING, ZSTD_minCLevel, ZSTD_maxCLevel */ +#include "../lib/zstd.h" /* ZSTD_VERSION_STRING, ZSTD_minCLevel, ZSTD_maxCLevel */ /*-************************************