1CFLAGS=-O0 -g 2# Force to use gcc to build it. Clang upstream bug is at 3# https://llvm.org/bugs/show_bug.cgi?id=25416 4CC=${CHOST}-gcc 5 6BINS=iTLB_benchmark 7OBJS=iTLB_benchmark.o iTLB_benchmark_function.o 8OUTPUTS=$(BINS) $(OBJS) iTLB_benchmark_function.c 9 10all: $(OUTPUTS) 11 12iTLB_benchmark: iTLB_benchmark.o iTLB_benchmark_function.o 13 14iTLB_benchmark_function.c: generateBenchmarkFunction.sh 15 ./generateBenchmarkFunction.sh 4096 1024 > iTLB_benchmark_function.c 16 17clean: 18 rm -rf $(OUTPUTS) 19