aboutsummaryrefslogblamecommitdiffhomepage
path: root/content/2022-07-07-llvm-orc-jit/Makefile
blob: 793d9dbff27d87c68e3a68be14c2ba5e5c05eca6 (plain) (tree)
1
2
3
4
5
6
               

            

                                                          
 






                                                                      




                                
                                            
run: BUILD/main
	./$^

BUILD/main: BUILD/CMakeCache.txt main.cc jit.h ccompiler.h
	ninja -C BUILD

BUILD/CMakeCache.txt: CMakeLists.txt
	# When building against a specific LLVM/CLANG build use
	#   -DCLANG_INSTALL_PREFIX=<PATH>
	# to configure the root of the installation.
	cmake -B BUILD -S . -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1
	ln -sfn BUILD/compile_commands.json
	touch $@

fmt:
	clang-format -i *.cc *.h

clean:
	$(RM) -r BUILD compile_commands.json