diff options
author | WorksButNotTested <62701594+WorksButNotTested@users.noreply.github.com> | 2021-07-05 10:28:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 11:28:26 +0200 |
commit | 886e2ba7702b2354243daaae81e2fd325d01f5d4 (patch) | |
tree | e3f4f5a0b2f9c8d13beeaab1f6c4a87958ba447e /frida_mode/GNUmakefile | |
parent | 7283205fe35c683edff1a44e2d1cca445d7681c5 (diff) | |
download | AFLplusplus-886e2ba7702b2354243daaae81e2fd325d01f5d4.tar.gz |
Remove dependency on xxd (#1002)
Co-authored-by: Your Name <you@example.com>
Diffstat (limited to 'frida_mode/GNUmakefile')
-rw-r--r-- | frida_mode/GNUmakefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/frida_mode/GNUmakefile b/frida_mode/GNUmakefile index d8206d94..6c17f369 100644 --- a/frida_mode/GNUmakefile +++ b/frida_mode/GNUmakefile @@ -102,6 +102,9 @@ HOOK_DIR:=$(PWD)hook/ AFLPP_DRIVER_HOOK_SRC=$(HOOK_DIR)hook.c AFLPP_DRIVER_HOOK_OBJ=$(BUILD_DIR)hook.so +BIN2C:=$(BUILD_DIR)bin2c +BIN2C_SRC:=$(PWD)util/bin2c.c + .PHONY: all 32 clean format hook $(FRIDA_GUM) ############################## ALL ############################################# @@ -165,8 +168,11 @@ $(AFL_COMPILER_RT_OBJ): $(AFL_COMPILER_RT_SRC) ############################### JS ############################################# -$(JS_SRC): $(JS) | $(BUILD_DIR) - cd $(JS_DIR) && xxd -i $(JS_NAME) $@ +$(BIN2C): $(BIN2C_SRC) + $(CC) -o $@ $< + +$(JS_SRC): $(JS) $(BIN2C)| $(BUILD_DIR) + cd $(JS_DIR) && $(BIN2C) api_js $(JS) $@ $(JS_OBJ): $(JS_SRC) GNUmakefile $(CC) \ @@ -219,7 +225,7 @@ clean: ############################# FORMAT ########################################### format: - cd $(ROOT) && echo $(SOURCES) $(AFLPP_DRIVER_HOOK_SRC) | xargs -L1 ./.custom-format.py -i + cd $(ROOT) && echo $(SOURCES) $(AFLPP_DRIVER_HOOK_SRC) $(BIN2C_SRC) | xargs -L1 ./.custom-format.py -i cd $(ROOT) && echo $(INCLUDES) | xargs -L1 ./.custom-format.py -i ############################# RUN ############################################# |