2023-12-04 16:21:29 +00:00
|
|
|
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 ;
|
2018-11-02 18:18:45 +00:00
|
|
|
|
2023-12-06 10:30:25 +00:00
|
|
|
# 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.
|
2018-11-02 18:18:45 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o
|