1
0
mirror of https://git.tukaani.org/xz.git synced 2025-02-17 14:08:12 +00:00
xz/tests/ossfuzz/Makefile
Lasse Collin 15358be94a Add SPDX license identifiers to files under tests/ossfuzz
(cherry picked from commit 9ae2ebc1e504a1814b0788de95fb5c58c0328dde)
2024-05-23 11:37:06 +03:00

18 lines
485 B
Makefile

# SPDX-License-Identifier: 0BSD
FUZZ_TARGET_SRCS = $(wildcard *.c)
FUZZ_TARGET_BINS = $(FUZZ_TARGET_SRCS:.c=)
all: $(FUZZ_TARGET_BINS)
%: %.c
$(CC) $(CFLAGS) -c $< -I ../../src/liblzma/api/ ;
$(CXX) $(CXXFLAGS) $(LIB_FUZZING_ENGINE) $(<:.c=.o) -o $(OUT)/$@ \
../../src/liblzma/.libs/liblzma.a ;
# The generated binaries are not removed, just the object files. The
# binaries are created to the $(OUT) directory and must be removed by the
# fuzzing framework.
clean:
rm -f *.o