1 # ################################################################
2 # Copyright (c) Meta Platforms, Inc. and affiliates.
5 # This source code is licensed under both the BSD-style license (found in the
6 # LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 # in the COPYING file in the root directory of this source tree).
8 # ################################################################
10 # This Makefile presumes libzstd is built, using `make` in / or /lib/
12 ZSTDLIB_PATH = ../../../lib
13 ZSTDLIB_NAME = libzstd.a
14 ZSTDLIB = $(ZSTDLIB_PATH)/$(ZSTDLIB_NAME)
16 CPPFLAGS += -DXXH_NAMESPACE=ZSTD_ -I../ -I$(ZSTDLIB_PATH) -I$(ZSTDLIB_PATH)/common
19 CFLAGS += -g -Wall -Wextra -Wcast-qual -Wcast-align -Wconversion \
20 -Wformat=2 -Wstrict-aliasing=1
22 SEEKABLE_OBJS = ../zstdseek_compress.c ../zstdseek_decompress.c $(ZSTDLIB)
24 .PHONY: default clean test
31 $(MAKE) -C $(ZSTDLIB_PATH) $(ZSTDLIB_NAME)
33 seekable_tests : $(SEEKABLE_OBJS)
36 @$(RM) core *.o tmp* result* *.zst \
38 @echo Cleaning completed