about summary refs log tree commit diff stats
path: root/LLVMprivateGenerator/Makefile
diff options
context:
space:
mode:
authorrajdakin <rajdakin@gmail.com>2021-08-01 17:12:36 +0200
committerrajdakin <rajdakin@gmail.com>2021-08-01 17:12:36 +0200
commitf014d4580a8eea1ae3082544d973274681e2059c (patch)
treeb9d31a6231eed6682489fbddc1ecb76b799e6c30 /LLVMprivateGenerator/Makefile
parent1f02ab17e37ac2ed766a9434449af5f58d627613 (diff)
downloadbox64-f014d4580a8eea1ae3082544d973274681e2059c.tar.gz
box64-f014d4580a8eea1ae3082544d973274681e2059c.zip
Added a useful script
Diffstat (limited to 'LLVMprivateGenerator/Makefile')
-rw-r--r--LLVMprivateGenerator/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/LLVMprivateGenerator/Makefile b/LLVMprivateGenerator/Makefile
new file mode 100644
index 00000000..61864262
--- /dev/null
+++ b/LLVMprivateGenerator/Makefile
@@ -0,0 +1,12 @@
+all: dumpSigs
+
+dumpSigs: main.o registered_structs.o
+	g++ -g3 -std=gnu++17 -fno-rtti main.o registered_structs.o -o dumpSigs "-L$(LLVM_install_dir)/lib" -lclang-cpp -lclangTooling -Wl,-rpath "-Wl,$(LLVM_install_dir)/lib"
+
+main.o: main.cpp
+	g++ -g3 -std=gnu++17 -fno-rtti -c main.cpp -Wfatal-errors "-I$(LLVM_install_dir)/include" -o main.o
+registered_structs.o: registered_structs.cpp
+	g++ -g3 -std=gnu++17 -fno-rtti -c registered_structs.cpp -Wfatal-errors -o registered_structs.o
+
+clean:
+	$(RM) dumpSigs main.o registered_structs.o