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= # 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