git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / contrib / seekable_format / tests / Makefile
CommitLineData
648db22b 1# ################################################################
2# Copyright (c) Meta Platforms, Inc. and affiliates.
3# All rights reserved.
4#
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# ################################################################
9
10# This Makefile presumes libzstd is built, using `make` in / or /lib/
11
12ZSTDLIB_PATH = ../../../lib
13ZSTDLIB_NAME = libzstd.a
14ZSTDLIB = $(ZSTDLIB_PATH)/$(ZSTDLIB_NAME)
15
16CPPFLAGS += -DXXH_NAMESPACE=ZSTD_ -I../ -I$(ZSTDLIB_PATH) -I$(ZSTDLIB_PATH)/common
17
18CFLAGS ?= -O3
19CFLAGS += -g -Wall -Wextra -Wcast-qual -Wcast-align -Wconversion \
20 -Wformat=2 -Wstrict-aliasing=1
21
22SEEKABLE_OBJS = ../zstdseek_compress.c ../zstdseek_decompress.c $(ZSTDLIB)
23
24.PHONY: default clean test
25default: test
26
27test: seekable_tests
28 ./seekable_tests
29
30$(ZSTDLIB):
31 $(MAKE) -C $(ZSTDLIB_PATH) $(ZSTDLIB_NAME)
32
33seekable_tests : $(SEEKABLE_OBJS)
34
35clean:
36 @$(RM) core *.o tmp* result* *.zst \
37 seekable_tests
38 @echo Cleaning completed