PKG_CPPFLAGS = -Izstd
PKG_LIBS = ./libzstd.a
#PKG_CFLAGS  += -Wconversion

LIBZSTD = zstd/zstd.o

all: clean $(SHLIB)

$(SHLIB): $(PKG_LIBS)
	
libzstd.a: $(LIBZSTD)
	$(AR) rcs libzstd.a $(LIBZSTD)
  
clean:
	rm -f  $(SHLIB) $(OBJECTS) $(LIBZSTD) ./libzstd.a



### Zstd "Single File" Libary
#
# * To simplify the code within this package, it uses the 'single file library' version of zstd
# * To update this package when zstd is updated, create the single file library version
#     1. cd zstd/build/single_file_libs
#     2. sh create_single_file_library.sh
#     3. Wait.....
#     4. copy zstd/built/single_file_libs/zstd.c into zstdlite/src/zstd/
#     5. copy zstd/lib/zstd.h into zstdlite/src/zstd/
#     6. copy zstd/lib/zdict.h into zstdlite/src/zstd/