-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (17 loc) · 1018 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
rootFolder=$(shell pwd)
CC_main=afl-gcc-fast
CXX_postprocessor=g++
all : compile_all get_options
compile_all :
$(CC_main) fitness_wrapper/main.c -o fitness_wrapper/main -lcurl
$(CXX_postprocessor) -shared -Wall -fPIC -O3 fitness_wrapper/aflpostprocessor.cc -o fitness_wrapper/aflpostprocessor.so
$(CXX_postprocessor) -shared -Wall -fPIC -O3 fitness_wrapper/generic_postprocessor.cc -o fitness_wrapper/generic_postprocessor.so
$(CXX_postprocessor) -shared -Wall -fPIC -O3 fitness_wrapper/multiarch_llvm_postprocessor.cc -o fitness_wrapper/multiarch_llvm_postprocessor.so
$(CXX_postprocessor) -shared -Wall -fPIC -O3 fitness_wrapper/aflpostprocessor_bin.cc -o fitness_wrapper/aflpostprocessor_bin.so
$(CXX_postprocessor) -shared -Wall -fPIC -O3 fitness_wrapper/parallel_postprocessor.cc -o fitness_wrapper/parallel_postprocessor.so
get_options :
$(rootFolder)/HashEnabledLLVM/build/bin/llc --help-list-hidden > options_list.txt
clean :
rm fitness_wrapper/main
rm fitness_wrapper/*.so
rm options_list.txt