AFL fuzzing harness
This commit is contained in:
24
Makefile
24
Makefile
@@ -1,16 +1,28 @@
|
||||
FCGI_CXX ?= clang++
|
||||
FCGI_CXXFLAGS ?= -O3 -std=gnu++2a -Wall -Werror
|
||||
FCGI_LDLIBS ?= -lgflags -lglog -lpthread
|
||||
|
||||
all: example_simple example_clock
|
||||
|
||||
objects = sse.o sse_stream.o fastcgi.o fastcgi_conn.o fastcgi_request.o fastcgi_parse.o stream_buffer.o buffer.o
|
||||
|
||||
example_simple: example_simple.o $(objects) Makefile
|
||||
clang++ -O3 -std=gnu++2a -o example_simple example_simple.o $(objects) -lgflags -lglog -lpthread
|
||||
example_simple: example_simple.o $(objects)
|
||||
$(FCGI_CXX) $(FCGI_CXXFLAGS) -o $@ $+ $(FCGI_LDLIBS)
|
||||
|
||||
example_clock: example_clock.o $(objects) Makefile
|
||||
clang++ -O3 -std=gnu++2a -o example_clock example_clock.o $(objects) -lgflags -lglog -lpthread
|
||||
example_clock: example_clock.o $(objects)
|
||||
$(FCGI_CXX) $(FCGI_CXXFLAGS) -o $@ $+ $(FCGI_LDLIBS)
|
||||
|
||||
%.o: %.cc *.h Makefile
|
||||
clang++ -O3 -std=gnu++2a -Wall -Werror -c -o $@ $<
|
||||
$(FCGI_CXX) $(FCGI_CXXFLAGS) -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm --force exmaple_simple example_clock *.o
|
||||
rm --force example_simple example_clock fastcgi_conn_afl *.o
|
||||
|
||||
afl:
|
||||
$(MAKE) clean
|
||||
FCGI_CXX=afl-g++ $(MAKE) afl_int
|
||||
|
||||
afl_int: fastcgi_conn_afl
|
||||
|
||||
fastcgi_conn_afl: fastcgi_conn_afl.o $(objects)
|
||||
$(FCGI_CXX) $(FCGI_CXXFLAGS) -o $@ $+ $(FCGI_LDLIBS)
|
||||
|
||||
Reference in New Issue
Block a user