|
1 | 1 | #CXX=g++-8
|
2 | 2 | #CC=gcc-8
|
| 3 | +AR=gcc-ar |
3 | 4 | PLATFORM=$(shell uname -m)
|
4 | 5 | CXXFLAGS=-std=c++11
|
5 | 6 | CCFLAGS=
|
6 | 7 | BINDIR=bin
|
7 | 8 | SRCDIR=src
|
| 9 | +TESTDIR=src/tests |
8 | 10 | OBJDIR=obj
|
9 | 11 | LDFLAGS=-lpthread
|
10 |
| -CPPSRC=src/argon2_core.c src/Cache.cpp src/divideByConstantCodegen.c src/Instruction.cpp src/JitCompilerX86.cpp src/Program.cpp src/VirtualMachine.cpp src/argon2_ref.c src/CompiledVirtualMachine.cpp src/executeProgram-linux.cpp src/instructionsPortable.cpp src/LightClientAsyncWorker.cpp src/softAes.cpp src/virtualMemory.cpp src/AssemblyGeneratorX86.cpp src/dataset.cpp src/hashAes1Rx4.cpp src/InterpretedVirtualMachine.cpp src/main.cpp src/TestAluFpu.cpp src/blake2/blake2b.c |
11 |
| -TOBJS=$(addprefix $(OBJDIR)/,instructionsPortable.o TestAluFpu.o) |
12 |
| -ROBJS=$(addprefix $(OBJDIR)/,argon2_core.o argon2_ref.o AssemblyGeneratorX86.o blake2b.o CompiledVirtualMachine.o CompiledLightVirtualMachine.o dataset.o JitCompilerX86.o instructionsPortable.o Instruction.o InterpretedVirtualMachine.o main.o softAes.o VirtualMachine.o Cache.o virtualMemory.o reciprocal.o hashAes1Rx4.o superscalarGenerator.o Blake2Generator.o) |
| 12 | +RXA=$(BINDIR)/randomx.a |
| 13 | +BINARIES=$(RXA) $(BINDIR)/benchmark $(BINDIR)/code-generator |
| 14 | +RXOBJS=$(addprefix $(OBJDIR)/,aes_hash.o argon2_ref.o dataset.o jit_compiler_x86.o soft_aes.o virtual_memory.o vm_interpreted.o allocator.o assembly_generator_x86.o instruction.o randomx.o superscalar.o vm_compiled.o vm_interpreted_light.o argon2_core.o blake2_generator.o instructions_portable.o reciprocal.o virtual_machine.o vm_compiled_light.o blake2b.o) |
13 | 15 | ifeq ($(PLATFORM),amd64)
|
14 |
| - ROBJS += $(OBJDIR)/JitCompilerX86-static.o $(OBJDIR)/squareHash.o |
| 16 | + RXOBJS += $(OBJDIR)/jit_compiler_x86_static.o |
15 | 17 | CXXFLAGS += -maes
|
16 | 18 | endif
|
17 | 19 | ifeq ($(PLATFORM),x86_64)
|
18 |
| - ROBJS += $(OBJDIR)/JitCompilerX86-static.o $(OBJDIR)/squareHash.o |
| 20 | + RXOBJS += $(OBJDIR)/jit_compiler_x86_static.o |
19 | 21 | CXXFLAGS += -maes
|
20 | 22 | endif
|
21 | 23 |
|
22 |
| -all: release |
23 |
| - |
24 | 24 | release: CXXFLAGS += -march=native -O3 -flto
|
25 | 25 | release: CCFLAGS += -march=native -O3 -flto
|
26 | 26 | release: LDFLAGS += -flto
|
27 |
| -release: $(BINDIR)/randomx |
| 27 | +release: $(BINARIES) |
28 | 28 |
|
29 | 29 | nolto: CXXFLAGS += -march=native -O3
|
30 | 30 | nolto: CCFLAGS += -march=native -O3
|
31 |
| -nolto: $(BINDIR)/randomx |
| 31 | +nolto: $(BINARIES) |
32 | 32 |
|
33 | 33 | debug: CXXFLAGS += -g
|
34 | 34 | debug: CCFLAGS += -g
|
35 | 35 | debug: LDFLAGS += -g
|
36 |
| -debug: $(BINDIR)/randomx |
| 36 | +debug: $(BINARIES) |
37 | 37 |
|
38 | 38 | profile: CXXFLAGS += -pg
|
39 | 39 | profile: CCFLAGS += -pg
|
40 | 40 | profile: LDFLAGS += -pg
|
41 |
| -profile: $(BINDIR)/randomx |
| 41 | +profile: $(BINDIR)/benchmark |
42 | 42 |
|
43 | 43 | test: CXXFLAGS += -O0
|
44 |
| -test: $(BINDIR)/AluFpuTest |
45 |
| - |
46 |
| -$(BINDIR)/randomx: $(ROBJS) | $(BINDIR) |
47 |
| - $(CXX) $(ROBJS) $(LDFLAGS) -o $@ |
48 |
| - |
49 |
| -$(BINDIR)/AluFpuTest: $(TOBJS) | $(BINDIR) |
50 |
| - $(CXX) $(TOBJS) $(LDFLAGS) -o $@ |
51 |
| - |
52 |
| -$(OBJDIR)/TestAluFpu.o: $(addprefix $(SRCDIR)/,TestAluFpu.cpp instructions.hpp) | $(OBJDIR) |
53 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/TestAluFpu.cpp -o $@ |
54 |
| - |
55 |
| -$(OBJDIR)/argon2_core.o: $(addprefix $(SRCDIR)/,argon2_core.c argon2_core.h blake2/blake2.h blake2/blake2-impl.h) | $(OBJDIR) |
56 |
| - $(CC) $(CCFLAGS) -c $(SRCDIR)/argon2_core.c -o $@ |
57 |
| - |
58 |
| -$(OBJDIR)/argon2_ref.o: $(addprefix $(SRCDIR)/,argon2_ref.c argon2.h argon2_core.h blake2/blake2.h blake2/blake2-impl.h blake2/blamka-round-ref.h blake2/endian.h) | $(OBJDIR) |
59 |
| - $(CC) $(CCFLAGS) -c $(SRCDIR)/argon2_ref.c -o $@ |
60 |
| - |
61 |
| -$(OBJDIR)/AssemblyGeneratorX86.o: $(addprefix $(SRCDIR)/,AssemblyGeneratorX86.cpp AssemblyGeneratorX86.hpp Instruction.hpp common.hpp instructionWeights.hpp blake2/endian.h reciprocal.h Program.hpp configuration.h superscalarGenerator.hpp) | $(OBJDIR) |
62 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/AssemblyGeneratorX86.cpp -o $@ |
63 |
| - |
64 |
| -$(OBJDIR)/blake2b.o: $(addprefix $(SRCDIR)/blake2/,blake2b.c blake2.h blake2-impl.h endian.h) | $(OBJDIR) |
65 |
| - $(CC) $(CCFLAGS) -c $(SRCDIR)/blake2/blake2b.c -o $@ |
66 |
| - |
67 |
| -$(OBJDIR)/CompiledVirtualMachine.o: $(addprefix $(SRCDIR)/,CompiledVirtualMachine.cpp CompiledVirtualMachine.hpp common.hpp configuration.h JitCompilerX86.hpp) | $(OBJDIR) |
68 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/CompiledVirtualMachine.cpp -o $@ |
69 |
| - |
70 |
| -$(OBJDIR)/CompiledLightVirtualMachine.o: $(addprefix $(SRCDIR)/,CompiledLightVirtualMachine.cpp CompiledLightVirtualMachine.hpp common.hpp configuration.h JitCompilerX86.hpp) | $(OBJDIR) |
71 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/CompiledLightVirtualMachine.cpp -o $@ |
72 |
| - |
73 |
| -$(OBJDIR)/dataset.o: $(addprefix $(SRCDIR)/,dataset.cpp common.hpp blake2/endian.h dataset.hpp intrinPortable.h Cache.hpp virtualMemory.hpp configuration.h squareHash.h) | $(OBJDIR) |
74 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/dataset.cpp -o $@ |
75 |
| - |
76 |
| -$(OBJDIR)/reciprocal.o: $(addprefix $(SRCDIR)/,reciprocal.c reciprocal.h) | $(OBJDIR) |
77 |
| - $(CC) $(CCFLAGS) -c $(SRCDIR)/reciprocal.c -o $@ |
78 |
| - |
79 |
| -$(OBJDIR)/hashAes1Rx4.o: $(addprefix $(SRCDIR)/,hashAes1Rx4.cpp softAes.h intrinPortable.h blake2/endian.h) | $(OBJDIR) |
80 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/hashAes1Rx4.cpp -o $@ |
81 |
| - |
82 |
| -$(OBJDIR)/JitCompilerX86.o: $(addprefix $(SRCDIR)/,JitCompilerX86.cpp JitCompilerX86.hpp Instruction.hpp instructionWeights.hpp common.hpp blake2/endian.h Program.hpp reciprocal.h virtualMemory.hpp configuration.h superscalarGenerator.hpp) | $(OBJDIR) |
83 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/JitCompilerX86.cpp -o $@ |
84 |
| - |
85 |
| -$(OBJDIR)/JitCompilerX86-static.o: $(addprefix $(SRCDIR)/,JitCompilerX86-static.S $(addprefix asm/program_, prologue_linux.inc prologue_load.inc epilogue_linux.inc epilogue_store.inc read_dataset.inc loop_load.inc loop_store.inc xmm_constants.inc read_dataset_light.inc read_dataset_light_sub.inc)) | $(OBJDIR) |
86 |
| - $(CXX) -x assembler-with-cpp -c $(SRCDIR)/JitCompilerX86-static.S -o $@ |
87 |
| - |
88 |
| -$(OBJDIR)/squareHash.o: $(addprefix $(SRCDIR)/,squareHash.S $(addprefix asm/, squareHash.inc initBlock.inc) configuration.h) | $(OBJDIR) |
89 |
| - $(CXX) -x assembler-with-cpp -c $(SRCDIR)/squareHash.S -o $@ |
90 |
| - |
91 |
| -$(OBJDIR)/instructionsPortable.o: $(addprefix $(SRCDIR)/,instructionsPortable.cpp intrinPortable.h blake2/endian.h common.hpp) | $(OBJDIR) |
92 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/instructionsPortable.cpp -o $@ |
93 |
| - |
94 |
| -$(OBJDIR)/Instruction.o: $(addprefix $(SRCDIR)/,Instruction.cpp Instruction.hpp instructionWeights.hpp blake2/endian.h common.hpp configuration.h) | $(OBJDIR) |
95 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/Instruction.cpp -o $@ |
96 |
| - |
97 |
| -$(OBJDIR)/InterpretedVirtualMachine.o: $(addprefix $(SRCDIR)/,InterpretedVirtualMachine.cpp InterpretedVirtualMachine.hpp instructionWeights.hpp VirtualMachine.hpp common.hpp blake2/endian.h Program.hpp Instruction.hpp intrinPortable.h dataset.hpp Cache.hpp virtualMemory.hpp configuration.h) | $(OBJDIR) |
98 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/InterpretedVirtualMachine.cpp -o $@ |
99 |
| - |
100 |
| -$(OBJDIR)/superscalarGenerator.o: $(addprefix $(SRCDIR)/,superscalarGenerator.cpp superscalarGenerator.hpp Program.hpp blake2/blake2.h blake2/endian.h configuration.h Blake2Generator.hpp) | $(OBJDIR) |
101 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/superscalarGenerator.cpp -o $@ |
102 |
| - |
103 |
| -$(OBJDIR)/Blake2Generator.o: $(addprefix $(SRCDIR)/,Blake2Generator.cpp blake2/blake2.h blake2/endian.h common.hpp Blake2Generator.hpp) | $(OBJDIR) |
104 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/Blake2Generator.cpp -o $@ |
105 |
| - |
106 |
| -$(OBJDIR)/main.o: $(addprefix $(SRCDIR)/,main.cpp InterpretedVirtualMachine.hpp Stopwatch.hpp blake2/blake2.h VirtualMachine.hpp common.hpp blake2/endian.h Program.hpp Instruction.hpp intrinPortable.h CompiledVirtualMachine.hpp JitCompilerX86.hpp AssemblyGeneratorX86.hpp dataset.hpp Cache.hpp virtualMemory.hpp hashAes1Rx4.hpp softAes.h configuration.h superscalarGenerator.hpp) | $(OBJDIR) |
107 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/main.cpp -o $@ |
108 |
| - |
109 |
| -$(OBJDIR)/Program.o: $(addprefix $(SRCDIR)/,Program.cpp Program.hpp configuration.h) | $(OBJDIR) |
110 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/Program.cpp -o $@ |
111 |
| - |
112 |
| -$(OBJDIR)/Cache.o: $(addprefix $(SRCDIR)/,Cache.cpp Cache.hpp argon2_core.h configuration.h) | $(OBJDIR) |
113 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/Cache.cpp -o $@ |
114 |
| - |
115 |
| -$(OBJDIR)/softAes.o: $(addprefix $(SRCDIR)/,softAes.cpp softAes.h) | $(OBJDIR) |
116 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/softAes.cpp -o $@ |
117 |
| - |
118 |
| -$(OBJDIR)/VirtualMachine.o: $(addprefix $(SRCDIR)/,VirtualMachine.cpp VirtualMachine.hpp common.hpp dataset.hpp blake2/endian.h Program.hpp Instruction.hpp hashAes1Rx4.hpp softAes.h intrinPortable.h blake2/blake2.h configuration.h) | $(OBJDIR) |
119 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/VirtualMachine.cpp -o $@ |
120 | 44 |
|
121 |
| -$(OBJDIR)/virtualMemory.o: $(addprefix $(SRCDIR)/,virtualMemory.cpp virtualMemory.hpp) | $(OBJDIR) |
122 |
| - $(CXX) $(CXXFLAGS) -c $(SRCDIR)/virtualMemory.cpp -o $@ |
123 |
| - |
| 45 | +$(RXA): $(RXOBJS) |
| 46 | + $(AR) rcs $@ $(RXOBJS) |
| 47 | +$(OBJDIR)/%.o: | $(OBJDIR) |
| 48 | +$(BINDIR)/%: | $(BINDIR) |
124 | 49 | $(OBJDIR):
|
125 | 50 | mkdir $(OBJDIR)
|
126 |
| - |
127 | 51 | $(BINDIR):
|
128 | 52 | mkdir $(BINDIR)
|
| 53 | +$(OBJDIR)/benchmark.o: $(TESTDIR)/benchmark.cpp $(TESTDIR)/stopwatch.hpp \ |
| 54 | + $(TESTDIR)/utility.hpp $(SRCDIR)/randomx.h $(SRCDIR)/blake2/endian.h |
| 55 | + $(CXX) $(CXXFLAGS) -pthread -c $< -o $@ |
| 56 | +$(BINDIR)/benchmark: $(OBJDIR)/benchmark.o $(RXA) |
| 57 | + $(CXX) $(LDFLAGS) -pthread $< $(RXA) -o $@ |
| 58 | +$(OBJDIR)/code-generator.o: $(TESTDIR)/code-generator.cpp $(TESTDIR)/utility.hpp \ |
| 59 | + $(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h \ |
| 60 | + $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h \ |
| 61 | + $(SRCDIR)/assembly_generator_x86.hpp $(SRCDIR)/superscalar.hpp \ |
| 62 | + $(SRCDIR)/superscalar_program.hpp $(SRCDIR)/instruction.hpp \ |
| 63 | + $(SRCDIR)/blake2_generator.hpp $(SRCDIR)/aes_hash.hpp \ |
| 64 | + $(SRCDIR)/blake2/blake2.h $(SRCDIR)/program.hpp |
| 65 | + $(CXX) $(CXXFLAGS) -c $< -o $@ |
| 66 | +$(BINDIR)/code-generator: $(OBJDIR)/code-generator.o $(RXA) |
| 67 | + $(CXX) $(LDFLAGS) $< $(RXA) -o $@ |
| 68 | +$(OBJDIR)/aes_hash.o: $(SRCDIR)/aes_hash.cpp $(SRCDIR)/soft_aes.h $(SRCDIR)/intrin_portable.h |
| 69 | +$(OBJDIR)/argon2_ref.o: $(SRCDIR)/argon2_ref.c $(SRCDIR)/argon2.h $(SRCDIR)/argon2_core.h \ |
| 70 | + $(SRCDIR)/blake2/blamka-round-ref.h $(SRCDIR)/blake2/blake2.h \ |
| 71 | + $(SRCDIR)/blake2/blake2-impl.h $(SRCDIR)/blake2/endian.h $(SRCDIR)/blake2/blake2-impl.h \ |
| 72 | + $(SRCDIR)/blake2/blake2.h |
| 73 | +$(OBJDIR)/blake2b.o: $(SRCDIR)/blake2/blake2b.c $(SRCDIR)/blake2/blake2.h \ |
| 74 | + $(SRCDIR)/blake2/blake2-impl.h $(SRCDIR)/blake2/endian.h |
| 75 | + $(CC) $(CCFLAGS) -c $< -o $@ |
| 76 | +$(OBJDIR)/dataset.o: $(SRCDIR)/dataset.cpp $(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h \ |
| 77 | + $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h $(SRCDIR)/dataset.hpp \ |
| 78 | + $(SRCDIR)/superscalar_program.hpp $(SRCDIR)/instruction.hpp $(SRCDIR)/jit_compiler_x86.hpp \ |
| 79 | + $(SRCDIR)/allocator.hpp $(SRCDIR)/virtual_memory.hpp $(SRCDIR)/superscalar.hpp \ |
| 80 | + $(SRCDIR)/blake2_generator.hpp $(SRCDIR)/reciprocal.h $(SRCDIR)/argon2.h $(SRCDIR)/argon2_core.h |
| 81 | +$(OBJDIR)/jit_compiler_x86.o: $(SRCDIR)/jit_compiler_x86.cpp $(SRCDIR)/jit_compiler_x86.hpp \ |
| 82 | + $(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h \ |
| 83 | + $(SRCDIR)/jit_compiler_x86_static.hpp $(SRCDIR)/superscalar.hpp \ |
| 84 | + $(SRCDIR)/superscalar_program.hpp $(SRCDIR)/instruction.hpp $(SRCDIR)/blake2_generator.hpp \ |
| 85 | + $(SRCDIR)/program.hpp $(SRCDIR)/reciprocal.h $(SRCDIR)/virtual_memory.hpp \ |
| 86 | + $(SRCDIR)/instruction_weights.hpp |
| 87 | +$(OBJDIR)/jit_compiler_x86_static.o: $(SRCDIR)/jit_compiler_x86_static.S \ |
| 88 | + $(SRCDIR)/asm/program_prologue_linux.inc $(SRCDIR)/asm/program_xmm_constants.inc \ |
| 89 | + $(SRCDIR)/asm/program_loop_load.inc $(SRCDIR)/asm/program_read_dataset.inc \ |
| 90 | + $(SRCDIR)/asm/program_read_dataset_light.inc \ |
| 91 | + $(SRCDIR)/asm/program_read_dataset_sshash_init.inc \ |
| 92 | + $(SRCDIR)/asm/program_read_dataset_sshash_fin.inc \ |
| 93 | + $(SRCDIR)/asm/program_loop_store.inc $(SRCDIR)/asm/program_epilogue_linux.inc \ |
| 94 | + $(SRCDIR)/asm/program_epilogue_store.inc $(SRCDIR)/asm/program_sshash_load.inc \ |
| 95 | + $(SRCDIR)/asm/program_sshash_prefetch.inc $(SRCDIR)/asm/program_sshash_constants.inc |
| 96 | +$(OBJDIR)/soft_aes.o: $(SRCDIR)/soft_aes.cpp $(SRCDIR)/soft_aes.h $(SRCDIR)/intrin_portable.h |
| 97 | +$(OBJDIR)/virtual_memory.o: $(SRCDIR)/virtual_memory.cpp $(SRCDIR)/virtual_memory.hpp |
| 98 | +$(OBJDIR)/vm_interpreted.o: $(SRCDIR)/vm_interpreted.cpp $(SRCDIR)/vm_interpreted.hpp \ |
| 99 | + $(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h \ |
| 100 | + $(SRCDIR)/virtual_machine.hpp $(SRCDIR)/program.hpp $(SRCDIR)/instruction.hpp \ |
| 101 | + $(SRCDIR)/intrin_portable.h $(SRCDIR)/allocator.hpp $(SRCDIR)/dataset.hpp \ |
| 102 | + $(SRCDIR)/superscalar_program.hpp $(SRCDIR)/jit_compiler_x86.hpp $(SRCDIR)/reciprocal.h \ |
| 103 | + $(SRCDIR)/instruction_weights.hpp |
| 104 | +$(OBJDIR)/allocator.o: $(SRCDIR)/allocator.cpp $(SRCDIR)/allocator.hpp $(SRCDIR)/intrin_portable.h \ |
| 105 | + $(SRCDIR)/virtual_memory.hpp $(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h \ |
| 106 | + $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h |
| 107 | +$(OBJDIR)/assembly_generator_x86.o: $(SRCDIR)/assembly_generator_x86.cpp \ |
| 108 | + $(SRCDIR)/assembly_generator_x86.hpp $(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h \ |
| 109 | + $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h $(SRCDIR)/reciprocal.h $(SRCDIR)/program.hpp \ |
| 110 | + $(SRCDIR)/instruction.hpp $(SRCDIR)/superscalar.hpp $(SRCDIR)/superscalar_program.hpp \ |
| 111 | + $(SRCDIR)/blake2_generator.hpp $(SRCDIR)/instruction_weights.hpp |
| 112 | +$(OBJDIR)/instruction.o: $(SRCDIR)/instruction.cpp $(SRCDIR)/instruction.hpp \ |
| 113 | + $(SRCDIR)/blake2/endian.h $(SRCDIR)/common.hpp $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h \ |
| 114 | + $(SRCDIR)/instruction_weights.hpp |
| 115 | +$(OBJDIR)/randomx.o: $(SRCDIR)/randomx.cpp $(SRCDIR)/randomx.h $(SRCDIR)/dataset.hpp $(SRCDIR)/common.hpp \ |
| 116 | + $(SRCDIR)/blake2/endian.h $(SRCDIR)/configuration.h $(SRCDIR)/superscalar_program.hpp \ |
| 117 | + $(SRCDIR)/instruction.hpp $(SRCDIR)/jit_compiler_x86.hpp $(SRCDIR)/allocator.hpp \ |
| 118 | + $(SRCDIR)/vm_interpreted.hpp $(SRCDIR)/virtual_machine.hpp $(SRCDIR)/program.hpp \ |
| 119 | + $(SRCDIR)/intrin_portable.h $(SRCDIR)/vm_interpreted_light.hpp $(SRCDIR)/vm_compiled.hpp \ |
| 120 | + $(SRCDIR)/vm_compiled_light.hpp $(SRCDIR)/blake2/blake2.h |
| 121 | +$(OBJDIR)/superscalar.o: $(SRCDIR)/superscalar.cpp $(SRCDIR)/configuration.h $(SRCDIR)/program.hpp \ |
| 122 | + $(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h $(SRCDIR)/randomx.h $(SRCDIR)/instruction.hpp \ |
| 123 | + $(SRCDIR)/superscalar.hpp $(SRCDIR)/superscalar_program.hpp $(SRCDIR)/blake2_generator.hpp \ |
| 124 | + $(SRCDIR)/intrin_portable.h $(SRCDIR)/reciprocal.h |
| 125 | +$(OBJDIR)/vm_compiled.o: $(SRCDIR)/vm_compiled.cpp $(SRCDIR)/vm_compiled.hpp \ |
| 126 | + $(SRCDIR)/virtual_machine.hpp $(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h \ |
| 127 | + $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h $(SRCDIR)/program.hpp $(SRCDIR)/instruction.hpp \ |
| 128 | + $(SRCDIR)/jit_compiler_x86.hpp $(SRCDIR)/allocator.hpp $(SRCDIR)/dataset.hpp \ |
| 129 | + $(SRCDIR)/superscalar_program.hpp |
| 130 | +$(OBJDIR)/vm_interpreted_light.o: $(SRCDIR)/vm_interpreted_light.cpp \ |
| 131 | + $(SRCDIR)/vm_interpreted_light.hpp $(SRCDIR)/vm_interpreted.hpp $(SRCDIR)/common.hpp \ |
| 132 | + $(SRCDIR)/blake2/endian.h $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h \ |
| 133 | + $(SRCDIR)/virtual_machine.hpp $(SRCDIR)/program.hpp $(SRCDIR)/instruction.hpp \ |
| 134 | + $(SRCDIR)/intrin_portable.h $(SRCDIR)/allocator.hpp $(SRCDIR)/dataset.hpp \ |
| 135 | + $(SRCDIR)/superscalar_program.hpp $(SRCDIR)/jit_compiler_x86.hpp |
| 136 | +$(OBJDIR)/argon2_core.o: $(SRCDIR)/argon2_core.c $(SRCDIR)/argon2_core.h $(SRCDIR)/argon2.h \ |
| 137 | + $(SRCDIR)/blake2/blake2.h $(SRCDIR)/blake2/blake2-impl.h $(SRCDIR)/blake2/endian.h |
| 138 | +$(OBJDIR)/blake2_generator.o: $(SRCDIR)/blake2_generator.cpp $(SRCDIR)/blake2/blake2.h \ |
| 139 | + $(SRCDIR)/blake2/endian.h $(SRCDIR)/blake2_generator.hpp |
| 140 | +$(OBJDIR)/instructions_portable.o: $(SRCDIR)/instructions_portable.cpp $(SRCDIR)/common.hpp \ |
| 141 | + $(SRCDIR)/blake2/endian.h $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h \ |
| 142 | + $(SRCDIR)/intrin_portable.h |
| 143 | +$(OBJDIR)/reciprocal.o: $(SRCDIR)/reciprocal.c $(SRCDIR)/reciprocal.h |
| 144 | +$(OBJDIR)/virtual_machine.o: $(SRCDIR)/virtual_machine.cpp $(SRCDIR)/virtual_machine.hpp \ |
| 145 | + $(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h \ |
| 146 | + $(SRCDIR)/program.hpp $(SRCDIR)/instruction.hpp $(SRCDIR)/aes_hash.hpp $(SRCDIR)/blake2/blake2.h \ |
| 147 | + $(SRCDIR)/intrin_portable.h $(SRCDIR)/allocator.hpp |
| 148 | +$(OBJDIR)/vm_compiled_light.o: $(SRCDIR)/vm_compiled_light.cpp $(SRCDIR)/vm_compiled_light.hpp \ |
| 149 | + $(SRCDIR)/vm_compiled.hpp $(SRCDIR)/virtual_machine.hpp $(SRCDIR)/common.hpp \ |
| 150 | + $(SRCDIR)/blake2/endian.h $(SRCDIR)/configuration.h $(SRCDIR)/randomx.h $(SRCDIR)/program.hpp \ |
| 151 | + $(SRCDIR)/instruction.hpp $(SRCDIR)/jit_compiler_x86.hpp $(SRCDIR)/allocator.hpp \ |
| 152 | + $(SRCDIR)/dataset.hpp $(SRCDIR)/superscalar_program.hpp |
| 153 | + |
| 154 | +$(OBJDIR)/%.o: $(SRCDIR)/%.c |
| 155 | + $(CC) $(CCFLAGS) -c $< -o $@ |
| 156 | + |
| 157 | +$(OBJDIR)/%.o: $(SRCDIR)/%.cpp |
| 158 | + $(CXX) $(CXXFLAGS) -c $< -o $@ |
| 159 | + |
| 160 | +$(OBJDIR)/%.o: $(SRCDIR)/%.S |
| 161 | + $(CXX) -x assembler-with-cpp -c $< -o $@ |
129 | 162 |
|
130 | 163 | clean:
|
131 |
| - rm -f $(BINDIR)/randomx $(BINDIR)/AluFpuTest $(OBJDIR)/*.o |
| 164 | + rm -f $(BINARIES) $(OBJDIR)/*.o |
0 commit comments