mirror of
https://github.com/php/php-src.git
synced 2024-12-18 22:41:20 +08:00
19 lines
1.0 KiB
Makefile
19 lines
1.0 KiB
Makefile
fuzzer: $(PHP_FUZZER_BINARIES)
|
|
|
|
FUZZER_BUILD = $(LIBTOOL) --mode=link $(FUZZING_CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) $(FUZZING_LIB) -rpath /ORIGIN/lib
|
|
|
|
$(SAPI_FUZZER_PATH)/php-fuzz-parser: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(PHP_FUZZER_PARSER_OBJS)
|
|
$(FUZZER_BUILD) $(PHP_FUZZER_PARSER_OBJS) -o $@
|
|
|
|
$(SAPI_FUZZER_PATH)/php-fuzz-unserialize: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(PHP_FUZZER_UNSERIALIZE_OBJS)
|
|
$(FUZZER_BUILD) $(PHP_FUZZER_UNSERIALIZE_OBJS) -o $@
|
|
|
|
$(SAPI_FUZZER_PATH)/php-fuzz-json: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(PHP_FUZZER_JSON_OBJS)
|
|
$(FUZZER_BUILD) $(PHP_FUZZER_JSON_OBJS) -o $@
|
|
|
|
$(SAPI_FUZZER_PATH)/php-fuzz-exif: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(PHP_FUZZER_EXIF_OBJS)
|
|
$(FUZZER_BUILD) $(PHP_FUZZER_EXIF_OBJS) -o $@
|
|
|
|
$(SAPI_FUZZER_PATH)/php-fuzz-mbstring: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(PHP_FUZZER_MBSTRING_OBJS)
|
|
$(FUZZER_BUILD) $(PHP_FUZZER_MBSTRING_OBJS) -o $@
|