aboutsummaryrefslogtreecommitdiff
path: root/tests/ossfuzz/Makefile
blob: 008cd7df6f99a06392d920ccb6743b7d630225fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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 ;

clean:
	rm -f *.o